mirror of
https://github.com/Start9Labs/start-os.git
synced 2026-03-31 20:43:41 +00:00
19 lines
604 B
Plaintext
19 lines
604 B
Plaintext
server {{
|
|
listen 443 ssl;
|
|
server_name {hostname}.local;
|
|
ssl_certificate /root/appmgr/apps/{app_id}/cert-local.fullchain.crt.pem;
|
|
ssl_certificate_key /root/appmgr/apps/{app_id}/cert-local.key.pem;
|
|
location / {{
|
|
proxy_pass http://{app_ip}:{internal_port}/;
|
|
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;
|
|
}}
|
|
}}
|
|
server {{
|
|
listen 80;
|
|
server_name {hostname}.local;
|
|
return 301 https://$host$request_uri;
|
|
}}
|