mirror of
https://github.com/AlistGo/alist.git
synced 2025-04-26 23:34:03 +08:00

from this commit, if you want reverse proxy to sub-directory like `alist` with `nginx`, you need config: ```nginx location /alist/ { proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for; proxy_set_header X-Forwarded-Proto $scheme; proxy_set_header Host $http_host; proxy_set_header X-Real-IP $remote_addr; proxy_set_header Range $http_range; proxy_set_header If-Range $http_if_range; proxy_redirect off; proxy_pass http://127.0.0.1:5244/alist/; # the max size of file to upload client_max_body_size 20000m; } ```
35 lines
483 B
Go
35 lines
483 B
Go
package conf
|
|
|
|
import (
|
|
"net/url"
|
|
"regexp"
|
|
)
|
|
|
|
var (
|
|
BuiltAt string
|
|
GoVersion string
|
|
GitAuthor string
|
|
GitCommit string
|
|
Version string = "dev"
|
|
WebVersion string
|
|
)
|
|
|
|
var (
|
|
Conf *Config
|
|
URL *url.URL
|
|
)
|
|
|
|
var SlicesMap = make(map[string][]string)
|
|
var FilenameCharMap = make(map[string]string)
|
|
var PrivacyReg []*regexp.Regexp
|
|
|
|
var (
|
|
// StoragesLoaded loaded success if empty
|
|
StoragesLoaded = false
|
|
)
|
|
var (
|
|
RawIndexHtml string
|
|
ManageHtml string
|
|
IndexHtml string
|
|
)
|