question-mark

Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Issue Description

I manage to load the containers but can’t connect to the web-UI. In my case i already have Traefik in my environment as a reverse proxy. I would like to have a docker-compose file without Traefik installing as a container, cause i already have Traefik running as i said. If someone could show me which lines i have to delete or add for the containers to work and be accessible through a WEB UI it would be nice.

This is how i do it with Portainer and it works. Portainer and Traefik are on the same Docker machine.

labels: - “traefik.enable=true” - “traefik.http.routers.portainer.entrypoints=http” - “traefik.http.routers.portainer.rule=Host(portainer.local.example.com)” - “traefik.http.middlewares.portainer-https-redirect.redirectscheme.scheme=https” - “traefik.http.routers.portainer.middlewares=portainer-https-redirect” - “traefik.http.routers.portainer-secure.entrypoints=https” - “traefik.http.routers.portainer-secure.rule=Host(portainer.local.example.com)” - “traefik.http.routers.portainer-secure.tls=true” - “traefik.http.routers.portainer-secure.service=portainer” - “traefik.http.services.portainer.loadbalancer.server.port=9000” - “traefik.docker.network=proxy”

Issue Analytics

  • State:open
  • Created 10 months ago
  • Comments:17 (8 by maintainers)

github_iconTop GitHub Comments

2reactions
wiebereucommented, Oct 14, 2022

AmruthPillai

Hi AmruthPillai,

I think we don’t understand each other here. Everything is working fine if, i use localhost and port number for both server and client. No problems were mentioned in the logs. The only problem is that i can’t log in or register if i use localhost. Someone mentioned that problem already so i think that you must have been aware of it. If i change localhost into the IP address of the server in my case it is a NAS cause i am using Docker on my NAS, then i can log in or register. The problem that occurs is that i cannot use a secure URL (my reverse proxy pointing to that IP address and port number) because if i do that i will get a secure connection, but then i can’t log in or register. I see the register window and fill in all the required information but nothing happened. So the bottom line is:

  • Using localhost — you can’t log in or register
  • Using IP address of the NAS with port number ----- you can log in and you can register
  • Using IP address of the NAS with port number ----- you can log in but if you convert it to a secured page you will not be able to log in or register. Only if you stay with the page based on the local IP address and unsecured (HTTP) it works

I hope you understand the problem now. There is something in the setting that prevents it from using a secured connection (HTTPS) And i’m not the only one having this problem cause i saw others mention this before.

1reaction
modem7commented, Mar 29, 2022

Did you add the stripprefix middleware?

This is my current setup specifically lines 32-40

Read more comments on GitHub >

github_iconTop Results From Across the Web

What is a 502 Bad Gateway Error (And How Can I Fix It)?
A 502 Bad Gateway Error means the website you're connected to tried to relay information from another server and encountered an error.
Read more >
502 Bad Gateway Error: What It Is and How to Fix It - Lifewire
The 502 Bad Gateway error is an HTTP status code that means that one server on the internet received an invalid response from...
Read more >
How to Fix 502 Bad Gateway Error - Hostinger
The 502 Bad Gateway error indicates that the server which you're connecting to received an invalid response. When accessing a URL, your browser ......
Read more >
How To Fix a 502 Bad Gateway Error - Kinsta
The 502 (Bad Gateway) status code indicates that the server, while acting as a gateway or proxy, received an invalid response from an...
Read more >
502 Bad Gateway - HTTP - MDN Web Docs
The HyperText Transfer Protocol (HTTP) 502 Bad Gateway server error response code indicates that the server, while acting as a gateway or ...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found