Spaces:
Sleeping
Sleeping
apple muncy
commited on
Commit
·
5ede2ef
1
Parent(s):
eecad06
443 to 8443
Browse filesSigned-off-by: apple muncy <[email protected]>
- Dockerfile +0 -1
- auth_server.py +4 -4
Dockerfile
CHANGED
@@ -12,6 +12,5 @@ RUN pip install --no-cache-dir --upgrade -r requirements.txt
|
|
12 |
|
13 |
COPY --chown=user . /home/user/app
|
14 |
|
15 |
-
EXPOSE 443
|
16 |
|
17 |
ENTRYPOINT ["python", "auth_server.py"]
|
|
|
12 |
|
13 |
COPY --chown=user . /home/user/app
|
14 |
|
|
|
15 |
|
16 |
ENTRYPOINT ["python", "auth_server.py"]
|
auth_server.py
CHANGED
@@ -35,9 +35,9 @@ class AuthServerSettings(BaseModel):
|
|
35 |
|
36 |
# Server settings
|
37 |
host: str = "applemuncy-as.hf.space"
|
38 |
-
port: int =
|
39 |
-
server_url: AnyHttpUrl = AnyHttpUrl("https://applemuncy-as.hf.space
|
40 |
-
auth_callback_path: str = "https://applemuncy-as.hf.space:
|
41 |
|
42 |
|
43 |
class SimpleAuthProvider(SimpleOAuthProvider):
|
@@ -158,7 +158,7 @@ async def run_server(server_settings: AuthServerSettings, auth_settings: SimpleA
|
|
158 |
|
159 |
|
160 |
@click.command()
|
161 |
-
@click.option("--port", default=
|
162 |
def main(port: int) -> int:
|
163 |
"""
|
164 |
Run the MCP Authorization Server.
|
|
|
35 |
|
36 |
# Server settings
|
37 |
host: str = "applemuncy-as.hf.space"
|
38 |
+
port: int = 8443
|
39 |
+
server_url: AnyHttpUrl = AnyHttpUrl("https://applemuncy-as.hf.space")
|
40 |
+
auth_callback_path: str = "https://applemuncy-as.hf.space:8443/login/callback"
|
41 |
|
42 |
|
43 |
class SimpleAuthProvider(SimpleOAuthProvider):
|
|
|
158 |
|
159 |
|
160 |
@click.command()
|
161 |
+
@click.option("--port", default=8443, help="Port to listen on")
|
162 |
def main(port: int) -> int:
|
163 |
"""
|
164 |
Run the MCP Authorization Server.
|