Compare commits
7 Commits
Author | SHA1 | Date | |
---|---|---|---|
![]() |
412036521d | ||
![]() |
5ad7ff8265 | ||
![]() |
0a2ca2d231 | ||
![]() |
e7b71aae7c | ||
![]() |
b003aa8083 | ||
![]() |
954acf00e5 | ||
f5425d3599 |
|
@ -32,4 +32,4 @@ jobs:
|
|||
with:
|
||||
branch: 'main'
|
||||
git_remote_url: 'ssh://dokku@staging.discours.io:22/inbox'
|
||||
ssh_private_key: ${{ secrets.SSH_PRIVATE_KEY }}
|
||||
ssh_private_key: ${{ secrets.SSH_PRIVATE_KEY }}
|
||||
|
|
|
@ -4,6 +4,7 @@
|
|||
- added httpx
|
||||
- aiohttp and requests removed
|
||||
- core adapter loads data from redis now
|
||||
- authors cachestorage removed
|
||||
|
||||
[0.3.1]
|
||||
- glitchtip connect
|
||||
|
|
|
@ -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
|
||||
|
||||
|
|
|
@ -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 in Global nginx config file /etc/nginx/nginx.conf
|
||||
|
||||
# Server block setup
|
||||
{{ range $port_map := .PROXY_PORT_MAP | split " " }}
|
||||
|
|
Loading…
Reference in New Issue
Block a user