-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
ef3b9e8
commit 0138060
Showing
1 changed file
with
26 additions
and
15 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,15 +1,26 @@ | ||
server { | ||
listen 8080; | ||
server_name localhost; | ||
root /app; | ||
index index.html; | ||
|
||
location / { | ||
try_files /index.html =404; | ||
} | ||
|
||
# Optional: Basic Security Headers | ||
add_header X-Content-Type-Options nosniff; | ||
add_header X-Frame-Options DENY; | ||
add_header Referrer-Policy no-referrer; | ||
} | ||
server { | ||
listen 8080; | ||
server_name localhost; | ||
root /app; | ||
index index.html; | ||
|
||
add_header X-Content-Type-Options nosniff; | ||
add_header X-Frame-Options DENY; | ||
add_header Referrer-Policy no-referrer; | ||
|
||
# Serve the maintenance page with a 503 status | ||
location / { | ||
return 503; | ||
} | ||
|
||
# Define the error page for 503 errors | ||
error_page 503 /index.html; | ||
|
||
# Serve the maintenance page content | ||
location = /index.html { | ||
root /app; | ||
} | ||
|
||
access_log /dev/stdout; | ||
error_log /dev/stderr; | ||
} |