Advertisement
Guest User

Untitled

a guest
May 27th, 2018
127
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.14 KB | None | 0 0
  1. server {
  2.  
  3. root /var/www/html;
  4.  
  5. index index.html index.htm index.nginx-debian.html;
  6.  
  7. server_name smash.typeco.de;
  8.  
  9. access_log /var/log/nginx/jenkins.access.log;
  10. error_log /var/log/nginx/jenkins.error.log;
  11.  
  12. location / {
  13. include /etc/nginx/proxy_params;
  14. proxy_pass http://localhost:8080;
  15. proxy_read_timeout 90s;
  16. proxy_redirect http://localhost:8080 https://smash.typeco.de;
  17. }
  18.  
  19. listen [::]:443 ssl ipv6only=on; # managed by Certbot
  20. listen 443 ssl; # managed by Certbot
  21. ssl_certificate /etc/letsencrypt/live/smash.typeco.de/fullchain.pem; # managed by Certbot
  22. ssl_certificate_key /etc/letsencrypt/live/smash.typeco.de/privkey.pem; # managed by Certbot
  23. include /etc/letsencrypt/options-ssl-nginx.conf; # managed by Certbot
  24. ssl_dhparam /etc/letsencrypt/ssl-dhparams.pem; # managed by Certbot
  25.  
  26. }
  27. server {
  28. if ($host = smash.typeco.de) {
  29. return 301 https://$host$request_uri;
  30. } # managed by Certbot
  31.  
  32.  
  33. listen 80 default_server;
  34. listen [::]:80 default_server;
  35.  
  36. server_name smash.typeco.de;
  37. return 404; # managed by Certbot
  38.  
  39.  
  40. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement