Advertisement
Guest User

Untitled

a guest
Dec 1st, 2021
68
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.12 KB | None | 0 0
  1. server {
  2.  
  3. listen 80;
  4.  
  5. location / {
  6. proxy_pass http://127.0.0.1:5000/;
  7. }
  8. location /auth {
  9. proxy_pass http://127.0.0.1:5000/;
  10. }
  11.  
  12. location /notebook1/ {
  13. auth_request /auth;
  14.  
  15. # root /Users/surbhisharma/Desktop/voila-authentication/voila/static;
  16. proxy_set_header X-Real-IP $remote_addr;
  17. proxy_set_header Host $host;
  18. proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
  19.  
  20. proxy_http_version 1.1;
  21. proxy_set_header Upgrade $http_upgrade;
  22. proxy_set_header Connection "Upgrade";
  23. proxy_read_timeout 86400;
  24.  
  25. proxy_pass http://127.0.0.1:8866/;
  26. proxy_buffering off;
  27. }
  28.  
  29. # location /static {
  30. # root /opt/anaconda3/lib/python3.8/site-packages/voila/static;
  31. #
  32. # }
  33. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement