will's stack

This commit is contained in:
Didier Slof 2023-02-07 00:32:49 +01:00
parent 938041c01d
commit 48b03638bd
Signed by: didier
GPG key ID: 01E71F18AA4398E5
3 changed files with 111 additions and 0 deletions

View file

@ -0,0 +1,3 @@
FROM nginx:latest
COPY nginx.conf /etc/nginx/nginx.conf

View file

@ -0,0 +1,31 @@
user www-data;
events {
worker_connections 768;
}
http {
upstream app {
server app:3000;
}
include /etc/nginx/mime.types;
default_type application/octet-stream;
gzip on;
gzip_disable "msie6";
server {
listen 80;
try_files $uri/index.html $uri @app;
location / {
proxy_pass http://app;
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
proxy_set_header Host $http_host;
proxy_redirect off;
}
client_max_body_size 10M;
keepalive_timeout 10;
}
}