Setting up a custom wallabag server does not work.
no
Originally the wallabag server did not have ssl configured. I edited the domain name in parameters.yml to include https as a scheme. The certificate is self-signed, the self-signed CA is installed on the phone and visiting the web page in chrome works fine without any certificate issues.
no connection is established
no connection is established
I'm experiencing the same behaviour
@sztanpet FYI
https://github.com/wallabag/wallabag/issues/2273#issuecomment-456159516
indeed, thank you
@diegombeltran that isn't a very good solution. I can't write a docker compose file that does this fix. why is the wallabag server downgrading to http when redirecting from / to /login? Android 9 does not like that, apparently
@sztanpet @diegombeltran FYI the fix referenced in https://github.com/wallabag/wallabag/issues/2273#issuecomment-456159516 is deprecated by https://github.com/wallabag/wallabag/commit/80336f77fd6ef72dafe20b35b74d74d06592c06f
I wouldn't say that this is issue is solved - I also have xiaomi a2 and dockerized wallabag 2.3.5 behind traefik, and I have same issues as OP. In my case api calls works good from browser(f.e. /api/version.xt works) and certificates/redirect/rewrites aren't bad(full HTTPS, FF doesn't comply because of mixed content). Webapp also works well. What might be wrong?
There is an open PR in #762 which addresses the issue. Maybe that also fixes your issue? Can you test that?
@jpalczewski I managed to work around it in traefik. Try the following rules on your wallabag frontend:
as Docker Container labels
- "traefik.frontend.redirect.regex=^http://wallabag.yourdomain.com/(.*)"
- "traefik.frontend.redirect.replacement=https://wallabag.yourdomain.com/$$1"
- traefik.frontend.whiteList.useXForwardedFor=true
- traefik.frontend.headers.SSLProxyHeaders=X-Forwarded-Proto:https
- traefik.frontend.redirect.permanent="true" #edited to fix accidental ommision
as toml rules:
[frontends]
[frontends.wallabag]
entryPoints = ["http", "https"]
backend = "wallabag-backend"
[frontends.wallabag.routes.application]
rule = "Host:wallabag.yourdomain.com"
[frontends.wallabag.redirect]
regex="^http://wallabag.yourdomain.com/(.*)"
replacement="https://wallabag.yourdomain.com/$1"
permanent=true #edited to fix accidental ommision
[frontends.wallabag.whiteList]
useXForwardedFor=true
[frontends.wallabag.SSLProxyHeaders]
X-Forwarded-Proto = "https"
This worked for me without having to change anything about Wallabag or the app at all.
edit: fixed mistake in replacement regex in the toml version
@norweeg thanks for your idea(sorry for so long time - I have no idea why I missed your post) - I tested it on my environment, however it doesn't work - still having cleartext issue while using production version. I got a full redirect to https somewhere deep in traefik, so it isn't that thing.
@jpalczewski I just compared my config to what I previously posted and realized I forgot something critical. The redirect has to be permanent. See my edits above and try that
@jpalczewski cuz I keep getting my threads mixed up, here's another place I'm discussing this issue where I posted my wallabag service's section in my docker-compose file: https://github.com/wallabag/docker/issues/77#issuecomment-467981907
Thank you for linking the issue!
Most helpful comment
@jpalczewski I managed to work around it in traefik. Try the following rules on your wallabag frontend:
as Docker Container labels
as toml rules:
This worked for me without having to change anything about Wallabag or the app at all.
edit: fixed mistake in replacement regex in the toml version