mirror of
https://codeberg.org/SafeTwitch/safetwitch.git
synced 2024-12-22 05:12:57 -05:00
Use nginx config
This commit is contained in:
parent
7ff9d9c7bf
commit
61e6f2c8b6
2 changed files with 15 additions and 0 deletions
|
@ -13,6 +13,7 @@ RUN npm i && npm run build
|
|||
|
||||
# nginx state for serving content
|
||||
FROM nginx:alpine
|
||||
COPY ./nginx.conf /etc/nginx/nginx.conf
|
||||
# Set working directory to nginx asset directory
|
||||
WORKDIR /usr/share/nginx/html
|
||||
# Remove default nginx static assets
|
||||
|
|
14
nginx.conf
Normal file
14
nginx.conf
Normal file
|
@ -0,0 +1,14 @@
|
|||
events {}
|
||||
http {
|
||||
include mime.types;
|
||||
|
||||
server {
|
||||
listen 80;
|
||||
|
||||
location / {
|
||||
root /usr/share/nginx/html;
|
||||
index index.html;
|
||||
try_files $uri $uri/ /index.html;
|
||||
}
|
||||
}
|
||||
}
|
Loading…
Reference in a new issue