Merge branch 'nginx' into debug

This commit is contained in:
2023-01-30 13:08:06 -06:00
committed by GitHub
2 changed files with 28 additions and 0 deletions

18
ecs-task.json Normal file
View File

@@ -0,0 +1,18 @@
{
"containerDefinitions": [
{
"name": "app",
"image": "asimonson1125/asimonson1125.github.io",
"essential": true,
"memory": 500,
"cpu": 10,
"portMappings": [
{
"containerPort": 80,
"hostPort": 80
}
]
}
],
"family": "Portfolio"
}

View File

@@ -13,9 +13,19 @@ server {
add_header X-Frame-Options 'SAMEORIGIN';
location / {
include proxy_params;
proxy_pass http://localhost:5000/;
proxy_set_header Host $host;
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
}
location /socket.io {
include proxy_params;
proxy_http_version 1.1;
proxy_buffering off;
proxy_set_header Upgrade $http_upgrade;
proxy_set_header Connection "Upgrade";
proxy_pass http://127.0.0.1:5000/socket.io;
}
}