Don't fail if file doesn't exist

This commit is contained in:
Carl Mercier 2019-08-08 20:18:50 -04:00
parent 56de6621b5
commit d10b66028b
4 changed files with 8 additions and 8 deletions

View file

@ -78,7 +78,7 @@ http {
include /data/nginx/temp/*.conf;
# Custom
include /data/nginx/custom/http.conf;
include /data/nginx/custom/http[.]conf;
}
stream {
@ -87,4 +87,4 @@ stream {
}
# Custom
include /data/nginx/custom/root.conf;
include /data/nginx/custom/root[.]conf;

View file

@ -42,6 +42,6 @@ server {
{% endif %}
# Custom
include /data/nginx/custom/server_proxy.conf;
include /data/nginx/custom/server_proxy[.]conf;
}
{% endif %}

View file

@ -26,6 +26,6 @@ server {
{% endif %}
# Custom
include /data/nginx/custom/server_redirect.conf;
include /data/nginx/custom/server_redirect[.]conf;
}
{% endif %}

View file

@ -9,8 +9,8 @@ server {
proxy_pass {{ forward_ip }}:{{ forwarding_port }};
# Custom
include /data/nginx/custom/server_stream.conf;
include /data/nginx/custom/server_stream_tcp.conf;
include /data/nginx/custom/server_stream[.]conf;
include /data/nginx/custom/server_stream_tcp[.]conf;
}
{% endif %}
{% if udp_forwarding == 1 or udp_forwarding == true %}
@ -19,8 +19,8 @@ server {
proxy_pass {{ forward_ip }}:{{ forwarding_port }};
# Custom
include /data/nginx/custom/server_stream.conf;
include /data/nginx/custom/server_stream_udp.conf;
include /data/nginx/custom/server_stream[.]conf;
include /data/nginx/custom/server_stream_udp[.]conf;
}
{% endif %}
{% endif %}