25 lines
553 B
Django/Jinja
25 lines
553 B
Django/Jinja
server {
|
|
listen 80;
|
|
listen [::]:80;
|
|
server_name {{ chatbridge_fqdn }};
|
|
|
|
location {{ chatbridge_webroot }}/api/ {
|
|
proxy_pass http://127.0.0.1:{{ chatbridge_api_port }}/;
|
|
}
|
|
|
|
{% if CHATBRIDGE_MODE == "development" %}
|
|
location {{ chatbridge_webroot }}/ {
|
|
proxy_pass http://127.0.0.1:{{ chatbridge_webpack_port }}/;
|
|
}
|
|
|
|
{% else %}
|
|
|
|
location {{ chatbridge_webroot }} {
|
|
root {{ chatbridge_public_dir }};
|
|
try_files $uri $uri/ $uri/index.html /index.html index.html;
|
|
}
|
|
|
|
{% endif %}
|
|
|
|
}
|