Skip to content

Commit cdc18e3

Browse files
committed
rename port variable in env
1 parent 4d5c365 commit cdc18e3

2 files changed

Lines changed: 2 additions & 2 deletions

File tree

‎env-example‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,4 +14,4 @@ WRITE_PLAYBOOK_LOGS_TO_DISK="False"
1414
# Directory for log output
1515
LOG_DIR="/path/to/logs"
1616

17-
ATTACKMATE_API_SERVER_PORT=8445
17+
PORT=8445

‎src/attackmate_api_server/config.py‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ class Settings(BaseSettings):
1515
ssl_cert_file: str = "cert.pem" # fallback relative filename
1616
write_playbook_logs_to_disk: bool = False # Set WRITE_PLAYBOOK_LOGS_TO_DISK in .env
1717
log_dir: str = "attackmate_server_logs"
18-
attackmate_api_server_port: int = 8445
18+
attackmate_api_server_port: int = Field(default=8445, alias="PORT")
1919

2020
# User Hashes: Key is username (lowercase), Value is argon2 hash
2121
# Environment Var: users='{"user1": "hash1"}'

0 commit comments

Comments
 (0)