misc: naming refactor on build process

This commit is contained in:
Andrey Antukh 2019-07-04 11:56:52 +02:00
parent 6a75eb893c
commit 5ecd86ba02
11 changed files with 76 additions and 84 deletions

View file

@ -0,0 +1,41 @@
server {
listen 8080 default_server;
listen [::]:8080 default_server;
server_name _;
# Frontend
location / {
root /usr/share/nginx/html/;
try_files $uri /index.html;
gzip on;
gzip_types text/css text/javascript application/x-javascript application/javascript application/json;
add_header Cache-Control "max-age=15552000" always;
}
location /view {
alias /usr/share/nginx/html/view;
}
location /media {
alias /srv/uxbox/media;
}
location /static {
alias /srv/uxbox/static;
}
# Backend
location /api/ {
proxy_pass http://uxbackend:6060/api/;
proxy_http_version 1.1;
proxy_set_header Upgrade $http_upgrade;
proxy_set_header Connection 'upgrade';
proxy_set_header Host $host;
proxy_cache_bypass $http_upgrade;
proxy_set_header X-Real-IP $remote_addr;
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
}
}

View file

@ -0,0 +1,3 @@
log_format gzip '[$time_local] ' '"$request" $status $bytes_sent';
access_log /dev/stdout;
charset utf-8;