Compare commits
2 Commits
1ac0ea5f1c
...
a2d15e507d
Author | SHA1 | Date | |
---|---|---|---|
a2d15e507d | |||
e30249b929 |
@ -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
|
@ -107,10 +107,9 @@ export default defineConfig({
|
||||
|
||||
head: [
|
||||
[ 'script', {
|
||||
async: '',
|
||||
defer: '',
|
||||
src: 'https://static.cloudflareinsights.com/beacon.min.js',
|
||||
'data-cf-beacon': '{"token": "e1c160a4aa1641b1b8a387ad6438647b"}',
|
||||
src: 'https://imamu.smartyellow.net/script.js',
|
||||
'data-website-id': '344501f2-4e00-4d22-8682-bf2339ad5812',
|
||||
} ],
|
||||
],
|
||||
|
||||
|
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