traggo / server

self-hosted tag-based time tracking
https://traggo.net
GNU General Public License v3.0
1.21k stars 58 forks source link

Using The App with Nginx Proxy Manager #123

Closed Shahin-rmz closed 2 years ago

Shahin-rmz commented 2 years ago

Have you read the documentation?

You are setting up traggo in

Describe your problem A clear and concise description of what the question is. I can rund and reach traggo locally, but have problem see

Any errors, logs, or other information that might help us identify your problem Don't know exacly to check errors Ex: docker-compose.yml, nginx.conf, browser requests, etc.

Hello, I installed the app, and it works smoothly. The only catch is, I can not connect the app to a subdomain through nginx proxy manager. I have already tried to put this part, on Advanced section of Nginx Proxy manager but it didn't work. image

Any idea what is my problem? I get Error 502. Port is open and config is like other selfhosted services.

Shahin-rmz commented 2 years ago

Hello, any tips is welcome. I'm a bit stock and don't know what is the problem actually.

jmattheis commented 2 years ago

Can you access traggo directly via localhost:3030? Add all configuration related to traggo, docker-compose.yml etc. does traggo output any logs? You can have a look at this with docker logs.

Shahin-rmz commented 2 years ago

yes, it works perfectly localhost. Just when I add the configs from here to my Nginx P. M. with this config image

it doesn't work.

jmattheis commented 2 years ago

If traggo is working, then there is something wrong with your reverse proxy setup. Traggo isn't the cause for this. Your proxy manager most likely cannot access traggo via localhost:3030, because it runs in a different container.

Shahin-rmz commented 2 years ago

yes, there is no problem with traggo itself. and yes it is different container. What is the solution? I'm clueless a bit, and don't know even what to search.

jmattheis commented 2 years ago

Do you have other services that use the nginx proxy manager? Integrating traggo should be similar to this. The traggo container and the proxy manager have to be on the same docker network, then you can use the name of the docker container instead of localhost.

Shahin-rmz commented 2 years ago

Do you have other services that use the nginx proxy manager?

yes

then you can use the name of the docker container instead of localhost.

I think now I get what is problem. I had problems to connect networks to my Nginx Proxy Manager. lack of Devops knowledge. I will try to connect them via network, and write the name (or ip) of traggo inside the configs. Thanks.

khraibani-h commented 2 years ago

it should be as following: scheme: http forward hostname: /IP forward port: 3030