1
0
forked from noxious/client

nginx conf. test

This commit is contained in:
Dennis Postma 2024-10-18 19:45:25 +02:00
parent 222614b856
commit 13cb46658f
2 changed files with 17 additions and 0 deletions

View File

@ -27,5 +27,6 @@ RUN npm run build-ntc
# Production stage
FROM nginx:1.26.1-alpine
COPY --from=builder /usr/src/app/dist /usr/share/nginx/html
COPY nginx.conf /etc/nginx/conf.d/default.conf
EXPOSE 80
CMD ["nginx", "-g", "daemon off;"]

16
nginx.conf Normal file
View File

@ -0,0 +1,16 @@
server {
listen 80;
server_name localhost;
root /usr/share/nginx/html;
index index.html;
# Redirect example
location /discord {
return 301 https://discord.gg/JTev3nzeDa;
}
# Serve static files
location / {
try_files $uri $uri/ /index.html;
}
}