meta data for this page
Differences
This shows you the differences between two versions of the page.
| Both sides previous revisionPrevious revisionNext revision | Previous revision | ||
| git:gitlab:pages [2020/04/09 13:43] – 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' | ||
| Line 11: | Line 13: | ||
| gitlab_pages[' | gitlab_pages[' | ||
| 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 ====== | ====== Enable artifact preview ====== | ||
| Line 24: | Line 39: | ||
| - | ===== Headline | + | ===== 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 ===== | ===== SSL cert is not trusted ===== | ||
| - | Put your own CA cert to ''/ | + | 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 /var/opt/gitlab/gitlab-rails/ | ||
| + | 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 ''/ | ||
| + | * ''/ | ||
| + | * ''/ | ||
| + | * ''/ | ||