20 lines
449 B
Python
20 lines
449 B
Python
#!/usr/bin/env python3
|
|
"""Point d'entree de Centreon Forge.
|
|
|
|
python3 run.py # http://127.0.0.1:8080
|
|
ENCLUME_PORT=9000 python3 run.py
|
|
"""
|
|
|
|
import os
|
|
|
|
from enclume.webapp import create_app
|
|
|
|
app = create_app()
|
|
|
|
if __name__ == "__main__":
|
|
app.run(
|
|
host=os.environ.get("ENCLUME_HOST", "127.0.0.1"),
|
|
port=int(os.environ.get("ENCLUME_PORT", "8080")),
|
|
debug=os.environ.get("ENCLUME_DEBUG") == "1",
|
|
)
|