-
Notifications
You must be signed in to change notification settings - Fork 88
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #673 from 0xPolygonID/add_insecure_ui_option
chore: add ui insecure option
- Loading branch information
Showing
3 changed files
with
69 additions
and
3 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,58 @@ | ||
server { | ||
listen 80; | ||
server_name localhost; | ||
|
||
location /health { | ||
access_log off; | ||
add_header 'Content-Type' 'application/json'; | ||
return 200 '{"status":"ok"}'; | ||
} | ||
|
||
location ~* "^/credentials/scan-(issued|link)/[0-9a-f]{8}\b-[0-9a-f]{4}\b-[0-9a-f]{4}\b-[0-9a-f]{4}\b-[0-9a-f]{12}" { | ||
auth_basic "off"; | ||
root /usr/share/nginx/html; | ||
index index.html; | ||
try_files $uri /index.html =404; | ||
include uwsgi_params; | ||
} | ||
|
||
location /assets { | ||
auth_basic "off"; | ||
root /usr/share/nginx/html; | ||
try_files $uri /index.html =404; | ||
include uwsgi_params; | ||
} | ||
|
||
location /favicon.png { | ||
auth_basic "off"; | ||
root /usr/share/nginx/html; | ||
try_files $uri /index.html =404; | ||
include uwsgi_params; | ||
} | ||
|
||
location /images { | ||
auth_basic "off"; | ||
root /usr/share/nginx/html; | ||
try_files $uri /index.html =404; | ||
include uwsgi_params; | ||
} | ||
|
||
location /fonts { | ||
auth_basic "off"; | ||
root /usr/share/nginx/html; | ||
try_files $uri /index.html =404; | ||
include uwsgi_params; | ||
} | ||
|
||
location / { | ||
root /usr/share/nginx/html; | ||
index index.html; | ||
# Redirect all requests to index.html | ||
try_files $uri /index.html =404; | ||
} | ||
|
||
error_page 500 502 503 504 /50x.html; | ||
location = /50x.html { | ||
root /usr/share/nginx/html; | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters