This commit is contained in:
tparnell
2018-09-28 07:04:57 -04:00
parent 48df70136d
commit 116769c569
3 changed files with 8 additions and 2 deletions

2
.dockerignore Normal file
View File

@@ -0,0 +1,2 @@
node_modules
public

View File

@@ -1,7 +1,8 @@
FROM node:8 as build
WORKDIR /build
COPY . .
COPY package.json package.json
RUN npm install
COPY . .
RUN npm run generate
FROM nginx:mainline as runtime

View File

@@ -5,8 +5,11 @@ server {
location / {
root /usr/share/nginx/html;
index index.html index.htm;
rewrite ^(/tags/)(.*) /tag/$2;
rewrite ^(/tags/)(.*) https://$host/tag/$2;
rewrite ^(/rss) /rss.xml break;
absolute_redirect off;
real_ip_header X-Forwarded-For;
real_ip_recursive on;
}
error_page 500 502 503 504 /500/;