File tree Expand file tree Collapse file tree 1 file changed +18
-3
lines changed Expand file tree Collapse file tree 1 file changed +18
-3
lines changed Original file line number Diff line number Diff line change 1+
2+ # Gitbucket-Pages-Plugin
3+
14This plugin provides * Project Pages* for
25[ GitBucket] ( https://github.com/gitbucket/gitbucket ) .
36
4- Notes:
7+ ## Notes
58
69- view static web page in ` gh-pages ` branch at
710 ` <gitbucket base url>/<user>/<project>/pages/ `
@@ -14,13 +17,25 @@ Notes:
1417- might be incompatible with absolute urls (eg: you use github project
1518 pages and assume your pages will aways live under ` /<project/ ` )
1619
17- Installation:
20+ ## Installation
1821
1922- download from [ releases] ( https://github.com/yaroot/gitbucket-pages-plugin/releases )
2023- move the jar file to ` <gitbucket_home>/plugins/ ` (` gitbucket_home ` defaults to ` ~/.gitbucket ` )
2124- restart gitbucket and enjoy
2225
23- Version compatibility:
26+ ## Version compatibility
2427
2528- 0.1: tested with gitbucket 3.9
2629
30+ ## Security
31+
32+ The simplistic design of this plugin suffers from XSS vulnerability,
33+ you ** have to** trust your users.
34+ Or if you're really panic, nginx could be used (or any other front proxy).
35+ Suppose you use ` gitbucket.local ` for hosting gitbucket and
36+ ` pages.local ` for hosting pages:
37+
38+ - redirect ` /[^/]+/[^/]+/pages.* ` under ` gitbucket.local ` ot use
39+ ` pages.local `
40+ - restrict ` pages.local ` to only have access to pages url above
41+
You can’t perform that action at this time.
0 commit comments