location ^~ /transmission {
# enable the next two lines for http auth
#auth_basic "Restricted";
#auth_basic_user_file /config/nginx/.htpasswd;
# enable the next two lines for ldap auth, also customize and enable ldap.conf in the default conf
#auth_request /auth;
#error_page 401 =200 /login;
include /config/nginx/proxy.conf;
resolver 127.0.0.11 valid=30s;
set $upstream_transmission transmission;
proxy_pass_header X-Transmission-Session-Id;
proxy_pass http://$upstream_transmission:9091;
}
location ^~ /transmission/rpc {
include /config/nginx/proxy.conf;
resolver 127.0.0.11 valid=30s;
set $upstream_transmission transmission;
proxy_pass http://$upstream_transmission:9091;
}
This nginx configuration does not rewrite url, so transmission is running on the url it thinks it's running. In traefik configuraration you are trying to change that.
This is not a valid traefik 2 label. The middleware is not referenced in the router. Check the doco for the replacepathregex. Use the playground to make sure that the expression after replacement correspond to an actual path portainer application understands. Or use stripprefix similar to the OP (make sure you do not make the same mistake(s)).
# 409: Conflict
Your request had an invalid session-id header.
To fix this, follow these steps:
1. When reading a response, get its X-Transmission-Session-Id header and remember it
2. Add the updated header to your outgoing requests
3. When you get this 409 error message, resend your request with the updated header
This requirement has been added to help prevent [CSRF](https://en.wikipedia.org/wiki/Cross-site_request_forgery) attacks.
`X-Transmission-Session-Id: bysih4xeXU2Ak3RTJQCWy0ZnyIh4ObnUSFZHfe4AKxhfOE0W`
What else do I need to configure to setup traefik behind https using traefik ?
Edit
I finally managed to access the webui by adding a / after /transmission/web, but the /transmission/rpc is still returning 404 (adding a ending slash to it does not help).
The transmission udp/tcp port is not visible publicly, is that an issue for the web client? How do I export UDP/TCP
I'm stuck on that aswell... I get to the webui by adding a / after /transmission/web and the web ui loads but i get "could not connect to the server"...