Skip to content

Commit

Permalink
Update cookiecutter generated files (#615)
Browse files Browse the repository at this point in the history
  • Loading branch information
kumaranvpl authored Dec 3, 2024
1 parent e0ce500 commit 8c6d16d
Show file tree
Hide file tree
Showing 14 changed files with 20 additions and 60 deletions.
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
version: '3'

services:
# nosemgrep: yaml.docker-compose.security.writable-filesystem-service.writable-filesystem-service
# nosemgrep: yaml.docker-compose.security.writable-filesystem-service.writable-filesystem-service, yaml.docker-compose.security.no-new-privileges.no-new-privileges
python-3.12-my_fastagency_app:
image: mcr.microsoft.com/devcontainers/python:3.12
container_name: my_fastagency_app-${USER}-python-3.12
Expand All @@ -11,8 +11,6 @@ services:

env_file:
- ./devcontainer.env
security_opt:
- no-new-privileges:true
networks:
- my_fastagency_app-network

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -42,8 +42,7 @@ server {
add_header X-Content-Type-Options "nosniff";
add_header X-XSS-Protection "1; mode=block";

location / {
# Handle cookie setting
location / {# Handle cookie setting
if ($sticky_action = "set_cookie") {
add_header Set-Cookie "fly-machine-id=$FLY_MACHINE_ID; Max-Age=518400; Path=/";
}
Expand All @@ -53,7 +52,6 @@ server {
add_header Fly-Replay "instance=$fly_machine_id";
return 307;
}

proxy_pass http://fastapi_backend;
proxy_set_header Host $host;
proxy_set_header X-Real-IP $remote_addr;
Expand All @@ -80,8 +78,7 @@ server {
add_header X-Content-Type-Options "nosniff";
add_header X-XSS-Protection "1; mode=block";

location / {
# Handle cookie setting
location / {# Handle cookie setting
if ($sticky_action = "set_cookie") {
add_header Set-Cookie "fly-machine-id=$FLY_MACHINE_ID; Max-Age=518400; Path=/";
}
Expand All @@ -91,7 +88,6 @@ server {
add_header Fly-Replay "instance=$fly_machine_id";
return 307;
}

proxy_pass http://mesop_backend;
proxy_set_header Host $host;
proxy_set_header X-Real-IP $remote_addr;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
version: '3'

services:
# nosemgrep: yaml.docker-compose.security.writable-filesystem-service.writable-filesystem-service
# nosemgrep: yaml.docker-compose.security.writable-filesystem-service.writable-filesystem-service, yaml.docker-compose.security.no-new-privileges.no-new-privileges
python-3.12-my_fastagency_app:
image: mcr.microsoft.com/devcontainers/python:3.12
container_name: my_fastagency_app-${USER}-python-3.12
Expand All @@ -11,8 +11,6 @@ services:

env_file:
- ./devcontainer.env
security_opt:
- no-new-privileges:true
networks:
- my_fastagency_app-network

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -42,8 +42,7 @@ server {
add_header X-Content-Type-Options "nosniff";
add_header X-XSS-Protection "1; mode=block";

location / {
# Handle cookie setting
location / {# Handle cookie setting
if ($sticky_action = "set_cookie") {
add_header Set-Cookie "fly-machine-id=$FLY_MACHINE_ID; Max-Age=518400; Path=/";
}
Expand All @@ -53,7 +52,6 @@ server {
add_header Fly-Replay "instance=$fly_machine_id";
return 307;
}

proxy_pass http://mesop_backend;
proxy_set_header Host $host;
proxy_set_header X-Real-IP $remote_addr;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
version: '3'

services:
# nosemgrep: yaml.docker-compose.security.writable-filesystem-service.writable-filesystem-service
# nosemgrep: yaml.docker-compose.security.writable-filesystem-service.writable-filesystem-service, yaml.docker-compose.security.no-new-privileges.no-new-privileges
python-3.12-my_fastagency_app:
image: mcr.microsoft.com/devcontainers/python:3.12
container_name: my_fastagency_app-${USER}-python-3.12
Expand All @@ -14,8 +14,6 @@ services:

env_file:
- ./devcontainer.env
security_opt:
- no-new-privileges:true
networks:
- my_fastagency_app-network

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -42,8 +42,7 @@ server {
add_header X-Content-Type-Options "nosniff";
add_header X-XSS-Protection "1; mode=block";

location / {
# Handle cookie setting
location / {# Handle cookie setting
if ($sticky_action = "set_cookie") {
add_header Set-Cookie "fly-machine-id=$FLY_MACHINE_ID; Max-Age=518400; Path=/";
}
Expand All @@ -53,7 +52,6 @@ server {
add_header Fly-Replay "instance=$fly_machine_id";
return 307;
}

proxy_pass http://nats_fastapi_backend;
proxy_set_header Host $host;
proxy_set_header X-Real-IP $remote_addr;
Expand All @@ -80,8 +78,7 @@ server {
add_header X-Content-Type-Options "nosniff";
add_header X-XSS-Protection "1; mode=block";

location / {
# Handle cookie setting
location / {# Handle cookie setting
if ($sticky_action = "set_cookie") {
add_header Set-Cookie "fly-machine-id=$FLY_MACHINE_ID; Max-Age=518400; Path=/";
}
Expand All @@ -91,7 +88,6 @@ server {
add_header Fly-Replay "instance=$fly_machine_id";
return 307;
}

proxy_pass http://fastapi_backend;
proxy_set_header Host $host;
proxy_set_header X-Real-IP $remote_addr;
Expand All @@ -118,8 +114,7 @@ server {
add_header X-Content-Type-Options "nosniff";
add_header X-XSS-Protection "1; mode=block";

location / {
# Handle cookie setting
location / {# Handle cookie setting
if ($sticky_action = "set_cookie") {
add_header Set-Cookie "fly-machine-id=$FLY_MACHINE_ID; Max-Age=518400; Path=/";
}
Expand All @@ -129,7 +124,6 @@ server {
add_header Fly-Replay "instance=$fly_machine_id";
return 307;
}

proxy_pass http://mesop_backend;
proxy_set_header Host $host;
proxy_set_header X-Real-IP $remote_addr;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
version: '3'

services:
# nosemgrep: yaml.docker-compose.security.writable-filesystem-service.writable-filesystem-service
# nosemgrep: yaml.docker-compose.security.writable-filesystem-service.writable-filesystem-service, yaml.docker-compose.security.no-new-privileges.no-new-privileges
python-3.12-my_fastagency_app:
image: mcr.microsoft.com/devcontainers/python:3.12
container_name: my_fastagency_app-${USER}-python-3.12
Expand All @@ -11,8 +11,6 @@ services:

env_file:
- ./devcontainer.env
security_opt:
- no-new-privileges:true
networks:
- my_fastagency_app-network

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -42,8 +42,7 @@ server {
add_header X-Content-Type-Options "nosniff";
add_header X-XSS-Protection "1; mode=block";

location / {
# Handle cookie setting
location / {# Handle cookie setting
if ($sticky_action = "set_cookie") {
add_header Set-Cookie "fly-machine-id=$FLY_MACHINE_ID; Max-Age=518400; Path=/";
}
Expand All @@ -53,7 +52,6 @@ server {
add_header Fly-Replay "instance=$fly_machine_id";
return 307;
}

proxy_pass http://fastapi_backend;
proxy_set_header Host $host;
proxy_set_header X-Real-IP $remote_addr;
Expand All @@ -80,8 +78,7 @@ server {
add_header X-Content-Type-Options "nosniff";
add_header X-XSS-Protection "1; mode=block";

location / {
# Handle cookie setting
location / {# Handle cookie setting
if ($sticky_action = "set_cookie") {
add_header Set-Cookie "fly-machine-id=$FLY_MACHINE_ID; Max-Age=518400; Path=/";
}
Expand All @@ -91,7 +88,6 @@ server {
add_header Fly-Replay "instance=$fly_machine_id";
return 307;
}

proxy_pass http://mesop_backend;
proxy_set_header Host $host;
proxy_set_header X-Real-IP $remote_addr;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
version: '3'

services:
# nosemgrep: yaml.docker-compose.security.writable-filesystem-service.writable-filesystem-service
# nosemgrep: yaml.docker-compose.security.writable-filesystem-service.writable-filesystem-service, yaml.docker-compose.security.no-new-privileges.no-new-privileges
python-3.12-my_fastagency_app:
image: mcr.microsoft.com/devcontainers/python:3.12
container_name: my_fastagency_app-${USER}-python-3.12
Expand All @@ -11,8 +11,6 @@ services:

env_file:
- ./devcontainer.env
security_opt:
- no-new-privileges:true
networks:
- my_fastagency_app-network

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -42,8 +42,7 @@ server {
add_header X-Content-Type-Options "nosniff";
add_header X-XSS-Protection "1; mode=block";

location / {
# Handle cookie setting
location / {# Handle cookie setting
if ($sticky_action = "set_cookie") {
add_header Set-Cookie "fly-machine-id=$FLY_MACHINE_ID; Max-Age=518400; Path=/";
}
Expand All @@ -53,7 +52,6 @@ server {
add_header Fly-Replay "instance=$fly_machine_id";
return 307;
}

proxy_pass http://mesop_backend;
proxy_set_header Host $host;
proxy_set_header X-Real-IP $remote_addr;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
version: '3'

services:
# nosemgrep: yaml.docker-compose.security.writable-filesystem-service.writable-filesystem-service
# nosemgrep: yaml.docker-compose.security.writable-filesystem-service.writable-filesystem-service, yaml.docker-compose.security.no-new-privileges.no-new-privileges
python-3.12-my_fastagency_app:
image: mcr.microsoft.com/devcontainers/python:3.12
container_name: my_fastagency_app-${USER}-python-3.12
Expand All @@ -14,8 +14,6 @@ services:

env_file:
- ./devcontainer.env
security_opt:
- no-new-privileges:true
networks:
- my_fastagency_app-network

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -42,8 +42,7 @@ server {
add_header X-Content-Type-Options "nosniff";
add_header X-XSS-Protection "1; mode=block";

location / {
# Handle cookie setting
location / {# Handle cookie setting
if ($sticky_action = "set_cookie") {
add_header Set-Cookie "fly-machine-id=$FLY_MACHINE_ID; Max-Age=518400; Path=/";
}
Expand All @@ -53,7 +52,6 @@ server {
add_header Fly-Replay "instance=$fly_machine_id";
return 307;
}

proxy_pass http://nats_fastapi_backend;
proxy_set_header Host $host;
proxy_set_header X-Real-IP $remote_addr;
Expand All @@ -80,8 +78,7 @@ server {
add_header X-Content-Type-Options "nosniff";
add_header X-XSS-Protection "1; mode=block";

location / {
# Handle cookie setting
location / {# Handle cookie setting
if ($sticky_action = "set_cookie") {
add_header Set-Cookie "fly-machine-id=$FLY_MACHINE_ID; Max-Age=518400; Path=/";
}
Expand All @@ -91,7 +88,6 @@ server {
add_header Fly-Replay "instance=$fly_machine_id";
return 307;
}

proxy_pass http://fastapi_backend;
proxy_set_header Host $host;
proxy_set_header X-Real-IP $remote_addr;
Expand All @@ -118,8 +114,7 @@ server {
add_header X-Content-Type-Options "nosniff";
add_header X-XSS-Protection "1; mode=block";

location / {
# Handle cookie setting
location / {# Handle cookie setting
if ($sticky_action = "set_cookie") {
add_header Set-Cookie "fly-machine-id=$FLY_MACHINE_ID; Max-Age=518400; Path=/";
}
Expand All @@ -129,7 +124,6 @@ server {
add_header Fly-Replay "instance=$fly_machine_id";
return 307;
}

proxy_pass http://mesop_backend;
proxy_set_header Host $host;
proxy_set_header X-Real-IP $remote_addr;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
version: '3'

services:
# nosemgrep: yaml.docker-compose.security.writable-filesystem-service.writable-filesystem-service
# nosemgrep: yaml.docker-compose.security.writable-filesystem-service.writable-filesystem-service, yaml.docker-compose.security.no-new-privileges.no-new-privileges
python-3.12-my_bank_app:
image: mcr.microsoft.com/devcontainers/python:3.12
container_name: my_bank_app-${USER}-python-3.12
Expand All @@ -11,8 +11,6 @@ services:

env_file:
- ./devcontainer.env
security_opt:
- no-new-privileges:true
networks:
- my_bank_app-network

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -42,8 +42,7 @@ server {
add_header X-Content-Type-Options "nosniff";
add_header X-XSS-Protection "1; mode=block";

location / {
# Handle cookie setting
location / {# Handle cookie setting
if ($sticky_action = "set_cookie") {
add_header Set-Cookie "fly-machine-id=$FLY_MACHINE_ID; Max-Age=518400; Path=/";
}
Expand All @@ -53,7 +52,6 @@ server {
add_header Fly-Replay "instance=$fly_machine_id";
return 307;
}

proxy_pass http://mesop_backend;
proxy_set_header Host $host;
proxy_set_header X-Real-IP $remote_addr;
Expand Down

0 comments on commit 8c6d16d

Please sign in to comment.