meta data for this page
Differences
This shows you the differences between two versions of the page.
Next revision | Previous revision | ||
git:gitlab:pages [2019/04/23 11:08] – created niziak | git:gitlab:pages [2020/06/03 11:17] (current) – niziak | ||
---|---|---|---|
Line 1: | Line 1: | ||
+ | ====== Pages ====== | ||
+ | |||
Support for domains and certificates is disabled. Ask your system' | Support for domains and certificates is disabled. Ask your system' | ||
+ | |||
+ | ====== Enable gitlab pages ====== | ||
+ | |||
+ | Register wildcard domain or mock it on your main DNS server to resolve to your Gitlab server IP: | ||
+ | < | ||
+ | *.doc.gitlab.org | ||
+ | </ | ||
+ | |||
+ | <file ruby | / | ||
+ | gitlab_pages[' | ||
+ | gitlab_pages[' | ||
+ | pages_external_url " | ||
+ | </ | ||
+ | |||
+ | Apply changes: | ||
+ | <code bash> | ||
+ | gitlab-ctl reconfigure | ||
+ | gitlab-ctl restart | ||
+ | # or after minitor changes: | ||
+ | gitlab-ctl restart gitlab-pages | ||
+ | </ | ||
+ | |||
+ | Log tails: | ||
+ | <code bash> | ||
+ | |||
+ | |||
+ | ====== Enable artifact preview ====== | ||
+ | |||
+ | By default artifact created from build are downloadable (PDFs are shown im embedded browser!). | ||
+ | There is a notice below each artifact: | ||
+ | < | ||
+ | |||
+ | There is possibility to enable Gitlab pages feature to render view of artifact. Feature is implemented in weird way: | ||
+ | * when enabled, there is possibility to preview artifact by redirecting it special link on Gitlab pages server | ||
+ | * on request Gitlab pages server downloads it from Gitlab server and renders it | ||
+ | |||
+ | |||
+ | ===== Issues ===== | ||
+ | |||
+ | When '' | ||
+ | More about side effect of using '' | ||
+ | |||
+ | ===== No DNS resolution ===== | ||
+ | |||
+ | Provide '' | ||
+ | <code bash> | ||
+ | mkdir -p / | ||
+ | cp / | ||
+ | </ | ||
+ | NOTE: read side effects of this solution: [[https:// | ||
+ | |||
+ | Another solution is to force requests to IP address - check solution below [[git: | ||
+ | |||
+ | ===== SSL cert is not trusted ===== | ||
+ | |||
+ | Gitlab pages try to download artifact from main Gitlab server using main URL with https. | ||
+ | When main gitlab instance is servered with not trusted certificate, | ||
+ | Solution is to provide '' | ||
+ | <code bash> | ||
+ | mkdir -p / | ||
+ | cp / | ||
+ | cat / | ||
+ | </ | ||
+ | |||
+ | Another solution is to force requests to IP address - check solution below [[git: | ||
+ | |||
+ | ===== Provide URL to gitlab artifact server ===== | ||
+ | IT can only work if there is no redirect from '' | ||
+ | <file ruby | / | ||
+ | gitlab_pages[' | ||
+ | gitlab_pages[' | ||
+ | </ | ||
+ | |||
+ | |||
+ | |||
+ | |||
+ | ====== gitlabpages: | ||
+ | By default gitlab-pages shows only some files inside browser. Most of files (like .log) are server as '' | ||
+ | Accoring to Gitlab MR [[https:// | ||
+ | gitlab-pages daemon is now using embedded, compiled-in mime databse [[https:// | ||
+ | |||
+ | Digging inside gitlab-pages binary ''/ | ||
+ | * ''/ | ||
+ | * ''/ | ||
+ | * ''/ | ||
+ | |||
+ | |||
+ | |||
+ | |||
+ | |||