reverse_proxy_nginx_dns.conf 668 B

12345678910111213141516171819202122232425
  1. server {
  2. listen 443 ssl;
  3. ssl_certificate "/etc/nginx/conf.d/server.crt";
  4. ssl_certificate_key "/etc/nginx/conf.d/server.key";
  5. access_log /var/log/nginx/ot.access.log main;
  6. error_log /var/log/nginx/ot.error.log notice;
  7. server_name olivetin.example.com;
  8. location / {
  9. proxy_pass http://localhost:1337/;
  10. proxy_redirect http://localhost:1337/ http://localhost/OliveTin/;
  11. }
  12. location /websocket {
  13. proxy_set_header Upgrade "websocket";
  14. proxy_set_header Connection "upgrade";
  15. proxy_pass http://localhost:1337/websocket;
  16. proxy_read_timeout 600s;
  17. proxy_send_timeout 600s;
  18. }
  19. }