From bd7f59a000d79911715c4986402a1b84ec679d2b Mon Sep 17 00:00:00 2001 From: dogukanoksuz Date: Mon, 19 Feb 2024 04:22:32 +0000 Subject: [PATCH] fix: Nginx settings --- .github/workflows/main.yml | 11 ++++++----- storage/nginx.conf | 1 + 2 files changed, 7 insertions(+), 5 deletions(-) diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index facdfe00..d48bc6a6 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -6,9 +6,10 @@ jobs: runs-on: ubuntu-20.04 steps: - name: Getting Main Liman Repository - uses: actions/checkout@v2 + uses: actions/checkout@v4 with: path: package/liman/server + - name: Set up Liman Environment uses: shivammathur/setup-php@v2 with: @@ -18,11 +19,11 @@ jobs: - name: Restore the Composer cache directory id: composercache - run: echo "::set-output name=dir::$(composer config cache-files-dir)" - - - uses: actions/cache@v3 + run: echo "::set-env name=COMPOSER_CACHE_DIR::$(composer config cache-files-dir)" + + - uses: actions/cache@v4 with: - path: ${{ steps.composercache.outputs.dir }} + path: ${{ env.COMPOSER_CACHE_DIR }} key: ${{ runner.os }}-'8.1'-composer-${{ hashFiles('**/composer.json') }} restore-keys: ${{ runner.os }}-'8.1'-composer- diff --git a/storage/nginx.conf b/storage/nginx.conf index 534f92f9..3fda40b4 100644 --- a/storage/nginx.conf +++ b/storage/nginx.conf @@ -81,6 +81,7 @@ server { proxy_set_header Connection 'upgrade'; proxy_set_header Host $host; proxy_cache_bypass $http_upgrade; + add_header X-Frame-Options 'SAMEORIGIN'; } location ~ ^/(?(api|eklenti|broadcasting|css|js|hasync|upload|upload_info|fonts|lmn|turkce.json|english.json).*)$ {