mirror of
https://github.com/penpot/penpot.git
synced 2025-06-01 19:21:38 +02:00
misc: naming refactor on build process
This commit is contained in:
parent
6a75eb893c
commit
5ecd86ba02
11 changed files with 76 additions and 84 deletions
41
docker/frontend/nginx/conf.d/default.conf
Normal file
41
docker/frontend/nginx/conf.d/default.conf
Normal 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;
|
||||
}
|
||||
}
|
3
docker/frontend/nginx/conf.d/misc.conf
Normal file
3
docker/frontend/nginx/conf.d/misc.conf
Normal file
|
@ -0,0 +1,3 @@
|
|||
log_format gzip '[$time_local] ' '"$request" $status $bytes_sent';
|
||||
access_log /dev/stdout;
|
||||
charset utf-8;
|
Loading…
Add table
Add a link
Reference in a new issue