2020-05-19 11:55:55 +02:00
|
|
|
server {
|
|
|
|
listen 80;
|
2020-08-10 16:45:30 +02:00
|
|
|
# listen 443 ssl http2;
|
2020-05-19 11:55:55 +02:00
|
|
|
server_name jirs.lvh.me;
|
|
|
|
|
|
|
|
charset utf-8;
|
|
|
|
root /home/eraden/code/eraden/jirs/jirs-client/tmp;
|
|
|
|
|
2020-08-10 16:45:30 +02:00
|
|
|
# ssl_certificate /home/eraden/code/eraden/jirs/jirs-client/js/nginx-selfsigned.crt;
|
|
|
|
# ssl_certificate_key /home/eraden/code/eraden/jirs/jirs-client/js/nginx-selfsigned.key;
|
2020-06-10 22:03:00 +02:00
|
|
|
|
2020-06-10 22:11:51 +02:00
|
|
|
# if ($scheme != "https") {
|
|
|
|
# return 301 https://$host$request_uri;
|
|
|
|
# }
|
2020-06-10 22:03:00 +02:00
|
|
|
|
2020-05-19 11:55:55 +02:00
|
|
|
location ~ .wasm {
|
2020-06-04 20:47:10 +02:00
|
|
|
default_type application/wasm;
|
2020-05-19 11:55:55 +02:00
|
|
|
}
|
|
|
|
|
|
|
|
location *.js {
|
2020-06-04 20:47:10 +02:00
|
|
|
default_type application/javascript;
|
2020-05-19 11:55:55 +02:00
|
|
|
}
|
|
|
|
|
|
|
|
location / {
|
|
|
|
index index.html index.htm;
|
|
|
|
}
|
|
|
|
|
|
|
|
error_page 404 =200 /index.html;
|
2020-05-19 12:02:55 +02:00
|
|
|
|
|
|
|
location /ws/ {
|
|
|
|
proxy_pass http://localhost;
|
|
|
|
proxy_http_version 1.1;
|
|
|
|
proxy_set_header Upgrade $http_upgrade;
|
|
|
|
proxy_set_header Connection "Upgrade";
|
|
|
|
proxy_set_header Host $host;
|
|
|
|
}
|
2020-05-19 11:55:55 +02:00
|
|
|
}
|