diff --git a/admin/Dockerfile b/admin/Dockerfile index ca5573502..6bc614a0b 100644 --- a/admin/Dockerfile +++ b/admin/Dockerfile @@ -57,7 +57,7 @@ RUN apk update && apk add --no-cache libc6-compat \ && yarn cache clean ################################################################################## -# BUILDER (create partly monorepo only with data needed by dht-node) ############# +# BUILDER (create partly monorepo only with data needed by admin) ################ ################################################################################## FROM turbo-base as builder @@ -65,7 +65,7 @@ COPY --chown=app:app . . RUN turbo prune admin --docker ################################################################################## -# INSTALLER (create production image) ############################################## +# INSTALLER (create production image) ############################################ ################################################################################## FROM turbo-base AS installer @@ -92,7 +92,7 @@ CMD /bin/sh -c "turbo admin#test --env-mode=loose" ################################################################################## FROM lipanski/docker-static-website:latest as production -# TODO: Improve size from 50 MB down to 2 MB with lipanski/docker-static-website:latest +# tiny static webserver # https://lipanski.com/posts/smallest-docker-image-static-website # copy builded frontend files diff --git a/backend/Dockerfile b/backend/Dockerfile index 4cca6c1ea..558369ccd 100644 --- a/backend/Dockerfile +++ b/backend/Dockerfile @@ -54,7 +54,7 @@ RUN apk update && apk add --no-cache libc6-compat \ && yarn cache clean ################################################################################## -# BUILDER (create partly monorepo only with data needed by dht-node) ############# +# BUILDER (create partly monorepo only with data needed by backend) ############## ################################################################################## FROM turbo-base as builder @@ -63,7 +63,7 @@ RUN turbo prune backend --docker ################################################################################## -# INSTALLER (create production image) ############################################## +# INSTALLER (create production image) ############################################ ################################################################################## FROM turbo-base AS installer diff --git a/database/Dockerfile b/database/Dockerfile index 4784eedcd..311bd3443 100644 --- a/database/Dockerfile +++ b/database/Dockerfile @@ -48,7 +48,7 @@ RUN apk update && apk add --no-cache libc6-compat \ ################################################################################## -# BUILDER (create partly monorepo only with data needed by dht-node) ############# +# BUILDER (create partly monorepo only with data needed by database) ############# ################################################################################## FROM turbo-base as builder @@ -56,7 +56,7 @@ COPY --chown=app:app . . RUN turbo prune database --docker ################################################################################## -# INSTALLER (create production image) ############################################## +# INSTALLER (create production image) ############################################ ################################################################################## FROM turbo-base AS installer diff --git a/dht-node/Dockerfile b/dht-node/Dockerfile index d1406a9c4..7f132b451 100644 --- a/dht-node/Dockerfile +++ b/dht-node/Dockerfile @@ -65,7 +65,7 @@ COPY --chown=app:app . . RUN turbo prune dht-node --docker ################################################################################## -# INSTALLER (create production image) ############################################## +# INSTALLER (create production image) ############################################ ################################################################################## FROM turbo-base AS installer diff --git a/federation/Dockerfile b/federation/Dockerfile index 255821a92..a586e2006 100644 --- a/federation/Dockerfile +++ b/federation/Dockerfile @@ -54,7 +54,7 @@ RUN apk update && apk add --no-cache libc6-compat \ && yarn cache clean ################################################################################## -# BUILDER (create partly monorepo only with data needed by dht-node) ############# +# BUILDER (create partly monorepo only with data needed by federation) ########### ################################################################################## FROM turbo-base as builder @@ -63,7 +63,7 @@ RUN turbo prune federation --docker ################################################################################## -# INSTALLER (create production image) ############################################## +# INSTALLER (create production image) ############################################ ################################################################################## FROM turbo-base AS installer diff --git a/frontend/Dockerfile b/frontend/Dockerfile index b5faff612..09a5bb8b9 100644 --- a/frontend/Dockerfile +++ b/frontend/Dockerfile @@ -57,7 +57,7 @@ RUN apk update && apk add --no-cache libc6-compat \ ################################################################################## -# BUILDER (create partly monorepo only with data needed by dht-node) ############# +# BUILDER (create partly monorepo only with data needed by frontend) ############# ################################################################################## FROM turbo-base as builder @@ -65,7 +65,7 @@ COPY --chown=app:app . . RUN turbo prune frontend --docker ################################################################################## -# INSTALLER (create production image) ############################################## +# INSTALLER (create production image) ############################################ ################################################################################## FROM turbo-base AS installer @@ -93,7 +93,7 @@ CMD /bin/sh -c "turbo frontend#test --env-mode=loose" ################################################################################## FROM lipanski/docker-static-website:latest as production -# TODO: Improve size from 50 MB down to 2 MB with lipanski/docker-static-website:latest +# tiny static webserver # https://lipanski.com/posts/smallest-docker-image-static-website # copy builded frontend files diff --git a/nginx/gradido.conf b/nginx/gradido.conf index c0489d549..9bfd3a000 100644 --- a/nginx/gradido.conf +++ b/nginx/gradido.conf @@ -4,18 +4,6 @@ server { listen 80; listen [::]:80; - #include /etc/nginx/common/protect.conf; - #include /etc/nginx/common/protect_add_header.conf; - #include /etc/nginx/common/ssl.conf; - - #gzip_static on; - - # Legacy URLS - set $REWRITE_LEGACY_URLS "true"; - if ($REWRITE_LEGACY_URLS = 'true') { - rewrite ^/vue/?(.*)$ /$1 permanent; - } - # Frontend (default) location / { proxy_http_version 1.1; @@ -69,16 +57,4 @@ server { proxy_redirect off; } - # TODO this could be a performance optimization - #location /vue { - # alias /var/www/html/gradido/frontend/build; - # index index.html; - # - # location ~* \.(png)$ { - # expires 39d; - # } - # try_files $uri $uri/ /index.html = 404; - #} - - #access_log /var/log/nginx/access.log main; }