File tree Expand file tree Collapse file tree 2 files changed +29
-1
lines changed Expand file tree Collapse file tree 2 files changed +29
-1
lines changed Original file line number Diff line number Diff line change @@ -2,4 +2,5 @@ FROM nginx:1.17
22
33RUN 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
Original file line number Diff line number Diff line change 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+ }
You can’t perform that action at this time.
0 commit comments