-
-
Notifications
You must be signed in to change notification settings - Fork 39
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[BUG] I used nginx to redirect to HTTPS, However, it's keep reloading. #91
Comments
Thanks for opening your first issue here! Be sure to follow the relevant issue templates, or risk having this issue marked as invalid. |
What should I do? |
Can you access it normally via ip:port? |
Yes. The http is working. |
Looks like your issue is trying to do subfolder reverse proxy. |
And I have any problem. When I login from https. it will redirect to /login.html. not /duplicati/login.html. So That's why the my nginx config is so odd. |
I can point you to our reverse proxy config we ship with swag: https://github.com/linuxserver/reverse-proxy-confs/blob/master/duplicati.subfolder.conf.sample but other than that, it's outside our support. |
I am not sure about wher is the files for |
Their related to our reverse proxy, you can find the proxy.conf in our swag GitHub repo. |
Thanks for your help. I have one more question. |
You would need to check their documentation. |
Hello, see #89 (comment) If it's like me, you should try to add these 2 WebSocket headers to your reverse proxy.
|
Yes, as described in the documentation, but there is no automatic LetsEncrypt, so you probably want to use Nginx.
There is a problem in 2.1.0.2 where it tries to use a websocket on |
it is
Thanks for your sharing. But it is not work for me. |
Let me wait for the update. Thanks for your update :) |
I also had the issue with constant reload of the webinterface behind nginx reverse proxy. I managed to resolve this with this config:
And also add the 2 websocket headers as mentioned earlier in your siteconfig:
|
Thanks for your update. |
Maybe you problem is this: |
you mean proxy_redirect / http://127.0.0.1:8200/; ? |
I tried, but it is the same. |
Maybe just remove the whole redirect option. |
My currently nginx config #This is server 443 |
I had this issues on two servers with different nginx setups. One was easily solved by adding:
While the other one (a more complicated nginx setup) has not been solved yet. Will update when solved. |
Is there an existing issue for this?
Current Behavior
I am using docker duplicati:lastest version.
and Use nginx to redirect it to HTTPS
But something is not working.
May I confirm that how can I change http to https?
Thank you very much.
Expected Behavior
No response
Steps To Reproduce
Nginx config
location ~ ^/duplicati(/.*)$ {
proxy_read_timeout 300;
proxy_connect_timeout 300;
proxy_send_timeout 300;
proxy_http_version 1.1;
proxy_set_header Upgrade $http_upgrade;
proxy_set_header Connection 'upgrade';
proxy_pass http://127.0.0.1:8200/$1$is_args$args;
proxy_set_header Host $host;
proxy_set_header X-Forwarded-Host $server_name;
proxy_set_header X-Real-IP $remote_addr;
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
proxy_set_header X-Forwarded-Proto $http_x_forwarded_proto;
proxy_redirect http://127.0.0.1:8200/ /duplicati/;
proxy_cookie_path / /duplicati/;
if ($scheme = https) {
set $xforwardedssl "on";
}
proxy_set_header X-Forwarded-Ssl $xforwardedssl;
Environment
CPU architecture
arm64
Docker creation
Container logs
The text was updated successfully, but these errors were encountered: