System Status - License Server fix
Dieser Commit ist enthalten in:
@@ -74,7 +74,8 @@
|
|||||||
"Bash(true)",
|
"Bash(true)",
|
||||||
"Bash(git checkout:*)",
|
"Bash(git checkout:*)",
|
||||||
"Bash(touch:*)",
|
"Bash(touch:*)",
|
||||||
"Bash(wget:*)"
|
"Bash(wget:*)",
|
||||||
|
"Bash(docker inspect:*)"
|
||||||
],
|
],
|
||||||
"deny": []
|
"deny": []
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -214,8 +214,9 @@ def system_status():
|
|||||||
else:
|
else:
|
||||||
status['status'] = 'unhealthy'
|
status['status'] = 'unhealthy'
|
||||||
status['response_time'] = (datetime.now() - start).total_seconds() * 1000
|
status['response_time'] = (datetime.now() - start).total_seconds() * 1000
|
||||||
except:
|
except Exception as e:
|
||||||
status['status'] = 'down'
|
status['status'] = 'down'
|
||||||
|
logging.error(f"Health check failed for {service['name']}: {str(e)}")
|
||||||
|
|
||||||
services.append(status)
|
services.append(status)
|
||||||
|
|
||||||
|
|||||||
@@ -1,4 +1,3 @@
|
|||||||
SECRET_KEY=your-super-secret-key-change-this-in-production-12345
|
SECRET_KEY=your-super-secret-key-change-this-in-production-12345
|
||||||
DATABASE_URL=postgresql://adminuser:supergeheimespasswort@db:5432/meinedatenbank
|
DATABASE_URL=postgresql://adminuser:supergeheimespasswort@db:5432/meinedatenbank
|
||||||
REDIS_URL=redis://redis:6379
|
|
||||||
DEBUG=False
|
DEBUG=False
|
||||||
@@ -27,5 +27,6 @@ class Settings(BaseSettings):
|
|||||||
class Config:
|
class Config:
|
||||||
env_file = ".env"
|
env_file = ".env"
|
||||||
case_sensitive = True
|
case_sensitive = True
|
||||||
|
extra = "ignore" # Ignore extra environment variables
|
||||||
|
|
||||||
settings = Settings()
|
settings = Settings()
|
||||||
In neuem Issue referenzieren
Einen Benutzer sperren