Skip to content

Commit

Permalink
Merge pull request #389 from adrianbielawski/nginx-config
Browse files Browse the repository at this point in the history
Add nginx config to rewrite all URLs to index.
  • Loading branch information
D3X authored Feb 3, 2024
2 parents e3fb0c2 + adf5245 commit 3265aa1
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 0 deletions.
1 change: 1 addition & 0 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -1,2 +1,3 @@
FROM nginx
COPY nginx.conf /etc/nginx/conf.d/default.conf
COPY dist /usr/share/nginx/html
11 changes: 11 additions & 0 deletions nginx.conf
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
server {
listen 80;
listen [::]:80;
server_name localhost;

location / {
root /usr/share/nginx/html;
index index.html index.htm;
try_files $uri $uri/ /index.html;
}
}

0 comments on commit 3265aa1

Please sign in to comment.