use hostsplit for vhost template
This commit is contained in:
parent
3e5833a825
commit
9499724a04
@ -6,7 +6,7 @@ upstream backend_drone {
|
|||||||
|
|
||||||
server {
|
server {
|
||||||
listen 80;
|
listen 80;
|
||||||
server_name {{ droneci_server_name }};
|
server_name {{ droneci_server_name | urlsplit('hostname') }};
|
||||||
|
|
||||||
{% if droneci_nginx_tls_enabled %}
|
{% if droneci_nginx_tls_enabled %}
|
||||||
return 301 https://$server_name$request_uri;
|
return 301 https://$server_name$request_uri;
|
||||||
@ -25,7 +25,7 @@ server {
|
|||||||
{% if droneci_nginx_tls_enabled %}
|
{% if droneci_nginx_tls_enabled %}
|
||||||
server {
|
server {
|
||||||
listen 443 ssl;
|
listen 443 ssl;
|
||||||
server_name {{ droneci_server_name }};
|
server_name {{ droneci_server_name | urlsplit('hostname') }};
|
||||||
|
|
||||||
location / {
|
location / {
|
||||||
proxy_pass {{ droneci_server_proxy_protocol }}://backend_drone;
|
proxy_pass {{ droneci_server_proxy_protocol }}://backend_drone;
|
||||||
|
Loading…
Reference in New Issue
Block a user