new changes
This commit is contained in:
@@ -16,6 +16,14 @@ class Site(Base):
|
||||
project_type: Mapped[str] = mapped_column(String(32), default="PHP")
|
||||
php_version: Mapped[str] = mapped_column(String(16), default="74") # 74, 80, 81, 82
|
||||
force_https: Mapped[int] = mapped_column(Integer, default=0) # 0=off, 1=redirect HTTP to HTTPS
|
||||
# Reverse proxy: when proxy_upstream is non-empty, vhost uses proxy_pass instead of PHP root.
|
||||
proxy_upstream: Mapped[str] = mapped_column(String(512), default="") # e.g. http://127.0.0.1:3000
|
||||
proxy_websocket: Mapped[int] = mapped_column(Integer, default=0) # 1 = Upgrade headers for WS
|
||||
# HTTP basic auth for a path prefix (nginx auth_basic). user_file = htpasswd path on server.
|
||||
dir_auth_path: Mapped[str] = mapped_column(String(256), default="")
|
||||
dir_auth_user_file: Mapped[str] = mapped_column(String(512), default="")
|
||||
# Block execution of PHP under common upload paths (nginx deny).
|
||||
php_deny_execute: Mapped[int] = mapped_column(Integer, default=0)
|
||||
addtime: Mapped[datetime] = mapped_column(DateTime, default=datetime.utcnow)
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user