Compare commits

...

2 Commits
dev ... main

Author SHA1 Message Date
Stepan Vladovskiy
32b47372bb with change config for poetry not install inbox like package
All checks were successful
deploy / deploy (push) Successful in 53s
2025-02-12 20:02:12 -03:00
Stepan Vladovskiy
2173da2cad feat: sv nginx conf sigil without map function, becasue it is moved to global nginx config
Some checks failed
deploy / deploy (push) Failing after 38s
2025-01-29 16:31:41 -03:00
2 changed files with 2 additions and 5 deletions

View File

@ -5,7 +5,7 @@ COPY . /app
RUN apk update && apk add --no-cache git gcc curl
RUN curl -sSL https://install.python-poetry.org | python
ENV PATH="${PATH}:/root/.local/bin"
RUN poetry config virtualenvs.create false && poetry install --no-dev
RUN poetry config virtualenvs.create false && poetry install --without dev --no-root
EXPOSE 8000

View File

@ -9,10 +9,7 @@
{{ $cors_headers_get := "if ($request_method = 'GET') { add_header 'Access-Control-Allow-Origin' '$allow_origin' always; add_header 'Access-Control-Allow-Methods' 'GET, POST, OPTIONS' always; add_header 'Access-Control-Allow-Headers' 'DNT,User-Agent,X-Requested-With,If-Modified-Since,Cache-Control,Content-Type,Range,Authorization' always; add_header 'Access-Control-Expose-Headers' 'Content-Length,Content-Range' always; add_header 'Access-Control-Allow-Credentials' 'true' always; }" }}
# Mapping for allowed origins
map $http_origin $allow_origin {
~^https?:\/\/((.*\.)?localhost(:\d+)?|discoursio-webapp(-(.*))?\.vercel\.app|(.*\.)?discours\.io)$ $http_origin;
default "";
}
# is moved to globL NGINX
# Server block setup
{{ range $port_map := .PROXY_PORT_MAP | split " " }}