actions: Fix subpages
All checks were successful
Build Docker / Build Docker (push) Successful in 22s

This commit is contained in:
Nathan Woodburn 2023-07-31 17:32:25 +10:00
parent 5d9c2b8fcc
commit a2f34bd784
Signed by: nathanwoodburn
GPG Key ID: 203B000478AD0EF1
2 changed files with 16 additions and 1 deletions

View File

@ -1,2 +1,3 @@
FROM nginx:alpine FROM nginx:alpine
COPY . /usr/share/nginx/html COPY . /usr/share/nginx/html
COPY default.conf /etc/nginx/conf.d/default.conf

14
default.conf Normal file
View File

@ -0,0 +1,14 @@
server {
listen 80;
listen [::]:80;
server_name localhost;
location / {
root /usr/share/nginx/html;
index index.html index.htm;
try_files $uri $uri.html;
}
error_page 500 502 503 504 /50x.html;
location = /50x.html {
root /usr/share/nginx/html;
}
}