DanecSVK

Untitled

Dec 13th, 2020
665
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. ######## -------------- danielkovac.sk -------------- ########
  2.  
  3. map $http_upgrade $connection_upgrade {
  4.         default upgrade;
  5.         '' close;
  6. }
  7.  
  8. # http://danielkovac.sk - rewrite na https
  9. server {
  10.         listen 80;
  11.         listen [::]:80;
  12.         server_name danielkovac.sk;
  13.         return 301 https://$host$request_uri;
  14. }
  15.  
  16. # http://www.danielkovac.sk - rewrite na https
  17. server {
  18.         listen 80;
  19.         listen [::]:80;
  20.         server_name www.danielkovac.sk;
  21.         rewrite ^ https://danielkovac.sk$request_uri? permanent;
  22. }
  23.  
  24. # https://www.danielkovac.sk - rewrite na https://danielkovac.sk
  25. server {
  26.   listen 443 ssl;
  27.   listen [::]:443 ssl;
  28.   server_name www.danielkovac.sk;
  29.  
  30.   rewrite ^ https://danielkovac.sk$request_uri? permanent;
  31.  
  32.   ssl_certificate /etc/letsencrypt/live/danielkovac.sk-0001/fullchain.pem;
  33.   ssl_certificate_key /etc/letsencrypt/live/danielkovac.sk-0001/privkey.pem;
  34. }
  35.  
  36. # https://danielkovac.sk - HTML v priecinku /opt/subsites/dkovac
  37. server {
  38.         gzip on;
  39.         gzip_types    text/plain application/javascript application/x-javascript text/javascript text/xml text/css;
  40.         listen 443 ssl;
  41.         listen [::]:443 ssl;
  42.         server_name danielkovac.sk;
  43.         ssl_certificate /etc/letsencrypt/live/danielkovac.sk/fullchain.pem;
  44.         ssl_certificate_key /etc/letsencrypt/live/danielkovac.sk/privkey.pem;
  45.  
  46.         access_log /var/log/nginx/danielkovac.sk-access.log;
  47.         error_log /var/log/nginx/danielkovac.sk-error.log;
  48.  
  49.         root /opt/danielkovac.sk;
  50.         index index.php index.html index.htm index.nginx-debian.html;
  51.  
  52.         location / {
  53.                 try_files $uri $uri/ =404;
  54.                 expires 365d;
  55.         }
  56.  
  57.         location ~ \.php$ {
  58.                 include snippets/fastcgi-php.conf;
  59.                 fastcgi_pass unix:/var/run/php/php7.2-fpm.sock;
  60.         }
  61.  
  62.         location ~ /\.ht {
  63.                 deny all;
  64.         }
  65.  
  66.         location /scripts {
  67.                 add_header Service-Worker-Allowed /;
  68.         }
  69. }
RAW Paste Data

Adblocker detected! Please consider disabling it...

We've detected AdBlock Plus or some other adblocking software preventing Pastebin.com from fully loading.

We don't have any obnoxious sound, or popup ads, we actively block these annoying types of ads!

Please add Pastebin.com to your ad blocker whitelist or disable your adblocking software.

×