32 lines
859 B
Plaintext
32 lines
859 B
Plaintext
server {
|
|
listen 80;
|
|
server_name nexus.deeplink.media;
|
|
return 301 https://$host$request_uri;
|
|
}
|
|
|
|
server {
|
|
listen 443 ssl;
|
|
server_name nexus.deeplink.media;
|
|
|
|
ssl_certificate /data/tengine/conf/certificate/nexus.deeplink.media_bundle.crt;
|
|
ssl_certificate_key /data/tengine/conf/certificate/nexus.deeplink.media.key;
|
|
|
|
ssl_protocols TLSv1.2 TLSv1.3;
|
|
|
|
access_log /data/tengine/logs/nexus_access.log;
|
|
error_log /data/tengine/logs/nexus_error.log;
|
|
|
|
location / {
|
|
proxy_pass http://127.0.0.1:8081;
|
|
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_http_version 1.1;
|
|
proxy_request_buffering off;
|
|
|
|
client_max_body_size 2G;
|
|
}
|
|
}
|