From d93f3fe67bf971877d9354731459196c023a03a8 Mon Sep 17 00:00:00 2001 From: Alex Graf Date: Sat, 24 Feb 2024 10:39:35 +0100 Subject: [PATCH] update pre-release action --- .github/workflows/pre-release.yml | 6 ++-- apps/client-asset-sg/docker/nginx.conf | 46 -------------------------- 2 files changed, 4 insertions(+), 48 deletions(-) delete mode 100644 apps/client-asset-sg/docker/nginx.conf diff --git a/.github/workflows/pre-release.yml b/.github/workflows/pre-release.yml index 2ca6a450..0bff45c1 100644 --- a/.github/workflows/pre-release.yml +++ b/.github/workflows/pre-release.yml @@ -66,7 +66,8 @@ jobs: - name: Build and push Docker image (app) uses: docker/build-push-action@v5 with: - context: ./apps/client-asset-sg/docker + context: ./ + file: ./apps/client-asset-sg/docker/Dockerfile push: true build-args: | VERSION=${{ env.VERSION }} @@ -79,7 +80,8 @@ jobs: - name: Build and push Docker image (api) uses: docker/build-push-action@v5 with: - context: ./apps/server-asset-sg/docker + context: ./ + file: ./apps/server-asset-sg/docker/Dockerfile push: true build-args: | VERSION=${{ env.VERSION }} diff --git a/apps/client-asset-sg/docker/nginx.conf b/apps/client-asset-sg/docker/nginx.conf deleted file mode 100644 index 4dfd0784..00000000 --- a/apps/client-asset-sg/docker/nginx.conf +++ /dev/null @@ -1,46 +0,0 @@ -map $sent_http_content_type $expires { - default off; - text/html epoch; # means no cache, as it is not a static page - text/css max; - application/javascript max; - application/woff2 max; - application/octet-stream max; - image/svg+xml 30d; - application/wasm max; -} - -gzip on; - -gzip_vary on; -gzip_proxied any; -gzip_comp_level 6; -gzip_buffers 16 8k; -gzip_min_length 256; -gzip_types text/plain text/css application/json application/javascript text/xml application/xml application/xml+rss text/javascript application/vnd.ms-fontobject application/x-font-ttf font/opentype image/svg+xml image/x-icon; - -server { - listen 80; - listen [::]:80; - - add_header X-Robots-Tag "noindex, nofollow, nosnippet, noarchive"; - add_header 'Access-Control-Allow-Origin' '$http_origin'; - add_header 'Access-Control-Allow-Methods' 'GET, POST, PUT, DELETE, OPTIONS'; - add_header 'Access-Control-Allow-Headers' 'DNT,Authorization,User-Agent,User-Identifier,X-Requested-With,If-Modified-Since,Cache-Control,Content-Type,Range'; - add_header 'Access-Control-Expose-Headers' 'Content-Length,Content-Range'; - add_header 'Timing-Allow-Origin' '*'; - - root /usr/share/nginx/html; - - location /robots.txt { - return 200 "User-agent: *\nDisallow: /\n"; - } - - location ~ /\. { - deny all; - } - - location / { - expires $expires; - try_files $uri$args $uri$args/ /index.html; - } -}