BigW Consortium Gitlab
Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
G
gitlab-ce
Project
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
Registry
Registry
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Commits
Issue Boards
Open sidebar
Forest Godfrey
gitlab-ce
Commits
c66b1580
Commit
c66b1580
authored
Dec 18, 2015
by
Kamil Trzcinski
Committed by
James Edwards-Jones
Jan 31, 2017
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix confusing implementation detail in nginx config about how gitlab-pages work [ci skip]
parent
9c78a206
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
4 additions
and
6 deletions
+4
-6
gitlab-pages
lib/support/nginx/gitlab-pages
+2
-2
gitlab-pages-ssl
lib/support/nginx/gitlab-pages-ssl
+2
-4
No files found.
lib/support/nginx/gitlab-pages
View file @
c66b1580
...
...
@@ -14,8 +14,8 @@ server {
access_log /var/log/nginx/gitlab_pages_access.log;
error_log /var/log/nginx/gitlab_pages_error.log;
# 1. Try to get /p
roject/ to => shared/pages/${group}/public/ or index.html
# 2. Try to get /
to => shared/pages/${group}/${host}/public/ or index.html
# 1. Try to get /p
ath/ from shared/pages/${group}/${path}/public/
# 2. Try to get /
from shared/pages/${group}/${host}/public/
location ~ ^/([^/]*)(/.*)?$ {
try_files "/$1/public$2"
"/$1/public$2/index.html"
...
...
lib/support/nginx/gitlab-pages-ssl
View file @
c66b1580
...
...
@@ -53,8 +53,6 @@ server {
# ssl_stapling on;
# ssl_stapling_verify on;
# ssl_trusted_certificate /etc/nginx/ssl/stapling.trusted.crt;
# resolver 208.67.222.222 208.67.222.220 valid=300s; # Can change to your DNS resolver if desired
# resolver_timeout 5s;
## [Optional] Generate a stronger DHE parameter:
## sudo openssl dhparam -out /etc/ssl/certs/dhparam.pem 4096
...
...
@@ -65,8 +63,8 @@ server {
access_log /var/log/nginx/gitlab_pages_access.log;
error_log /var/log/nginx/gitlab_pages_error.log;
# 1. Try to get /p
roject/ to => shared/pages/${group}/public/ or index.html
# 2. Try to get /
to => shared/pages/${group}/${host}/public/ or index.html
# 1. Try to get /p
ath/ from shared/pages/${group}/${path}/public/
# 2. Try to get /
from shared/pages/${group}/${host}/public/
location ~ ^/([^/]*)(/.*)?$ {
try_files "/$1/public$2"
"/$1/public$2/index.html"
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment