Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- server {
- root /var/www/test;
- listen 80;
- listen [::]:80;
- server_name fabrykacraft.pl;
- location / {
- # proxy_pass http://fabrykacraft.pl:5000;
- # proxy_pass http://76.76.21.21;
- # proxy_pass https://vercel.fabrykacraft.pl;
- proxy_pass http://localhost:5000;
- 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;
- }
- #location / {
- # root /var/www/test;
- # try_files $uri $uri/ /index.html?$args;
- #}
- location /test/ {
- root /var/www/test/test;
- try_files $uri $uri/ /index.html?$args;
- }
- location ^~ '/.well-known/acme-challenge' {
- allow all;
- }
- listen 443 ssl; # managed by Certbot
- ssl_certificate /etc/letsencrypt/live/fabrykacraft.pl/fullchain.pem; # managed by Certbot
- ssl_certificate_key /etc/letsencrypt/live/fabrykacraft.pl/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
- }
- server {
- if ($host = fabrykacraft.pl) {
- return 301 https://$host$request_uri;
- } # managed by Certbot
- server_name fabrykacraft.pl;
- listen 80;
- return 404; # managed by Certbot
- }
- server {
- if ($host = fabrykacraft.pl) {
- return 301 https://$host$request_uri;
- } # managed by Certbot
- listen 80;
- server_name fabrykacraft.pl;
- return 404; # managed by Certbot
- }
Advertisement
Add Comment
Please, Sign In to add comment