feat: add shared dir for docker image and nginx config
This commit is contained in:
parent
ee1daec03c
commit
65d89cf59f
2 changed files with 20 additions and 0 deletions
5
build/Containerfile
Normal file
5
build/Containerfile
Normal file
|
|
@ -0,0 +1,5 @@
|
||||||
|
FROM nginx:mainline-alpine as nginx
|
||||||
|
|
||||||
|
COPY ./build/nginx/site.conf /etc/nginx/conf.d/default.conf
|
||||||
|
|
||||||
|
COPY ./out /var/www/html
|
||||||
15
build/nginx/site.conf
Normal file
15
build/nginx/site.conf
Normal file
|
|
@ -0,0 +1,15 @@
|
||||||
|
server {
|
||||||
|
listen 80;
|
||||||
|
|
||||||
|
location /security.txt {
|
||||||
|
return 308 /.well-known/security.txt;
|
||||||
|
}
|
||||||
|
|
||||||
|
location / {
|
||||||
|
root /var/www/html;
|
||||||
|
index index.html index.htm;
|
||||||
|
}
|
||||||
|
|
||||||
|
error_page 404 /404.html;
|
||||||
|
#error_page 500 502 503 504 /50x.html;
|
||||||
|
}
|
||||||
Reference in a new issue