Remove Kamal & Docker
This commit is contained in:
@ -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
|
|
13
dockerfile
13
dockerfile
@ -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;"]
|
|
36
nginx.conf
36
nginx.conf
@ -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 /;
|
|
||||||
}
|
|
||||||
}
|
|
Reference in New Issue
Block a user