Skip to content

Commit

Permalink
Fix default ports
Browse files Browse the repository at this point in the history
  • Loading branch information
deajan committed Nov 8, 2024
1 parent 1b22ed5 commit 34f828c
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions altaro_exporter.py
Original file line number Diff line number Diff line change
Expand Up @@ -94,7 +94,7 @@ def main():
"log_level": "debug",
"reload": False, # Makes class session_id volatile when reload=True
"host": listen if listen else "0.0.0.0",
"port": port if port else 9119,
"port": port if port else 9769,
}
else:
import gunicorn.app.base
Expand Down Expand Up @@ -123,7 +123,7 @@ def load(self):

server_args = {
"workers": 4, # Don't run multiple workers since we don't have shared variables yet (multiprocessing.cpu_count() * 2) + 1,
"bind": f"{listen}:{port}" if listen else "0.0.0.0:8080",
"bind": f"{listen}:{port}" if listen else "0.0.0.0:9769",
"worker_class": "uvicorn.workers.UvicornWorker",
}

Expand Down

0 comments on commit 34f828c

Please sign in to comment.