|
|
@ -112,17 +112,12 @@ frontend https |
|
|
|
option httpclose |
|
|
|
option httpclose |
|
|
|
option forwardfor |
|
|
|
option forwardfor |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
# HTTPS: Forward requests to the Libresonic backend |
|
|
|
# HTTPS: Forward requests to the Libresonic backend |
|
|
|
acl is_libresonic path_beg -i /libresonic |
|
|
|
acl is_libresonic path_beg -i /libresonic |
|
|
|
use_backend libresonic-backend if is_libresonic |
|
|
|
use_backend libresonic-backend if is_libresonic |
|
|
|
|
|
|
|
|
|
|
|
backend libresonic-backend |
|
|
|
backend libresonic-backend |
|
|
|
|
|
|
|
|
|
|
|
# Make sure that we are in HTTP mode so that we can rewrite headers |
|
|
|
|
|
|
|
mode http |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
# Rewrite all redirects to use HTTPS, similar to what Nginx does in the |
|
|
|
# Rewrite all redirects to use HTTPS, similar to what Nginx does in the |
|
|
|
# proxy_redirect directive. |
|
|
|
# proxy_redirect directive. |
|
|
|
http-response replace-value Location ^http://(.*)$ https://\1 |
|
|
|
http-response replace-value Location ^http://(.*)$ https://\1 |
|
|
|