Commit Graph

20 Commits (main)

Author SHA1 Message Date
j2rong4cn 365fc40dfe
fix: static page to limit request method (#7745 close #7667) 2024-12-30 22:49:18 +08:00
Andy Hsu da5e35578a fix: embed all files of dist 2024-02-03 19:44:50 +08:00
Jing c82866975e
fix: error on repeated reading `static` (#5957)
* Update static.go

* rm initial value of static

---------

Co-authored-by: Andy Hsu <i@nn.ci>
2024-01-30 21:21:53 +08:00
Andy Hsu 6fc6751463 feat: support using external dist files (close #5531) 2023-11-18 19:56:22 +08:00
Andy Hsu cd2f8077fa chore: enable all pprof handle on debug 2023-09-07 14:56:50 +08:00
Andy Hsu 50579fef84 fix: cancel api replace to avoid missing host 2023-02-21 19:45:09 +08:00
Andy Hsu 6c2f3486fc fix!: reverse proxy to sub-directory (#3483)
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;
}
```
2023-02-18 19:03:07 +08:00
BoYanZh e2bcca2fbd
feat: static files for embed viewers (#2739) 2022-12-19 13:34:06 +08:00
BoYanZh 4568af9542
feat: better static file Cache-Control (#2751) 2022-12-19 13:32:00 +08:00
BoYanZh e58ca686e3
feat: cache static files (#2715) 2022-12-15 17:48:29 +08:00
BoYanZh a02d9c8463
fix: check error type on file not found (#2383) 2022-11-18 01:30:37 +08:00
BoYanZh 3e9c38697d
fix: use `utils.Log` during static file router init (#2100)
formerly the log is not in stderr
2022-10-24 23:33:57 +08:00
Noah Hsu b7479651e1 fix: incorrect base_path from site_url (close #1830) 2022-09-27 13:56:32 +08:00
Noah Hsu 7c32af4649 refactor!: move `api_url` and `base_path` to config file 2022-09-25 17:57:54 +08:00
Noah Hsu 0039dc18e1 fix: set cdn to basePath if cdn is empty 2022-09-22 17:11:45 +08:00
Noah Hsu 362d48aa98 chore: replace main color 2022-09-08 22:21:52 +08:00
Noah Hsu 4ea19ae078 chore: replace `$version` of cdn with `webVersion` 2022-09-07 18:39:04 +08:00
Noah Hsu a24dfddc2a feat: add 189cloud driver 2022-09-06 14:39:21 +08:00
Noah Hsu bc155af255 chore: remove slash of cdn 2022-09-02 16:02:06 +08:00
Noah Hsu d267c43556 feat: static file router 2022-08-28 23:13:03 +08:00