reverse_proxy_nginx_dns.conf 831 B

123456789101112131415161718192021222324252627
  1. # Requires Nginx 1.25.1+ with ngx_http_v2_module for "http2 on;".
  2. # On older Nginx, use "listen 443 ssl http2;" instead and omit the http2 directive.
  3. server {
  4. listen 443 ssl;
  5. http2 on;
  6. ssl_certificate "/etc/nginx/conf.d/server.crt";
  7. ssl_certificate_key "/etc/nginx/conf.d/server.key";
  8. access_log /var/log/nginx/ot.access.log main;
  9. error_log /var/log/nginx/ot.error.log notice;
  10. server_name olivetin.example.com;
  11. location / {
  12. proxy_pass http://localhost:1337/;
  13. proxy_redirect http://localhost:1337/ http://localhost/OliveTin/;
  14. }
  15. location /websocket {
  16. proxy_set_header Upgrade "websocket";
  17. proxy_set_header Connection "upgrade";
  18. proxy_pass http://localhost:1337/websocket;
  19. proxy_read_timeout 600s;
  20. proxy_send_timeout 600s;
  21. }
  22. }