Switch back to Nginx, fix direct URLs
continuous-integration/drone/push Build is passing Details

This commit is contained in:
3wc 2023-03-23 13:43:43 -04:00
parent c50635319b
commit 65ef1d2772
2 changed files with 21 additions and 2 deletions

View File

@ -13,6 +13,8 @@ COPY . .
RUN ["npm", "run", "build"]
FROM dragas/thttpd
FROM nginx
COPY --from=build /code/public/ /var/www/http/
COPY --from=build /code/public/ /usr/share/nginx/html/
COPY ./nginx.conf /etc/nginx/conf.d/default.conf

17
nginx.conf Normal file
View File

@ -0,0 +1,17 @@
server {
listen 80;
listen [::]:80;
server_name localhost;
location / {
root /usr/share/nginx/html;
index index.html index.htm;
try_files $uri /index.html =404;
}
# redirect server error pages to the static page /50x.html
#
error_page 500 502 503 504 /50x.html;
location = /50x.html {
root /usr/share/nginx/html;
}
}