mirror of
https://github.com/asimonson1125/asimonson1125.github.io.git
synced 2026-02-25 05:09:49 -06:00
Merge branch 'nginx' into nginxdev
This commit is contained in:
18
ecs-task.json
Normal file
18
ecs-task.json
Normal 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"
|
||||
}
|
||||
10
flask.conf
10
flask.conf
@@ -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 $scheme://asimonson.com/socket.io;
|
||||
}
|
||||
|
||||
}
|
||||
Reference in New Issue
Block a user