From 63f3a31e903cfeb2aa7389be8037fa3ec6083907 Mon Sep 17 00:00:00 2001 From: ptruessel Date: Thu, 5 Dec 2024 13:17:06 +0100 Subject: [PATCH 1/2] Added a custom nginx config file --- .github/workflows/deploy-production.yml | 2 +- .github/workflows/deploy-staging.yml | 2 +- config/nginx/conf.d/custom.conf | 1 + 3 files changed, 3 insertions(+), 2 deletions(-) create mode 100644 config/nginx/conf.d/custom.conf diff --git a/.github/workflows/deploy-production.yml b/.github/workflows/deploy-production.yml index 70d6e574..a976b6d7 100644 --- a/.github/workflows/deploy-production.yml +++ b/.github/workflows/deploy-production.yml @@ -16,7 +16,7 @@ jobs: - name: Deploy to server via rsync uses: Burnett01/rsync-deployments@5.2 with: - switches: -avzr --delete --exclude-from='.gitignore' + switches: -avzr --delete --exclude-from='.gitignore' --exclude='/config/nginx/conf.d/custom.conf' path: ./ remote_path: ${{ secrets.PROD_REMOTE_PATH }} remote_host: ${{ secrets.PROD_HOST }} diff --git a/.github/workflows/deploy-staging.yml b/.github/workflows/deploy-staging.yml index 2e8ae524..80813902 100644 --- a/.github/workflows/deploy-staging.yml +++ b/.github/workflows/deploy-staging.yml @@ -16,7 +16,7 @@ jobs: - name: Deploy to server via rsync uses: Burnett01/rsync-deployments@5.2 with: - switches: -avzr --delete --exclude-from='.gitignore' + switches: -avzr --delete --exclude-from='.gitignore' --exclude='/config/nginx/conf.d/custom.conf' path: ./ remote_path: ${{ secrets.STAGING_REMOTE_PATH }} remote_host: ${{ secrets.STAGING_HOST }} diff --git a/config/nginx/conf.d/custom.conf b/config/nginx/conf.d/custom.conf new file mode 100644 index 00000000..5a7efa44 --- /dev/null +++ b/config/nginx/conf.d/custom.conf @@ -0,0 +1 @@ +# For your own settings \ No newline at end of file From 29b8c4108ceacc99857a67885250ff2410cd6efc Mon Sep 17 00:00:00 2001 From: ptruessel Date: Thu, 5 Dec 2024 15:29:01 +0100 Subject: [PATCH 2/2] Added example custom.conf file --- config/example.custom.conf | 8 ++++++++ 1 file changed, 8 insertions(+) create mode 100644 config/example.custom.conf diff --git a/config/example.custom.conf b/config/example.custom.conf new file mode 100644 index 00000000..6fded2ef --- /dev/null +++ b/config/example.custom.conf @@ -0,0 +1,8 @@ +# For your own NGINX settings# +# +# server { +# listen 80; +# server_name yourdomain.com; +# return 301 https://www.yourdomain.com$request_uri; +# } +#