Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- server {
- if ($host = www.sgleague.ru) {
- return 301 https://www.sgleague.pro$request_uri;
- } # managed by Certbot
- if ($host = sgleague.ru) {
- return 301 https://sgleague.pro$request_uri;
- } # managed by Certbot
- listen 80 default_server;
- listen [::]:80 default_server;
- server_name www.sgleague.pro sgleague.pro sgleague.ru www.sgleague.ru 176.9.112.200;
- return 301 https://$server_name$request_uri;
- }
- server {
- listen 443 ssl http2;
- server_name sgleague.pro www.sgleague.pro sgleague.ru www.sgleague.ru 176.9.112.200;
- # proxy_cache cache;
- # proxy_cache_valid 200 1s;
- ssl_stapling on;
- ssl on;
- ssl_session_cache shared:SSL:10m;
- ssl_session_timeout 24h;
- ssl_prefer_server_ciphers on;
- ssl_certificate /etc/letsencrypt/live/sgleague.ru/fullchain.pem; # managed by Certbot
- ssl_certificate_key /etc/letsencrypt/live/sgleague.ru/privkey.pem; # managed by Certbot
- ssl_protocols TLSv1 TLSv1.1 TLSv1.2;
- ssl_ciphers kEECDH+AES128:kEECDH:kEDH:-3DES:kRSA+AES128:kEDH+3DES:DES-CBC3-SHA:!RC4:!aNULL:!eNULL:!MD5:!EXPORT:!LOW:!SEED:!CAMELLIA:!IDEA:!PSK:!SRP:!SSLv2;
- add_header Strict-Transport-Security "max-age=31536000;";
- location /static {
- expires 1d;
- root /home/cyber/frontend/src;
- }
- location /media {
- expires 1d;
- root /home/cyber/backend/src;
- }
- location /sglc/ {
- autoindex on;
- autoindex_exact_size on;
- autoindex_localtime on;
- alias /home/cyber/public/;
- }
- location / {
- root /home/cyber/frontend/dist;
- index index.html index.htm;
- try_files $uri $uri/ /index.html;
- }
- }
- server {
- listen 8000;
- server_name sgleague.pro www.sgleague.pro 176.9.112.200;
- ssl_stapling on;
- ssl on;
- ssl_session_cache shared:SSL:10m;
- ssl_session_timeout 24h;
- ssl_prefer_server_ciphers on;
- ssl_certificate /etc/letsencrypt/live/info-message.ru/fullchain.pem;
- ssl_certificate_key /etc/letsencrypt/live/info-message.ru/privkey.pem;
- ssl_protocols TLSv1 TLSv1.1 TLSv1.2;
- ssl_ciphers kEECDH+AES128:kEECDH:kEDH:-3DES:kRSA+AES128:kEDH+3DES:DES-CBC3-SHA:!RC4:!aNULL:!eNULL:!MD5:!EXPORT:!LOW:!SEED:!CAMELLIA:!IDEA:!PSK:!SRP:!SSLv2;
- add_header Strict-Transport-Security "max-age=31536000;";
- location /static {
- expires 1d;
- root /home/cyber/backend/src;
- }
- location /media {
- expires 1d;
- root /home/cyber/backend/src;
- }
- location / {
- include uwsgi_params;
- uwsgi_pass unix:/run/uwsgi/cyber.sock;
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement