mirror of
https://github.com/cheveguerra/whaticket-community.git
synced 2026-04-19 12:19:16 +00:00
Build frontend in docker for production using nginx
This commit is contained in:
19
frontend/.docker/nginx/include.d/spa.conf
Executable file
19
frontend/.docker/nginx/include.d/spa.conf
Executable file
@@ -0,0 +1,19 @@
|
||||
listen 80;
|
||||
index index.html;
|
||||
root /var/www/public/;
|
||||
|
||||
location /{{ default .Env.FOLDER_BACKEND "api" }}/ {
|
||||
proxy_pass {{ .Env.URL_BACKEND }};
|
||||
}
|
||||
|
||||
location / {
|
||||
try_files $uri $uri/ /index.html;
|
||||
include include.d/nocache.conf;
|
||||
}
|
||||
|
||||
location /static {
|
||||
alias /var/www/public/static/;
|
||||
include include.d/allcache.conf;
|
||||
}
|
||||
|
||||
include include.d/root.conf;
|
||||
Reference in New Issue
Block a user