mirror of
https://github.com/asimonson1125/asimonson1125.github.io.git
synced 2026-02-25 05:09:49 -06:00
Compare commits
46 Commits
efaf2fb169
...
nginx
| Author | SHA1 | Date | |
|---|---|---|---|
| 1db6f02fba | |||
| b7d448790d | |||
| 5254ad3172 | |||
| bd104f6aaf | |||
| fa77871d0d | |||
| e2206feaf4 | |||
| 30a9c89f41 | |||
| bdfffb46df | |||
| 536832f582 | |||
| ba7fb575ad | |||
| e09bbf19a9 | |||
| c6e05ed716 | |||
| 7731a2bafc | |||
| dd8b15e6e5 | |||
| 97ab6440a8 | |||
| 52b0b48f06 | |||
| 6996e5ad0f | |||
| 0ef8ad597f | |||
| 15c9aef875 | |||
| bd757e18ed | |||
| ead8c365e2 | |||
| 81c52d3758 | |||
| a8d22ceb50 | |||
| de64e4e944 | |||
| 2f58e0f734 | |||
| 8d9010801b | |||
| acea74be61 | |||
| d75572c39d | |||
| 1e9b2026cc | |||
| c60023f185 | |||
| 4a610023d4 | |||
| bda2e6aff5 | |||
| 5e856882e2 | |||
| 67e9f6d4ab | |||
| a75e425cdc | |||
| 5867b0831d | |||
| d563cfbf82 | |||
| e65ca46ac8 | |||
| b7a205d9e0 | |||
| b482b38a35 | |||
| 74bdbaa498 | |||
| b767d2fbe8 | |||
| 5655ad688f | |||
| 9aecf28d7b | |||
| 3974ce57d3 | |||
| 4afbbb2887 |
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
@@ -4,8 +4,12 @@ server {
|
|||||||
return 301 https://asimonson.com$request_uri;
|
return 301 https://asimonson.com$request_uri;
|
||||||
}
|
}
|
||||||
server {
|
server {
|
||||||
listen 8080;
|
listen 8080 http2;
|
||||||
server_name asimonson.com;
|
server_name nginx-dev-asimonson.apps.okd4.csh.rit.edu;
|
||||||
|
|
||||||
|
gzip on;
|
||||||
|
gzip_types text/plain text/javascript text/css;
|
||||||
|
gunzip on;
|
||||||
|
|
||||||
add_header Content-Security-Policy "default-src 'self' 'unsafe-inline' 'unsafe-eval' *.cloudflare.com *.chesscomfiles.com *.chess.com *.googletagmanager.com cdn.jsdelivr.net www.google-analytics.com ajax.googleapis.com;";
|
add_header Content-Security-Policy "default-src 'self' 'unsafe-inline' 'unsafe-eval' *.cloudflare.com *.chesscomfiles.com *.chess.com *.googletagmanager.com cdn.jsdelivr.net www.google-analytics.com ajax.googleapis.com;";
|
||||||
add_header Strict-Transport-Security "max-age=31536000; includeSubDomains" always;
|
add_header Strict-Transport-Security "max-age=31536000; includeSubDomains" always;
|
||||||
@@ -13,9 +17,9 @@ server {
|
|||||||
add_header X-Frame-Options 'SAMEORIGIN';
|
add_header X-Frame-Options 'SAMEORIGIN';
|
||||||
|
|
||||||
location / {
|
location / {
|
||||||
|
include proxy_params;
|
||||||
proxy_pass http://localhost:5000/;
|
proxy_pass http://localhost:5000/;
|
||||||
proxy_set_header Host $host;
|
proxy_set_header Host $host;
|
||||||
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
|
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
Reference in New Issue
Block a user