Skip to content

Commit

Permalink
merge upstream
Browse files Browse the repository at this point in the history
  • Loading branch information
Zoey2936 committed May 23, 2024
1 parent bd4a8f1 commit 618df85
Show file tree
Hide file tree
Showing 20 changed files with 28 additions and 764 deletions.
28 changes: 14 additions & 14 deletions backend/templates/_location.conf
Original file line number Diff line number Diff line change
@@ -1,17 +1,17 @@
location {{ path }} {
set $forward_path "{{ forward_path }}";
location {{ path }} {
{{ advanced_config }}

{% if allow_websocket_upgrade == 1 or allow_websocket_upgrade == true %}
proxy_set_header Upgrade $http_upgrade;
proxy_set_header Connection $connection_upgrade;
{% endif %}

include conf.d/include/proxy-location.conf;
proxy_set_header X-Forwarded-Host $host{{ path }};
if ($forward_path = "") {
rewrite ^{{ path }}(/.*)$ $1 break;
}
proxy_pass {{ forward_scheme }}://{{ forward_host }}:{{ forward_port }}{{ forward_path }};
set $forward_path "{{ forward_path }}";

{% if allow_websocket_upgrade == 1 or allow_websocket_upgrade == true %}
proxy_set_header Upgrade $http_upgrade;
proxy_set_header Connection $connection_upgrade;
{% endif %}

{{ advanced_config }}
include conf.d/include/proxy-location.conf;
proxy_set_header X-Forwarded-Host $host{{ path }};
if ($forward_path = "") {
rewrite ^{{ path }}(/.*)$ $1 break;
}
proxy_pass {{ forward_scheme }}://{{ forward_host }}:{{ forward_port }}{{ forward_path }};
}
6 changes: 4 additions & 2 deletions backend/templates/dead_host.conf
Original file line number Diff line number Diff line change
Expand Up @@ -8,9 +8,11 @@ server {
{% include "_forced_tls.conf" %}
{% include "_brotli.conf" %}

include conf.d/include/acme-challenge.conf;
include conf.d/include/block-exploits.conf;

{{ advanced_config }}
include conf.d/include/acme-challenge.conf;
include conf.d/include/block-exploits.conf;

{% if use_default_location == 1 or use_default_location == true %}
location / {
include conf.d/include/acme-challenge.conf;
Expand Down
8 changes: 3 additions & 5 deletions backend/templates/proxy_host.conf
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,9 @@ server {

{{ advanced_config }}

# custom locations
{{ locations }}

{% if use_default_location == 1 or use_default_location == true %}
location / {
include conf.d/include/acme-challenge.conf;
Expand All @@ -44,14 +47,9 @@ server {

# Proxy!
include conf.d/include/proxy.conf;

# custom locations
{{ locations }}
}
{% endif %}

{{ locations }}

# Custom
include /data/nginx/custom/server_proxy.conf;
}
Expand Down
6 changes: 4 additions & 2 deletions backend/templates/redirection_host.conf
Original file line number Diff line number Diff line change
Expand Up @@ -8,9 +8,11 @@ server {
{% include "_forced_tls.conf" %}
{% include "_brotli.conf" %}

include conf.d/include/acme-challenge.conf;
include conf.d/include/block-exploits.conf;

{{ advanced_config }}
include conf.d/include/acme-challenge.conf;
include conf.d/include/block-exploits.conf;

{% if use_default_location == 1 or use_default_location == true %}
location / {
include conf.d/include/acme-challenge.conf;
Expand Down
3 changes: 3 additions & 0 deletions backend/templates/stream.conf
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
# ------------------------------------------------------------

{% if enabled == 1 or enabled == true %}

{% if tcp_forwarding == 1 or tcp_forwarding == true -%}
server {
listen {{ incoming_port }};
Expand All @@ -15,6 +16,7 @@ server {
include /data/nginx/custom/server_stream_tcp.conf;
}
{% endif %}

{% if udp_forwarding == 1 or udp_forwarding == true %}
server {
listen {{ incoming_port }} udp;
Expand All @@ -26,4 +28,5 @@ server {
include /data/nginx/custom/server_stream_udp.conf;
}
{% endif %}

{% endif %}
28 changes: 0 additions & 28 deletions docker/dev/dnsrouter-config.json

This file was deleted.

7 changes: 0 additions & 7 deletions docker/dev/letsencrypt.ini

This file was deleted.

255 changes: 0 additions & 255 deletions docker/dev/pdns-db.sql

This file was deleted.

Loading

0 comments on commit 618df85

Please sign in to comment.