diff --git a/{{cookiecutter.project_slug}}/docker/content/nginx.conf.template b/{{cookiecutter.project_slug}}/docker/content/nginx.conf.template index eac5b0d..13246d8 100644 --- a/{{cookiecutter.project_slug}}/docker/content/nginx.conf.template +++ b/{{cookiecutter.project_slug}}/docker/content/nginx.conf.template @@ -69,8 +69,7 @@ server { proxy_set_header Upgrade $http_upgrade; proxy_set_header Connection "upgrade"; } -}{%- endif %} -{% if "fastapi" in cookiecutter.app_type %} +}{%- endif %}{% if "fastapi" in cookiecutter.app_type %} # Fastapi server block server { listen $FASTAPI_PORT; @@ -108,8 +107,7 @@ server { proxy_set_header Upgrade $http_upgrade; proxy_set_header Connection "upgrade"; } -}{%- endif %} -{% if "mesop" in cookiecutter.app_type %} +}{%- endif %}{% if "mesop" in cookiecutter.app_type %} # Mesop server block server { listen $MESOP_PORT; diff --git a/{{cookiecutter.project_slug}}/fly.toml b/{{cookiecutter.project_slug}}/fly.toml index 1924921..411449c 100644 --- a/{{cookiecutter.project_slug}}/fly.toml +++ b/{{cookiecutter.project_slug}}/fly.toml @@ -34,8 +34,7 @@ primary_region = 'ams' [[services.ports]] handlers = ["tls", "http"] - port = 8000{%- endif %} -{% if "fastapi" in cookiecutter.app_type %} + port = 8000{%- endif %}{% if "fastapi" in cookiecutter.app_type %} [[services]] http_checks = [] internal_port = 8008 @@ -48,8 +47,7 @@ primary_region = 'ams' [[services.ports]] handlers = ["tls", "http"] - port = 8008{%- endif %} -{% if "mesop" in cookiecutter.app_type %} + port = 8008{%- endif %}{% if "mesop" in cookiecutter.app_type %} [[services]] http_checks = [] internal_port = 8888