bitbot-3.11-fork/docs/rest_api/nginx
musk 25fde5b7c1
Update nginx (#359)
Fix proxy_set_header Host $port to $server_port
2023-03-19 19:31:38 -05:00

15 lines
396 B
Text

server {
server_name example.com;
listen 5000 ssl;
listen [::]:5000 ssl;
ssl_certificate /etc/letsencrypt/live/example.com/fullchain.pem;
ssl_certificate_key /etc/letsencrypt/live/example.com/privkey.pem;
location / {
proxy_pass http://[::1]:5001;
proxy_set_header Host $host:$server_port;
proxy_set_header X-Forwarded-For $remote_addr;
}
}