18 lines
785 B
Plaintext
18 lines
785 B
Plaintext
server {
|
|
# touch /etc/nginx/include/diskstation.affirm.duckdns.org
|
|
ssl_certificate /root/.acme.sh/wild-affirm/fullchain.cer;
|
|
# ssl_certificate /root/.acme.sh/wild-affirm/affirm.duckdns.org.cer;
|
|
ssl_certificate_key /root/.acme.sh/wild-affirm/affirm.duckdns.org.key;
|
|
ssl_protocols TLSv1.2 TLSv1.3;
|
|
listen 443 ssl http2;
|
|
server_name diskstation.affirm.duckdns.org;
|
|
location / {
|
|
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_pass https://192.168.0.31:5001/;
|
|
proxy_read_timeout 600s;
|
|
proxy_send_timeout 600s;
|
|
}
|
|
} |