Skip to content

Commit

Permalink
Fix nginx for hypersomnia.io
Browse files Browse the repository at this point in the history
  • Loading branch information
geneotech committed Jul 26, 2024
1 parent f7b42f8 commit ba67c82
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions cmake/web/hypersomnia.io
Original file line number Diff line number Diff line change
Expand Up @@ -9,12 +9,18 @@ server {
try_files $uri $uri/ /Hypersomnia.html;
}

location /assets/ {
alias /var/www/html/assets/;
autoindex on; # This is optional; it allows directory listing if no index file is found
}

# MIME types for WebAssembly (.wasm) files
types {
application/wasm wasm;
application/octet-stream data;
text/html html;
text/javascript js;
text/css css;
}

# Add Cross-Origin-Opener-Policy and Cross-Origin-Embedder-Policy headers
Expand Down

0 comments on commit ba67c82

Please sign in to comment.