You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I am running SSL Reverse Proxy (Traefik) in from of Nextcloud, but static content on context /core/ is loaded over http (mixed-content errors), other content is loaded OK.
Here is half a fix for you :
If you enable HSTS in your SSL proxy engine, clients will take note of it and will never call back your server over HTTP again. Even should they receive a link that says HTTP, they will rewrite it themselves to HTTPS and so will call you back on HTTPS.
It is only half a fix because the server keeps sending the HTTP links and a browser that would not obey HSTS would still go after HTTP. There is also a risk should your certificate turns to not trusted for any reason or you re-install the server and need to access it clear text first time to configure it. Your own browser will refuse to connect to it because of the HSTS violation.
Here, my complete solution is to have my config in a separate volume. Whenever I need to update, I just remount the volumes and the options survive the update. I do not use environment variables like you do. I have volumes for the configs, the website's root directory, the Apps and the themes. Of course, the data are also from an external path.
Activity
Heracles31 commentedon Jul 1, 2019
Hey Luka,
Here is half a fix for you :
If you enable HSTS in your SSL proxy engine, clients will take note of it and will never call back your server over HTTP again. Even should they receive a link that says HTTP, they will rewrite it themselves to HTTPS and so will call you back on HTTPS.
It is only half a fix because the server keeps sending the HTTP links and a browser that would not obey HSTS would still go after HTTP. There is also a risk should your certificate turns to not trusted for any reason or you re-install the server and need to access it clear text first time to configure it. Your own browser will refuse to connect to it because of the HSTS violation.
Here, my complete solution is to have my config in a separate volume. Whenever I need to update, I just remount the volumes and the options survive the update. I do not use environment variables like you do. I have volumes for the configs, the website's root directory, the Apps and the themes. Of course, the data are also from an external path.
Hope this help you fix your problem,
lukasmrtvy commentedon Jul 1, 2019
Hello,
Thanks for info.
Btw, HSTS is easy to enable in Traefik with:
pnbecker commentedon Oct 14, 2019
HSTS seems to be ignored by the iOS and macOS app. I needed to set overweriteprotocol manually. I think #668 would be a good solution.