-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathcodestream.conf
More file actions
24 lines (21 loc) · 772 Bytes
/
Copy pathcodestream.conf
File metadata and controls
24 lines (21 loc) · 772 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
# API reverse proxy — frontend is hosted on Vercel.
# Replace YOUR_DOMAIN with api.codestream.npsolver.io (or your API hostname).
#
# Install this HTTP-only config first, start nginx, then run certbot:
# sudo certbot --nginx -d api.codestream.npsolver.io
# certbot will add HTTPS and the HTTP→HTTPS redirect automatically.
server {
listen 80;
listen [::]:80;
server_name YOUR_DOMAIN;
client_max_body_size 1m;
location / {
proxy_pass http://127.0.0.1:8082;
proxy_http_version 1.1;
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;
proxy_read_timeout 60s;
}
}