Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
G
gitlab-ce
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Léo-Paul Géneau
gitlab-ce
Commits
1ed83184
Commit
1ed83184
authored
Mar 31, 2012
by
Dmitriy Zaporozhets
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'master' of github.com:gitlabhq/gitlabhq
parents
25924a90
9ed5a1af
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
30 additions
and
2 deletions
+30
-2
app/views/keys/new.html.haml
app/views/keys/new.html.haml
+11
-0
doc/installation.md
doc/installation.md
+19
-2
No files found.
app/views/keys/new.html.haml
View file @
1ed83184
%h3
New key
%hr
=
render
'form'
:javascript
$
(
'
#key_key
'
).
on
(
'
keyup
'
,
function
(){
var
title
=
$
(
'
#key_title
'
),
val
=
$
(
'
#key_key
'
).
val
(),
key_mail
=
val
.
match
(
/
([
a-zA-Z0-9._-
]
+@
[
a-zA-Z0-9._-
]
+|
\.[
a-zA-Z0-9._-
]
+
)
/gi
);
if
(
key_mail
&&
key_mail
.
length
>
0
&&
title
.
val
()
==
''
){
$
(
'
#key_title
'
).
val
(
key_mail
);
}
});
\ No newline at end of file
doc/installation.md
View file @
1ed83184
...
...
@@ -223,12 +223,29 @@ Edit /etc/nginx/nginx.conf. Add next code to **http** section:
}
server {
listen 80;
server_name
mygitlab
.com;
listen
YOUR_SERVER_IP:
80;
server_name
gitlab.YOUR_SUBDOMAIN
.com;
root /home/gitlab/gitlab/public;
# individual nginx logs for this gitlab vhost
access_log /var/log/nginx/gitlab_access.log;
error_log /var/log/nginx/gitlab_error.log;
location / {
# serve static files from defined root folder;.
# @gitlab is a named location for the upstream fallback, see below
try_files $uri $uri/index.html $uri.html @gitlab;
}
# if a file, which is not found in the root folder is requested,
# then the proxy pass the request to the upsteam (gitlab unicorn)
location @gitlab {
proxy_redirect off;
# you need to change this to "https", if you set "ssl" directive to "on"
proxy_set_header X-FORWARDED_PROTO http;
proxy_set_header Host gitlab.YOUR_SUBDOMAIN.com:80;
proxy_set_header X-Real-IP $remote_addr;
proxy_pass http://gitlab;
}
...
...
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