Add YTDLP_SITE_SECURE variable for use with https

This commit is contained in:
Carl Pearson
2024-09-16 05:18:19 -06:00
parent 7a6004bd32
commit 673c88cff4
2 changed files with 16 additions and 2 deletions

View File

@@ -110,11 +110,13 @@ func main() {
staticGroup.Static("/", getDataDir())
e.GET("/temp/:token", tempHandler)
secure := getSecure()
store.Options = &sessions.Options{
Path: "/",
MaxAge: 30 * 24 * 60 * 60, // seconds
HttpOnly: true,
Secure: false, // needed for session to work over http
Secure: secure,
}
// start the transcode worker