feat: add https

This commit is contained in:
2026-05-28 23:36:21 +08:00
parent b5ab610893
commit d0103519d4
2 changed files with 8 additions and 2 deletions

2
api.go
View File

@@ -9,7 +9,7 @@ import (
tea "github.com/charmbracelet/bubbletea"
)
const backendURL = "http://localhost:3131"
const backendURL = "https://nas.arinera.fun:3001"
type StepResponse struct {
Actions []Action `json:"actions"`

View File

@@ -49,7 +49,13 @@ async def get_tools(
def main():
uvicorn.run("main:app", reload=True, port=3131)
uvicorn.run(
"main:app",
reload=True,
port=3131,
ssl_keyfile="certs/cert.key",
ssl_certfile="certs/fullchain.pem",
)
if __name__ == "__main__":