-
Notifications
You must be signed in to change notification settings - Fork 70
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add example of Nginx configuration and healthcheck for a static React…
…JS application
- Loading branch information
Showing
2 changed files
with
35 additions
and
0 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 |
---|---|---|
@@ -0,0 +1,33 @@ | ||
worker_processes 4; | ||
pid /var/lib/nginx/nginx.pid; | ||
include /etc/nginx/modules-enabled/*.conf; | ||
error_log stderr; | ||
|
||
events { | ||
worker_connections 1024; | ||
} | ||
|
||
http { | ||
include mime.types; | ||
default_type application/octet-stream; | ||
types_hash_max_size 2048; | ||
server_tokens off; | ||
|
||
sendfile on; | ||
|
||
keepalive_timeout 65; | ||
access_log /dev/stdout; | ||
|
||
server { | ||
listen 8888; | ||
server_name localhost; | ||
|
||
port_in_redirect off; | ||
|
||
location / { | ||
root /home/application/current; | ||
index index.html index.htm; | ||
try_files $uri $uri/ $uri.html /index.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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
healthcheck: | ||
path: / |