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

25 lines
798 B
Text
Raw Normal View History

2024-11-04 13:52:16 -06:00
# Include a common header (Upgrade Websockets, Add Upstreams, Upgrade HTTP to HTTPS)
include snippets/global/common-boilerplate.conf;
2024-11-04 11:09:00 -06:00
server {
2024-11-04 13:52:16 -06:00
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;
2024-11-04 11:09:00 -06:00
add_header Access-Control-Allow-Origin *;
proxy_set_header Content-Security-Policy upgrade-insecure-requests;
location / {
proxy_pass http://100.64.4.100:8080/;
}
2024-11-04 13:52:16 -06:00
include snippets/global/errors/http-cat-error-pages.conf;
2024-11-04 11:09:00 -06:00
}