diff --git a/TODO.md b/TODO.md index 222e77b5..aa3cc31b 100644 --- a/TODO.md +++ b/TODO.md @@ -1,12 +1,10 @@ -# TODO +# TODO -In order of importance, somewhat.. - -- Nginx config output: - - Redirection host preserve path nginx configuration - Dashboard stats are caching instead of querying + +Next version: + - UI Log tail -- Custom Nginx Config Editor - Enable/Disable a config Testing: diff --git a/src/backend/templates/redirection_host.conf b/src/backend/templates/redirection_host.conf index d84012f8..2438f9d6 100644 --- a/src/backend/templates/redirection_host.conf +++ b/src/backend/templates/redirection_host.conf @@ -15,6 +15,10 @@ server { location / { {% include "_forced_ssl.conf" %} - return 301 $scheme://{{ forward_domain_name }}$request_uri; + {% if preserve_path == 1 or preserve_path == true %} + return 301 $scheme://{{ forward_domain_name }}$request_uri$request_uri; + {% else %} + return 301 $scheme://{{ forward_domain_name }}$request_uri; + {% endif %} } }