feat(frontend): scaffolding to build frontend
- Added `make fnginx` to have better dev experience - Added app.conf to nginx configuration to handle frontend
This commit is contained in:
parent
5dd6067c95
commit
0db41a440d
11 changed files with 186 additions and 10 deletions
|
|
@ -26,5 +26,6 @@ server {
|
|||
ssl_protocols TLSv1.3;
|
||||
|
||||
proxy_set_header X-Forwarded true;
|
||||
error_page 497 https://$http_host$request_uri;
|
||||
include conf.d/locations/*.conf;
|
||||
}
|
||||
|
|
|
|||
8
nginx/conf/locations/app.conf
Normal file
8
nginx/conf/locations/app.conf
Normal file
|
|
@ -0,0 +1,8 @@
|
|||
location /app {
|
||||
root /volumes/static/app/;
|
||||
try_files /index.html =404;
|
||||
}
|
||||
|
||||
location /assets {
|
||||
root /volumes/static/app/;
|
||||
}
|
||||
|
|
@ -2,7 +2,3 @@
|
|||
location /api/auth/ {
|
||||
proxy_pass http://auth;
|
||||
}
|
||||
|
||||
location / {
|
||||
root /volumes/static/auth/;
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue