Advertisement
Guest User

Untitled

a guest
Mar 13th, 2019
57
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Nginx 1.09 KB | None | 0 0
  1. server {
  2.         listen 80;
  3.         server_name auth.domain.com;
  4.         return 301 https://$host$request_uri;
  5. }
  6. server {
  7.     if ($host = auth.domain.com) {
  8.     }
  9.         listen 443 ssl http2; # managed by Certbot
  10.         server_name auth.domain.com;
  11.         charset utf-8;
  12.         client_max_body_size 128M;
  13.         return 404; # managed by Certbot
  14.  
  15.         ssl_certificate /etc/letsencrypt/live/auth.domain.com/fullchain.pem; # managed by Certbot
  16.         ssl_certificate_key /etc/letsencrypt/live/auth.domain.com/privkey.pem; # managed by Certbot
  17.         include /etc/letsencrypt/options-ssl-nginx.conf; # managed by Certbot
  18.         ssl_dhparam /etc/letsencrypt/ssl-dhparams.pem; # managed by Certbot
  19.  
  20.         location / {
  21.                 access_log off;
  22.                 proxy_pass http://localhost:8080;
  23.                 proxy_redirect off;
  24.                 proxy_set_header X-Real-IP $remote_addr;
  25.                 proxy_set_header Host $host;
  26.                 proxy_set_header X-Forwarded-Proto https;
  27.                 proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
  28.         }
  29. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement