ahmadalfakeh commited on
Commit
770b956
·
verified ·
1 Parent(s): ca05e2a

Create nginx.conf

Browse files
Files changed (1) hide show
  1. nginx.conf +19 -0
nginx.conf ADDED
@@ -0,0 +1,19 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ server {
2
+ listen 7860;
3
+ server_name _;
4
+
5
+ # Basic Auth
6
+ auth_basic "Restricted";
7
+ auth_basic_user_file /etc/nginx/.htpasswd;
8
+
9
+ root /usr/share/nginx/html;
10
+ index index.html;
11
+
12
+ # WASM / cross-origin isolation headers (helpful for some browser features)
13
+ add_header Cross-Origin-Opener-Policy "same-origin" always;
14
+ add_header Cross-Origin-Embedder-Policy "require-corp" always;
15
+
16
+ location / {
17
+ try_files $uri $uri/ /index.html;
18
+ }
19
+ }