| 123456789101112131415161718192021222324252627 |
- # Requires Nginx 1.25.1+ with ngx_http_v2_module for "http2 on;".
- # On older Nginx, use "listen 443 ssl http2;" instead and omit the http2 directive.
- server {
- listen 443 ssl;
- http2 on;
- ssl_certificate "/etc/nginx/conf.d/server.crt";
- ssl_certificate_key "/etc/nginx/conf.d/server.key";
- access_log /var/log/nginx/ot.access.log main;
- error_log /var/log/nginx/ot.error.log notice;
- server_name olivetin.example.com;
- location / {
- proxy_pass http://localhost:1337/;
- proxy_redirect http://localhost:1337/ http://localhost/OliveTin/;
- }
- location /websocket {
- proxy_set_header Upgrade "websocket";
- proxy_set_header Connection "upgrade";
- proxy_pass http://localhost:1337/websocket;
- proxy_read_timeout 600s;
- proxy_send_timeout 600s;
- }
- }
|