feat: add https
This commit is contained in:
2
api.go
2
api.go
@@ -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"`
|
||||
|
||||
@@ -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__":
|
||||
|
||||
Reference in New Issue
Block a user