mirror of
https://github.com/HChaZZY/alist.git
synced 2025-12-16 07:06:25 +08:00
chore: add base path setting
This commit is contained in:
@@ -9,7 +9,7 @@ import (
|
||||
)
|
||||
|
||||
func GetBaseUrl(r *http.Request) string {
|
||||
baseUrl := setting.GetByKey(conf.BaseUrl)
|
||||
baseUrl := setting.GetByKey(conf.ApiUrl)
|
||||
protocol := "http"
|
||||
if r.TLS != nil {
|
||||
protocol = "https"
|
||||
|
||||
Reference in New Issue
Block a user