From a2d15e507d3621d25996ccb5e23841c1341075d9 Mon Sep 17 00:00:00 2001 From: Romein van Buren Date: Mon, 23 Jun 2025 12:04:53 +0200 Subject: [PATCH] Remove Kamal & Docker --- config/deploy.yml | 20 -------------------- dockerfile | 13 ------------- nginx.conf | 36 ------------------------------------ 3 files changed, 69 deletions(-) delete mode 100644 config/deploy.yml delete mode 100644 dockerfile delete mode 100644 nginx.conf diff --git a/config/deploy.yml b/config/deploy.yml deleted file mode 100644 index 5c986e3..0000000 --- a/config/deploy.yml +++ /dev/null @@ -1,20 +0,0 @@ -service: hpg -image: images/hpg.romein.me - -servers: - web: [91.99.31.93] - -proxy: - host: 'hpg.romein.me' - app_port: 80 - healthcheck: - path: '/' - -registry: - server: code.smartyellow.net - username: romein - password: [KAMAL_REGISTRY_PASSWORD] - -builder: - arch: amd64 - remote: ssh://root@91.99.31.93 diff --git a/dockerfile b/dockerfile deleted file mode 100644 index b16c64d..0000000 --- a/dockerfile +++ /dev/null @@ -1,13 +0,0 @@ -FROM node:16-alpine AS build -WORKDIR /app -COPY package*.json ./ -RUN npm install -COPY . . -RUN npm run build - -FROM nginx:alpine -COPY nginx.conf /etc/nginx/conf.d/default.conf -WORKDIR /usr/share/nginx/html -COPY --from=build /app/content/.vitepress/dist . - -ENTRYPOINT ["nginx", "-g", "daemon off;"] diff --git a/nginx.conf b/nginx.conf deleted file mode 100644 index 9d3d438..0000000 --- a/nginx.conf +++ /dev/null @@ -1,36 +0,0 @@ -server { - location / { - root /usr/share/nginx/html; - index index.html index.htm; - add_header Cache-Control "public, max-age=0"; - try_files $uri $uri.html $uri/index.html $uri/index.htm $uri/ /index.html /index.htm =404; - } - - location ^~ /immutable/ { - root /usr/share/nginx/html; - expires 1y; - } - - location ^~ /bijlagen/ { - root /usr/share/nginx/html; - expires 1y; - } - - error_page 500 502 503 504 /50x.html; - location = /50x.html { - root /usr/share/nginx/html; - try_files $uri @redirect_to_index; - internal; - } - - error_page 404 = @handle_404; - location @handle_404 { - root /usr/share/nginx/html; - try_files /404.html @redirect_to_index; - internal; - } - - location @redirect_to_index { - return 302 /; - } -}