From 9f67f3de771a23349b61b12226d188e6a6630e97 Mon Sep 17 00:00:00 2001 From: wj25czxj47bu6q <96372288+wj25czxj47bu6q@users.noreply.github.com> Date: Sat, 7 Oct 2023 11:55:24 +0000 Subject: [PATCH] Create syncv3.conf Signed-off-by: wj25czxj47bu6q <96372288+wj25czxj47bu6q@users.noreply.github.com> --- etc/nginx/conf.d/syncv3.conf | 26 ++++++++++++++++++++++++++ 1 file changed, 26 insertions(+) create mode 100644 etc/nginx/conf.d/syncv3.conf diff --git a/etc/nginx/conf.d/syncv3.conf b/etc/nginx/conf.d/syncv3.conf new file mode 100644 index 0000000..bf6dc53 --- /dev/null +++ b/etc/nginx/conf.d/syncv3.conf @@ -0,0 +1,26 @@ +server { + listen 443 ssl; + listen [::]:443 ssl; + + server_name syncv3.arcticfoxes.net; + + include /etc/nginx/ssl.conf; + include /etc/nginx/proxy.conf; + include /etc/nginx/headers.conf; + + proxy_hide_header 'Access-Control-Allow-Credentials'; + add_header 'Access-Control-Allow-Credentials' 'true' always; + proxy_hide_header 'Access-Control-Allow-Methods'; + add_header 'Access-Control-Allow-Methods' 'GET, POST, OPTIONS' always; + proxy_hide_header 'Access-Control-Allow-Headers'; + add_header 'Access-Control-Allow-Headers' 'Authorization,Content-Type,Accept,Origin,User-Agent,DNT,Cache-Control,X-Mx-ReqToken,Keep-Alive,X-Requested-With,If-Modified-Since' always; + proxy_hide_header 'Access-Control-Allow-Origin'; + add_header 'Access-Control-Allow-Origin' '*' always; + proxy_hide_header 'Content-Security-Policy'; + add_header 'Content-Security-Policy' "default-src 'none'; frame-ancestors 'none'; upgrade-insecure-requests; block-all-mixed-content; base-uri 'none'"; + + location / { + proxy_pass http://127.0.0.1:8008; + } + +}