Skip to content

Commit 93ee67f

Browse files
committed
Check if changing location fixes things
1 parent ec11290 commit 93ee67f

File tree

2 files changed

+29
-1
lines changed

2 files changed

+29
-1
lines changed

devops/nginx/Dockerfile

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,4 +2,5 @@ FROM nginx:1.17
22

33
RUN apt-get update && apt-get -y install nano
44

5-
COPY public /var/www/public
5+
COPY devops/nginx/default.conf /etc/nginx/conf.d/
6+
COPY public /usr/share/nginx/html

devops/nginx/default.conf

Lines changed: 27 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,27 @@
1+
server {
2+
3+
listen 80;
4+
5+
sendfile on;
6+
7+
default_type application/octet-stream;
8+
9+
10+
gzip on;
11+
gzip_http_version 1.1;
12+
gzip_disable "MSIE [1-6]\.";
13+
gzip_min_length 1100;
14+
gzip_vary on;
15+
gzip_proxied expired no-cache no-store private auth;
16+
gzip_types text/plain text/css application/json application/javascript application/x-javascript text/xml application/xml application/xml+rss text/javascript;
17+
gzip_comp_level 9;
18+
19+
20+
root /usr/share/nginx/html;
21+
22+
23+
location ~ ^/v[0-9*]+/ {
24+
try_files $uri $uri/ /index.html =404;
25+
}
26+
27+
}

0 commit comments

Comments
 (0)