-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathpaperscout.conf
More file actions
23 lines (20 loc) · 884 Bytes
/
paperscout.conf
File metadata and controls
23 lines (20 loc) · 884 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
server {
listen 443 ssl;
server_name dev.cppdigest.org;
ssl_certificate /etc/letsencrypt/live/dev.cppdigest.org/fullchain.pem;
ssl_certificate_key /etc/letsencrypt/live/dev.cppdigest.org/privkey.pem;
# Health endpoint — must come before the general /paperscout/ block
# because nginx uses longest-prefix matching.
location /paperscout/health {
proxy_pass http://127.0.0.1:9101/health;
}
# Slack events — trailing slashes on both location and proxy_pass
# strip the /paperscout prefix so Bolt receives /slack/events.
location /paperscout/ {
proxy_pass http://127.0.0.1:9100/;
proxy_set_header Host $host;
proxy_set_header X-Real-IP $remote_addr;
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
proxy_set_header X-Forwarded-Proto $scheme;
}
}