30 lines
1.1 KiB
Plaintext
30 lines
1.1 KiB
Plaintext
# OpenGenesisLINK SYS.API HTTPS on port 8850.
|
|
# Replace YOUR_DOMAIN with the actual ACME-validated FQDN.
|
|
# A VALID Let's Encrypt fullchain/key must exist BEFORE enabling this server.
|
|
# This proxy only terminates TLS; sys.api.dll listens on localhost:8851.
|
|
server {
|
|
listen 8850 ssl;
|
|
listen [::]:8850 ssl;
|
|
server_name YOUR_DOMAIN;
|
|
|
|
ssl_certificate /etc/letsencrypt/live/YOUR_DOMAIN/fullchain.pem;
|
|
ssl_certificate_key /etc/letsencrypt/live/YOUR_DOMAIN/privkey.pem;
|
|
ssl_protocols TLSv1.2 TLSv1.3;
|
|
ssl_session_tickets off;
|
|
add_header Strict-Transport-Security "max-age=31536000" always;
|
|
|
|
client_max_body_size 32k;
|
|
proxy_connect_timeout 5s;
|
|
proxy_read_timeout 15s;
|
|
|
|
location / {
|
|
proxy_pass http://127.0.0.1:8851;
|
|
proxy_set_header Host 127.0.0.1:8851;
|
|
proxy_set_header X-Forwarded-Host YOUR_DOMAIN:8850;
|
|
proxy_set_header X-Forwarded-Proto https;
|
|
proxy_set_header X-Real-IP $remote_addr;
|
|
proxy_set_header X-Forwarded-For $remote_addr;
|
|
proxy_set_header Authorization $http_authorization;
|
|
}
|
|
}
|