remove self-referential package from requirements

This commit is contained in:
2026-04-26 01:01:37 +02:00
parent 87577542e6
commit a1ddcec81f
2 changed files with 10 additions and 9 deletions
+10 -8
View File
@@ -16,12 +16,6 @@ class Settings(BaseSettings):
settings = Settings()
if settings.production:
app.add_middleware(ProxyHeadersMiddleware, trusted_hosts="127.0.0.1")
app.add_middleware(
TrustedHostMiddleware,
allowed_hosts=["arithmedic.eu", "www.arithmedic.eu"],
)
app = FastAPI(
title="ArithMedic",
@@ -29,10 +23,18 @@ app = FastAPI(
version="0.1.0",
)
if settings.production:
app.add_middleware(ProxyHeadersMiddleware, trusted_hosts="127.0.0.1")
app.add_middleware(
TrustedHostMiddleware,
allowed_hosts=["arithmedic.eu", "www.arithmedic.eu", "arithmedic.org", "www.arithmedic.org", "arithmedic.net", "www.arithmedic.net", "arithmedic.nu", "www.arithmedic.nu", "arithmedic.se", "www.arithmedic.se", "127.0.0.1", "localhost"],
)
app.add_middleware(
CORSMiddleware,
allow_origins=["https://arithmedic.eu"],
allow_methods=["POST"],
allow_origins=["*"],
allow_methods=["GET", "POST", "OPTIONS"],
allow_headers=["Content-Type"],
)
-1
View File
@@ -1,7 +1,6 @@
annotated-doc==0.0.4
annotated-types==0.7.0
anyio==4.13.0
-e git+ssh://git@github.com/loysharosen/arithmedic.git@8b570025493bc59886a237dacc69cca05eeed595#egg=arithmedic
certifi==2026.2.25
click==8.3.2
dnspython==2.8.0