diff --git a/.github/workflows/deploy-demo.yaml b/.github/workflows/deploy-demo.yaml index e6d9d33..c63f844 100644 --- a/.github/workflows/deploy-demo.yaml +++ b/.github/workflows/deploy-demo.yaml @@ -16,6 +16,5 @@ jobs: cluster: digdir-fdk-dev secrets: GH_TOKEN: ${{ secrets.GITHUB_TOKEN }} - GCP_SA_DIGDIR_FDK_GCR_KEY: ${{ secrets.GCP_SA_DIGDIR_FDK_GCR_KEY }} DIGDIR_FDK_AUTODEPLOY: ${{ secrets.DIGDIR_FDK_DEV_AUTODEPLOY }} SLACK_WEBHOOK_URL: ${{ secrets.SLACK_WEBHOOK_URL }} diff --git a/.github/workflows/deploy-staging.yaml b/.github/workflows/deploy-staging.yaml index 91b1402..71bb3e7 100644 --- a/.github/workflows/deploy-staging.yaml +++ b/.github/workflows/deploy-staging.yaml @@ -18,6 +18,5 @@ jobs: cluster: digdir-fdk-dev secrets: GH_TOKEN: ${{ secrets.GITHUB_TOKEN }} - GCP_SA_DIGDIR_FDK_GCR_KEY: ${{ secrets.GCP_SA_DIGDIR_FDK_GCR_KEY }} DIGDIR_FDK_AUTODEPLOY: ${{ secrets.DIGDIR_FDK_DEV_AUTODEPLOY }} SLACK_WEBHOOK_URL: ${{ secrets.SLACK_WEBHOOK_URL }} diff --git a/nginx.conf b/nginx.conf index 5ef1481..168dfda 100644 --- a/nginx.conf +++ b/nginx.conf @@ -10,6 +10,11 @@ http { listen 8080; server_name default_server; + # Only allow valid HTTP methods + if ($request_method !~ ^(GET|POST|PUT|DELETE|HEAD|OPTIONS|PATCH)$) { + return 405; + } + location ~ /enhetsregisteret/api/enheter/(.*) { default_type application/json; proxy_intercept_errors on;