From 5b7375ae57c0135c0e419bf7ea08d6a0c3a497ba Mon Sep 17 00:00:00 2001 From: Tara Wilson Date: Wed, 11 Dec 2024 15:37:51 -0500 Subject: [PATCH] Fixing bugs --- source/ticketUI/Dockerfile | 3 ++- source/ticketUI/angular.json | 5 ++++- source/ticketUI/nginx.conf | 27 ++++++++++++++++----------- 3 files changed, 22 insertions(+), 13 deletions(-) diff --git a/source/ticketUI/Dockerfile b/source/ticketUI/Dockerfile index 8edc1a4..29b6e89 100644 --- a/source/ticketUI/Dockerfile +++ b/source/ticketUI/Dockerfile @@ -1,4 +1,5 @@ FROM nginx:latest COPY ./nginx.conf /etc/nginx/conf.d/default.conf COPY dist/ticket-ui /usr/share/nginx/html -EXPOSE 80 \ No newline at end of file +EXPOSE 80 +CMD ["nginx", "-g", "daemon off;"] \ No newline at end of file diff --git a/source/ticketUI/angular.json b/source/ticketUI/angular.json index 3c28ce6..5df050a 100644 --- a/source/ticketUI/angular.json +++ b/source/ticketUI/angular.json @@ -17,7 +17,10 @@ "build": { "builder": "@angular-devkit/build-angular:application", "options": { - "outputPath": "dist/ticket-ui", + "outputPath": { + "base": "dist/ticket-ui", + "browser": "" + }, "index": "src/index.html", "browser": "src/main.ts", "polyfills": [ diff --git a/source/ticketUI/nginx.conf b/source/ticketUI/nginx.conf index 1aa763b..8905906 100644 --- a/source/ticketUI/nginx.conf +++ b/source/ticketUI/nginx.conf @@ -1,16 +1,21 @@ server { - listen 80; - server_name localhost; + listen 0.0.0.0:8080; + listen [::]:8080; + default_type application/octet-stream; + + gzip on; + gzip_comp_level 6; + gzip_vary on; + gzip_min_length 1000; + gzip_proxied any; + gzip_types text/plain text/css application/json application/x-javascript text/xml application/xml application/xml+rss text/javascript; + gzip_buffers 16 8k; + gunzip on; + client_max_body_size 256M; + + root /usr/share/nginx/html; location / { - root /usr/share/nginx/html; - try_files $uri $uri/ /index.html; - index index.html index.htm; + try_files $uri $uri/ /index.html =404; } - - error_page 500 502 503 504 /50x.html; - location = /50x.html { - root /usr/share/nginx/html; - } - } \ No newline at end of file