From a218d1309bf04a4d0bbd4a3f2180b95ad2e95651 Mon Sep 17 00:00:00 2001 From: Stepan Vladovskiy Date: Tue, 28 Jan 2025 18:24:10 -0300 Subject: [PATCH] debug: no force optins and simpl regexp logic --- .gitea/workflows/main.yml | 1 - nginx.conf.sigil | 4 ++-- 2 files changed, 2 insertions(+), 3 deletions(-) diff --git a/.gitea/workflows/main.yml b/.gitea/workflows/main.yml index 28c3e876..18730b95 100644 --- a/.gitea/workflows/main.yml +++ b/.gitea/workflows/main.yml @@ -33,4 +33,3 @@ jobs: force: true git_remote_url: 'ssh://dokku@v2.discours.io:22/core' ssh_private_key: ${{ secrets.SSH_PRIVATE_KEY }} - git_push_flags: '--force' diff --git a/nginx.conf.sigil b/nginx.conf.sigil index 26855c7a..a079f289 100644 --- a/nginx.conf.sigil +++ b/nginx.conf.sigil @@ -1,5 +1,5 @@ log_format custom '$remote_addr - $remote_user [$time_local] "$request" ' - 'status=$status allow_origin=$allow_origin ' + 'origin=$http_origin status=$status allow_origin=$allow_origin ' '"$http_referer" "$http_user_agent"'; {{ $proxy_settings := "proxy_http_version 1.1; proxy_set_header Upgrade $http_upgrade; proxy_set_header Connection $http_connection; proxy_set_header Host $http_host; proxy_set_header X-Request-Start $msec;" }} @@ -12,7 +12,7 @@ log_format custom '$remote_addr - $remote_user [$time_local] "$request" ' map $http_origin $allow_origin { ~^https?:\/\/(.*\.)?localhost(:\d+)?$ $http_origin; ~^https?:\/\/(.*\.)?discours\.io$ $http_origin; - ~^https?:\/\/(.*\.)?dscrs\.site(:\d+)?$ $http_origin; + ~^https?:\/\/(.*\.)?dscrs\.site$ $http_origin; ~^https?:\/\/discoursio-webapp(-.*)?\.vercel\.app$ $http_origin; default ""; }