mirror of
https://github.com/isledecomp/isle-portable.git
synced 2026-01-12 02:41:14 +00:00
34 lines
568 B
Nginx Configuration File
34 lines
568 B
Nginx Configuration File
daemon off;
|
|
|
|
events {
|
|
worker_connections 1024;
|
|
}
|
|
|
|
http {
|
|
types {
|
|
application/wasm wasm;
|
|
}
|
|
|
|
include /etc/nginx/mime.types;
|
|
|
|
server {
|
|
listen 6931;
|
|
server_name localhost;
|
|
|
|
add_header 'Cross-Origin-Embedder-Policy' 'require-corp';
|
|
add_header 'Cross-Origin-Opener-Policy' 'same-origin';
|
|
add_header 'Cross-Origin-Resource-Policy' 'cross-origin';
|
|
|
|
location / {
|
|
root /src/build;
|
|
index index.html isle.html;
|
|
try_files $uri $uri/ =404;
|
|
}
|
|
|
|
location /assets/ {
|
|
alias /assets/;
|
|
autoindex off;
|
|
}
|
|
}
|
|
}
|