mirror of
https://github.com/cheveguerra/whaticket-community.git
synced 2026-04-20 12:49:32 +00:00
Add environment variable in frontend and ssl
This commit is contained in:
@@ -1,4 +1,18 @@
|
||||
server {
|
||||
server_name _;
|
||||
include include.d/spa.conf;
|
||||
upstream backend {
|
||||
server {{ .Env.URL_BACKEND }};
|
||||
}
|
||||
|
||||
server {
|
||||
listen 80;
|
||||
index index.html;
|
||||
root /var/www/public/;
|
||||
|
||||
server_name {{ default .Env.FRONTEND_SERVER_NAME "_" }};
|
||||
include sites.d/frontend.conf;
|
||||
}
|
||||
|
||||
server {
|
||||
listen 80;
|
||||
server_name {{ default .Env.BACKEND_SERVER_NAME "_" }};
|
||||
include sites.d/backend.conf;
|
||||
}
|
||||
Reference in New Issue
Block a user