ok
This commit is contained in:
2
.dockerignore
Normal file
2
.dockerignore
Normal file
@@ -0,0 +1,2 @@
|
||||
node_modules
|
||||
public
|
||||
@@ -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
|
||||
|
||||
@@ -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/;
|
||||
|
||||
Reference in New Issue
Block a user