Roxedus

guac

Nov 7th, 2017
442
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Nginx 0.51 KB | None | 0 0
  1. include /etc/nginx/proxy/upstream.conf;
  2.  
  3. server {
  4.     listen 80;
  5.     listen [::]:80;
  6.        
  7.     #Redirect non-https traffic to https
  8.      if ($scheme != "https") {
  9.          return 301 https://$host$request_uri;
  10.      } # managed by Certbot
  11.    
  12.     listen 443 ssl http2;
  13.     listen [::]:443 ssl http2;
  14.    
  15.     # the virtual host name of this
  16.     server_name guac.e-corp.rip;
  17.  
  18.     include /etc/nginx/proxy/default.proxy;
  19.     include /etc/nginx/snippets/ssl.conf;
  20.    
  21.     location / {
  22.         proxy_pass http://guac-upstream;
  23.     }
  24. }
Advertisement