Websocket server implementing a clock handling alarms and timezones
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

nginx_server.conf 585B

123456789101112131415161718192021222324
  1. server {
  2. listen 80 default_server;
  3. listen [::]:80 default_server;
  4. root /var/www/clock/;
  5. index index.html;
  6. server_name _;
  7. location / {
  8. try_files $uri $uri/ =404;
  9. }
  10. location /wsclock/ {
  11. proxy_pass http://127.0.0.1:8901;
  12. proxy_http_version 1.1;
  13. proxy_set_header X-Real-IP $remote_addr;
  14. proxy_set_header Upgrade $http_upgrade;
  15. proxy_set_header Connection "Upgrade";
  16. proxy_set_header Host $Host;
  17. }
  18. }