server {
server_name hyze.gg
www.hyze.gg" class="link-msg">www.hyze.gg" class="link-msg">www.hyze.gg;
location / {
proxy_pass
http://localhost:3333/;
proxy_http_version 1.1;
proxy_set_header Upgrade $http_upgrade;
proxy_set_header Connection 'upgrade';
proxy_set_header Host $host;
proxy_cache_bypass $http_upgrade;
}
listen [::]:443 ssl ipv6only=on; # managed by Certbot
listen 443 ssl; # managed by Certbot
ssl_certificate /etc/letsencrypt/live/hyze.gg/fullchain.pem; # managed by Certbot
ssl_certificate_key /etc/letsencrypt/live/hyze.gg/privkey.pem; # managed by Certbot
include /etc/letsencrypt/options-ssl-nginx.conf; # managed by Certbot
ssl_dhparam /etc/letsencrypt/ssl-dhparams.pem; # managed by Certbot
ssl_client_certificate /etc/letsencrypt/gerencianet/chain-pix-sandbox.crt;
ssl_verify_client optional;
ssl_verify_depth 3;
location /checkoutPix {
if ($ssl_client_verify != SUCCESS) {
return 403;
}
rewrite ^(.
)$ /checkoutPix;
}
}
server {
if ($host = www.hyze.gg) {
return 301 https://$host$request_uri;
} # managed by Certbot
if ($host = hyze.gg) {
return 301 https://$host$request_uri;
} # managed by Certbot
listen 80;
listen [::]:80;
server_name hyze.gg www.hyze.gg;
return 404; # managed by Certbot
}