Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

added setting stat ip in env and fixed changin stat port #69

Open
wants to merge 3 commits into
base: master
Choose a base branch
from

Conversation

smaznet
Copy link

@smaznet smaznet commented Jul 18, 2021

No description provided.

smaznet added 2 commits July 19, 2021 02:26
it would be better to set host because of docker networking its hard to request to localhost
@cavallium cavallium requested a review from giuseppeM99 July 19, 2021 11:27
@@ -17,8 +17,13 @@ DEFAULT_ARGS="--http-port 8081 --dir=${TELEGRAM_WORK_DIR} --temp-dir=${TELEGRAM_
CUSTOM_ARGS=""

if [ -n "$TELEGRAM_STAT" ]; then
CUSTOM_ARGS="${CUSTOM_ARGS} --http-stat-port=8082"
CUSTOM_ARGS="${CUSTOM_ARGS} --http-stat-port=$TELEGRAM_STAT"
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Avoid changing the port inside the container, with docker you can change the exposed port, the internal port shall always be 8082 for the http-stat-port (eg docker run -p 8082:8888 will bind the stat port to 8888 from the external environment)

Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

But most people probably wanna use a reverse proxy to add auth anyway, so it wouldn't matter as long as they use the same at both places.

I'd say

TELEGRAM_STAT=${TELEGRAM_STAT:-8082}

at the beginning of the script would solve that, setting a sane default but still allowing to change it.

@giuseppeM99 Why would you need it to be never changed by anyone in their own deployment?

Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Is not that i need it to never be changed
I just don't want it changed inside the docker container, instead i want docker to manage the port forwarding

@cavallium
Copy link
Member

Please can you fix @giuseppeM99 comment? We aren't merging because we are waiting that fix

Copy link
Member

@andrew-ld andrew-ld left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I do not like it at all

@cavallium
Copy link
Member

I do not like it at all

Why?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants