2019-09-13 14:50:14 +00:00
|
|
|
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 / {
|
2019-09-18 14:13:49 +00:00
|
|
|
proxy_pass http://[::1]:5001;
|
2023-03-20 00:31:38 +00:00
|
|
|
proxy_set_header Host $host:$server_port;
|
2019-09-18 09:09:40 +00:00
|
|
|
proxy_set_header X-Forwarded-For $remote_addr;
|
2019-09-13 14:50:14 +00:00
|
|
|
}
|
|
|
|
}
|
|
|
|
|