vdi.example.com_location 471 B

12345678910111213141516
  1. location / {
  2. proxy_pass http://guacamole:8080/guacamole/;
  3. proxy_redirect off;
  4. proxy_buffering off;
  5. proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
  6. proxy_set_header Upgrade $http_upgrade;
  7. proxy_set_header Connection $http_connection;
  8. proxy_cookie_path /guacamole/ /;
  9. access_log off;
  10. auth_request /auth/check;
  11. }
  12. location /auth {
  13. proxy_pass http://totp-auth:8000; # This is the TOTP Server
  14. proxy_set_header X-Original-URI $request_uri;
  15. }