Skip to content
This repository was archived by the owner on Jun 5, 2025. It is now read-only.

Commit fdb5137

Browse files
committed
fix(FE): update nginx conf for serving all routes
1 parent a4327ef commit fdb5137

File tree

2 files changed

+18
-0
lines changed

2 files changed

+18
-0
lines changed

Dockerfile

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -82,6 +82,8 @@ RUN chown -R codegate /var/lib/nginx && \
8282
chown -R codegate /var/log/nginx && \
8383
chown -R codegate /run
8484

85+
COPY nginx.conf /etc/nginx/conf.d/default.conf
86+
8587
# Switch to codegate user
8688
USER codegate
8789
WORKDIR /app

nginx.conf

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
server {
2+
listen 80;
3+
4+
server_name localhost;
5+
6+
root /var/www/html;
7+
index index.html;
8+
9+
location / {
10+
try_files $uri /index.html =404;
11+
}
12+
13+
error_log /var/log/nginx/error.log;
14+
access_log /var/log/nginx/access.log;
15+
16+
}

0 commit comments

Comments
 (0)