mirror of
https://github.com/nezhahq/nezha.git
synced 2025-01-22 12:48:14 -05:00
Export custom static folder
This commit is contained in:
parent
a823da1f29
commit
ad99a5d032
2
.github/workflows/release.yml
vendored
2
.github/workflows/release.yml
vendored
@ -35,7 +35,7 @@ jobs:
|
|||||||
|
|
||||||
- name: fix dist
|
- name: fix dist
|
||||||
run: |
|
run: |
|
||||||
cp dist/dashboard-linux-arm-7 dist/dashboard-linux-arm
|
mv dist/dashboard-linux-arm-7 dist/dashboard-linux-arm
|
||||||
|
|
||||||
- name: Log in to the GHCR
|
- name: Log in to the GHCR
|
||||||
uses: docker/login-action@master
|
uses: docker/login-action@master
|
||||||
|
2
.gitignore
vendored
2
.gitignore
vendored
@ -19,4 +19,4 @@
|
|||||||
/cmd/dashboard/main
|
/cmd/dashboard/main
|
||||||
/config.yml
|
/config.yml
|
||||||
/resource/template/theme-custom
|
/resource/template/theme-custom
|
||||||
/resource/static/theme-custom
|
/resource/static/custom
|
||||||
|
@ -43,6 +43,7 @@ func ServeWeb(port uint) *http.Server {
|
|||||||
panic(err)
|
panic(err)
|
||||||
}
|
}
|
||||||
r.StaticFS("/static", http.FS(staticFs))
|
r.StaticFS("/static", http.FS(staticFs))
|
||||||
|
r.Static("/static-custom", "resource/static/custom")
|
||||||
routers(r)
|
routers(r)
|
||||||
|
|
||||||
page404 := func(c *gin.Context) {
|
page404 := func(c *gin.Context) {
|
||||||
|
@ -6,10 +6,9 @@ services:
|
|||||||
restart: always
|
restart: always
|
||||||
volumes:
|
volumes:
|
||||||
- ./data:/dashboard/data
|
- ./data:/dashboard/data
|
||||||
|
- ./static-custom/static:/dashboard/resource/static/custom:ro
|
||||||
- ./theme-custom/template:/dashboard/resource/template/theme-custom:ro
|
- ./theme-custom/template:/dashboard/resource/template/theme-custom:ro
|
||||||
- ./theme-custom/static:/dashboard/resource/static/theme-custom:ro
|
|
||||||
- ./dashboard-custom/template:/dashboard/resource/template/dashboard-custom:ro
|
- ./dashboard-custom/template:/dashboard/resource/template/dashboard-custom:ro
|
||||||
- ./dashboard-custom/static:/dashboard/resource/static/dashboard-custom:ro
|
|
||||||
ports:
|
ports:
|
||||||
- nz_site_port:80
|
- nz_site_port:80
|
||||||
- nz_grpc_port:nz_grpc_port
|
- nz_grpc_port:nz_grpc_port
|
||||||
|
Loading…
Reference in New Issue
Block a user