Nginx-Configurations/http.d/play.gpoc.konpeki.solutions

24 lines
798 B
Text

# Include a common header (Upgrade Websockets, Add Upstreams, Upgrade HTTP to HTTPS)
include snippets/global/common-boilerplate.conf;
server {
server_name play.gpoc.shad.moe www.play.gpoc.shad.moe;
ssl_certificate /etc/letsencrypt/live/play.gpoc.shad.moe/fullchain.pem;
ssl_certificate_key /etc/letsencrypt/live/play.gpoc.shad.moe/privkey.pem;
ssl_trusted_certificate /etc/letsencrypt/live/play.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://100.64.4.100:8080/;
}
include snippets/global/errors/http-cat-error-pages.conf;
}