Advertisement
Guest User

Untitled

a guest
May 30th, 2017
140
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Bash 1.04 KB | None | 0 0
  1. server {
  2.                 server_name foo.de;
  3.                 return 301 https://$server_name$request_uri;
  4.         }
  5.  
  6.         server {
  7.  
  8.                 listen 443 ssl;
  9.             server_name foo.de;
  10.  
  11.  
  12.             location /.well-known {
  13.                 alias /var/www/foo.de/.well-known;
  14.         autoindex on;
  15.             }
  16.  
  17.             include snippets/ssl-foo.de.conf;
  18.  
  19.             ssl_stapling on;
  20.             ssl_stapling_verify on;
  21.  
  22.             # Uncomment this line only after testing in browsers,
  23.             # as it commits you to continuing to serve your site over HTTPS
  24.             # in future
  25.             # add_header Strict-Transport-Security "max-age=31536000";
  26.  
  27.             location / {
  28.                 proxy_pass http://localhost:3123;
  29.                 proxy_set_header Host      $host;
  30.                 proxy_set_header X-Real-IP $remote_addr;
  31.            }
  32.        }
  33.  
  34.  
  35. # snippets/ssl-foo.de.conf;
  36.  
  37. ssl_certificate /etc/letsencrypt/live/foo.de/fullchain.pem;
  38. ssl_certificate_key /etc/letsencrypt/live/foo.de/privkey.pem;
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement