]> source.dussan.org Git - gitea.git/commit
[assets] configurable URL for static resources (#7911)
authorJakob Ackermann <das7pad@outlook.com>
Tue, 22 Oct 2019 12:11:01 +0000 (14:11 +0200)
committerLunny Xiao <xiaolunwen@gmail.com>
Tue, 22 Oct 2019 12:11:01 +0000 (20:11 +0800)
commit00629fea95970e99ba5ef05954bbad0804805df6
tree1590e0f7913c71689727cc17a3bf2786b43028ce
parentd0c7a08d751bd068e557efe56683b999d29eb910
[assets] configurable URL for static resources (#7911)

* static url

* add cors support for static resources

* [assets] work on the migration to configurable url for assets

Signed-off-by: Jakob Ackermann <das7pad@outlook.com>
* [misc] fix whitespace

Signed-off-by: Jakob Ackermann <das7pad@outlook.com>
* [assets] fix the loading of the manifest.json

It is generated dynamically, and as such can not be served by the cdn.

Signed-off-by: Jakob Ackermann <das7pad@outlook.com>
* Revert "add cors support for static resources"

This reverts commit 42f964fd181dbb8b139808b9be623470d4f0e40f

Signed-off-by: Jakob Ackermann <das7pad@outlook.com>
* [docs] add the STATIC_URL_PREFIX option

Signed-off-by: Jakob Ackermann <das7pad@outlook.com>
* [docs] reverse-proxy: nginx: add two setups for STATIC_URL_PREFIX

Signed-off-by: Jakob Ackermann <das7pad@outlook.com>
* [assets] migrate the url of a new asset to the static url prefix

REF: f2a3abc683ad4b2177b7c7c6160a2c0b4316120a
Signed-off-by: Jakob Ackermann <das7pad@outlook.com>
21 files changed:
custom/conf/app.ini.sample
docs/content/doc/advanced/config-cheat-sheet.en-us.md
docs/content/doc/usage/reverse-proxies.en-us.md
modules/setting/setting.go
modules/templates/helper.go
templates/admin/hook_new.tmpl
templates/base/footer.tmpl
templates/base/footer_content.tmpl
templates/base/head.tmpl
templates/base/head_navbar.tmpl
templates/home.tmpl
templates/org/settings/hook_new.tmpl
templates/pwa/manifest_json.tmpl
templates/pwa/serviceworker_js.tmpl
templates/repo/migrating.tmpl
templates/repo/settings/webhook/list.tmpl
templates/repo/settings/webhook/new.tmpl
templates/repo/view_file.tmpl
templates/status/404.tmpl
templates/status/500.tmpl
templates/swagger/ui.tmpl