diff --git a/.github/workflows/meet.yml b/.github/workflows/meet.yml index 0c2a9443..25942428 100644 --- a/.github/workflows/meet.yml +++ b/.github/workflows/meet.yml @@ -30,32 +30,6 @@ jobs: - name: Lint commit messages added to main run: ~/.local/bin/gitlint --commits origin/${{ github.event.pull_request.base.ref }}..HEAD - check-changelog: - runs-on: ubuntu-latest - if: | - contains(github.event.pull_request.labels.*.name, 'noChangeLog') == false && - github.event_name == 'pull_request' - steps: - - name: Checkout repository - uses: actions/checkout@v3 - with: - fetch-depth: 50 - - name: Check that the CHANGELOG has been modified in the current branch - run: git diff --name-only ${{ github.event.pull_request.base.sha }} ${{ github.event.after }} | grep 'CHANGELOG.md' - - lint-changelog: - runs-on: ubuntu-latest - steps: - - name: Checkout repository - uses: actions/checkout@v2 - - name: Check CHANGELOG max line length - run: | - max_line_length=$(cat CHANGELOG.md | grep -Ev "^\[.*\]: https://github.com" | wc -L) - if [ $max_line_length -ge 80 ]; then - echo "ERROR: CHANGELOG has lines longer than 80 characters." - exit 1 - fi - build-mails: runs-on: ubuntu-latest defaults: diff --git a/src/frontend/default.conf b/src/frontend/default.conf index fe8f1cb9..562d0daa 100644 --- a/src/frontend/default.conf +++ b/src/frontend/default.conf @@ -4,12 +4,21 @@ server { root /usr/share/nginx/html; - location / { - try_files $uri index.html $uri/ =404; + # Serve static files with caching + location ~* ^/assets/.*\.(css|js|json|png|jpg|jpeg|gif|ico|svg|woff|woff2|ttf|eot)$ { + expires 30d; + add_header Cache-Control "public, max-age=2592000"; } - error_page 404 /404.html; - location = /404.html { - internal; + # Serve static files + location / { + try_files $uri $uri/ /index.html; + # Add no-cache headers + add_header Cache-Control "no-cache, no-store, must-revalidate"; + add_header Pragma "no-cache"; # HTTP 1.0 header for backward compatibility + add_header Expires 0; } + + # Optionally, handle 404 errors by redirecting to index.html + error_page 404 =200 /index.html; }