Add YTDLP_SITE_SECURE variable for use with https
This commit is contained in:
4
main.go
4
main.go
@@ -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
|
||||
|
Reference in New Issue
Block a user