24 lines
No EOL
789 B
Text
24 lines
No EOL
789 B
Text
# Include a common header (Upgrade Websockets, Add Upstreams, Upgrade HTTP to HTTPS)
|
|
include snippets/global/common-boilerplate.conf;
|
|
|
|
server {
|
|
|
|
server_name link.gpoc.shad.moe www.link.gpoc.shad.moe;
|
|
|
|
ssl_certificate /etc/letsencrypt/live/link.gpoc.shad.moe/fullchain.pem;
|
|
ssl_certificate_key /etc/letsencrypt/live/link.gpoc.shad.moe/privkey.pem;
|
|
ssl_trusted_certificate /etc/letsencrypt/live/link.gpoc.shad.moe/fullchain.pem;
|
|
|
|
include snippets/global/common-ssl.conf;
|
|
|
|
include snippets/proxy/common-proxy-headers.conf;
|
|
|
|
add_header Access-Control-Allow-Origin *;
|
|
proxy_set_header Content-Security-Policy upgrade-insecure-requests;
|
|
|
|
location / {
|
|
proxy_pass http://mccp-link/;
|
|
}
|
|
|
|
include snippets/global/errors/http-cat-error-pages.conf;
|
|
} |