default.conf 593 B

12345678910111213141516171819202122232425
  1. server {
  2. listen 80;
  3. listen [::]:80;
  4. server_name nginx.local.cetacean.club;
  5. proxy_set_header X-Real-IP $remote_addr;
  6. proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
  7. location /.within.website/ {
  8. proxy_pass http://localhost:8923;
  9. auth_request off;
  10. }
  11. location @redirectToAnubis {
  12. return 307 /.within.website/?redir=$scheme://$host$request_uri;
  13. auth_request off;
  14. }
  15. location / {
  16. auth_request /.within.website/x/cmd/anubis/api/check;
  17. error_page 401 = @redirectToAnubis;
  18. root /usr/share/nginx/html;
  19. index index.html index.htm;
  20. }
  21. }