Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- proxy_cache_path /etc/nginx/cache levels=1:2 keys_zone=pogo:10m max_size=750m inactive=60m;
- server {
- listen 80;
- location /.well-known/acme-challenge {
- default_type "text/plain";
- root /var/www/certbot;
- }
- # Forces all other requests to HTTPS
- location / {
- return 301 https://$host$request_uri;
- }
- }
- server {
- listen 443 ssl http2;
- server_name PokeMaps.yourdomain.com;
- ssl on;
- ssl_certificate /etc/letsencrypt/live/poraakel.eu/fullchain.pem;
- ssl_certificate_key /etc/letsencrypt/live/poraakel.eu/privkey.pem;
- ssl_protocols TLSv1.2;
- ssl_ciphers 'EECDH+AESGCM:EDH+AESGCM:AES256+EECDH:AES256+EDH';
- ssl_prefer_server_ciphers on;
- keepalive_timeout 70;
- add_header Strict-Transport-Security "max-age=31536000; includeSubdomains";
- location / {
- root /var/www/html;
- }
- location /tallinn/ {
- proxy_cache pogo;
- proxy_cache_valid any 30s;
- add_header X-Proxy-Cache $upstream_cache_status;
- proxy_cache_use_stale error timeout updating http_500 http_502 http_503 http_504;
- proxy_pass http://127.0.0.1:5004/;
- break;
- }
- location /tartu/ {
- proxy_cache pogo;
- proxy_cache_valid any 30s;
- add_header X-Proxy-Cache $upstream_cache_status;
- proxy_cache_use_stale error timeout updating http_500 http_502 http_503 http_504;
- proxy_pass http://127.0.0.1:5001/;
- break;
- }
- location /parnu/ {
- proxy_cache pogo;
- proxy_cache_valid any 30s;
- add_header X-Proxy-Cache $upstream_cache_status;
- proxy_cache_use_stale error timeout updating http_500 http_502 http_503 http_504;
- proxy_pass http://127.0.0.1:5002/;
- break;
- }
- location /haapsalu/ {
- proxy_cache pogo;
- proxy_cache_valid any 30s;
- add_header X-Proxy-Cache $upstream_cache_status;
- proxy_cache_use_stale error timeout updating http_500 http_502 http_503 http_504;
- proxy_pass http://127.0.0.1:5003/;
- break;
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement