49 Commits

Author SHA1 Message Date
Sameer Naik
81ef8a135d fix supervisord warning message 2014-05-05 23:13:06 +05:30
LordFPL
924ee1975d Deleting SMTP_USER/PASS when empty
Without this, a plain auth will fail.
2014-05-05 21:30:56 +05:30
Marius Bergmann
df8b20c5c5 Set executable flag on /home/git/data explicitely 2014-05-05 14:39:08 +02:00
Sameer Naik
cbe5c60c56 config: update redis url for all execution environments 2014-05-04 09:19:11 +05:30
Sameer Naik
c713a0cce6 ssl: trust our own server certificate 2014-04-30 21:57:09 +05:30
Sameer Naik
9fd8e4e357 added CA_CERTIFICATES_PATH configuration option to specify trusted root certificates. 2014-04-30 21:56:57 +05:30
Sameer Naik
b8e8f2f6ef removed the kickstart wget request
the application should already be kickstarted when gitlab:check rake
task is executed.
2014-04-29 00:53:06 +05:30
Sameer Naik
f5f7e7786a ssl: check if required files exist before enabling https support 2014-04-29 00:49:31 +05:30
Sameer Naik
c1f501c0de added SSL_DHPARAM_PATH configuration option to specify path of dhparam.pem file. 2014-04-28 23:41:05 +05:30
Sameer Naik
dfb5dd1d20 added SSL_CERTIFICATE_PATH configuration option to specify path of ssl certificate 2014-04-28 20:55:29 +05:30
Sameer Naik
e989294db8 renamed config option GITLAB_SSL_SELF_SIGNED to SSL_SELF_SIGNED 2014-04-28 20:55:29 +05:30
Sameer Naik
552d4ade03 gitlab-shell: use default gitlab_url talk to gitlab-ce api when signed ssl certificates are used 2014-04-28 20:55:29 +05:30
Sameer Naik
4b1769a162 gitlab-shell: use http over localhost to talk to gitlab-ce api whenever possible 2014-04-28 20:55:29 +05:30
Sameer Naik
11729891b9 added GITLAB_HTTPS_ONLY configuration option 2014-04-28 20:55:29 +05:30
Sameer Naik
63135215fc added gitlab.https.permissive nginx template that will be used when you want to allow both http and https access 2014-04-28 20:55:29 +05:30
Sameer Naik
6b3623fb5d renamed gitlab.https to gitlab.https.strict 2014-04-28 20:55:29 +05:30
Sameer Naik
bfd9929109 redirect to the correct port during a http to https redirection
Fixes http to https redirection when the default https port is not used
got the GITLAB_PORT

For example running the container like so:
```bash
docker run -i -t --rm \
-p 4443:443 -p 8080:80 -e "GITLAB_HTTPS=true" -e "GITLAB_PORT=4443" \
sameersbn/gitlab:latest
```

Will make sure you are redirected to https://localhost:4443 when you
access the application at http://localhost:8080
2014-04-28 20:55:29 +05:30
Sameer Naik
ca08c72e19 perform http to https redirection with same hostname as the request 2014-04-28 20:55:29 +05:30
Sameer Naik
c0f3f298c3 nginx: use the gitlab.https config if https is enabled 2014-04-28 20:55:29 +05:30
Sameer Naik
5443eb4583 added GITLAB_SSL_SELF_SIGNED configuration option 2014-04-28 20:55:29 +05:30
Sameer Naik
c8a62b1c94 fix git over ssh when the default http/https ports are not used.
Internally the SSH and the http/https servers always bind to ports 22 and
80/443 respectively. If the GITLAB_PORT variable is set to any other
port, then cloning over SSH would not work.

This is because internally gitlab-shell tries to communicate with the
gitlab server over http interface. In gitlab-shell configured with
the GITLAB_PORT value the conmmunication will effective fail and thereby
the cloning operation would return an error.

To fix this, we make gitlab-shell communicate with the http server
directly with the default http/https ports since this is all internal.

Prior to this update, cloning repositories over ssh protocol would not
work when the container is started in the following way:

```bash
docker run -i -t --rm \
  -p 8888:80 -p 2222:22 \
  -e "GITLAB_PORT=8888" -e "GITLAB_SHELL_SSH_PORT=2222" \
  sameersbn/gitlab
```
2014-04-26 17:37:13 +05:30
Sameer Naik
96d975d9f4 use https protocol in the wget request if https is enabled 2014-04-26 17:36:37 +05:30
Sameer Naik
296a6ad027 construct the gitlab_url based on whether https is enabled and whether the default ports are changed 2014-04-26 17:36:32 +05:30
Sameer Naik
cd87085d5b set the default GITLAB_PORT to 443 if https is enabled, else set it to 80 2014-04-26 17:36:28 +05:30
Sameer Naik
cef12f872a cat does not seem to keep the ownership of git user, touch it first 2014-04-24 21:04:20 +05:30
Sameer Naik
dddde324d0 use cat instead of echo in the last commit 2014-04-24 20:57:29 +05:30
Sameer Naik
b2d261b116 compile the assets only if it does not exist or if the gitlab version has changed. 2014-04-24 20:55:22 +05:30
Sameer Naik
b4196eca4f cache public/assets in local cache at /home/git/data/tmp/ 2014-04-24 10:54:42 +05:30
Sameer Naik
8296235575 moved tmp/cache storage to /home/git/data/tmp/ 2014-04-24 10:53:59 +05:30
Sameer Naik
1ea9df0311 silence assets compilation output 2014-04-23 21:47:57 +05:30
Sameer Naik
6cf203eb06 do not clear redis cache at startup 2014-04-23 21:46:35 +05:30
Sameer Naik
f0c0d48fc5 cache compiled assets to boost application startup 2014-04-23 21:45:51 +05:30
Sameer Naik
5ee46a8338 fix permissions on repositories directory 2014-04-23 15:55:54 +05:30
Sameer Naik
70a85b99a7 fix permissions on gitlab-satellites directory 2014-04-23 15:15:24 +05:30
Sameer Naik
b91c930e65 fix permissions on gitlab-satellites directory 2014-04-22 22:32:12 +05:30
Sameer Naik
669e843eba added GITLAB_SIGNIN setting to enable or disable standard login form 2014-04-22 22:32:12 +05:30
Sameer Naik
9381aaf462 added support for linking to a redis container 2014-04-21 21:56:52 +05:30
li-chao
dcb373b3da fixed git push fail when GITLAB_PORT is not 80 2014-04-21 19:05:11 +08:00
Sameer Naik
d723a97acd use sameersbn/ubuntu:12.04.20140418 as the base image 2014-04-19 22:08:05 +05:30
Sameer Naik
78449343ca copy default configuration templates at start up. 2014-04-13 13:39:08 +05:30
Sameer Naik
d9ce1cdc9e added feature to link to mysql and postresql containers 2014-04-12 13:40:12 +05:30
Sameer Naik
61cc9a35c8 added GITLAB_PROJECTS_LIMIT configuration option, closes #42 2014-04-11 22:15:54 +05:30
Sameer Naik
abc79ed8f6 fix sed substitution so that spaces in configuration variables are handled correctly 2014-04-11 22:15:29 +05:30
Sameer Naik
694019da33 added SMTP_AUTHENTICATION config option, defaults to :login 2014-04-11 22:15:29 +05:30
Sameer Naik
2201355f39 init: apply SMTP configuration as git user 2014-04-11 22:15:28 +05:30
Sameer Naik
374ec39a4a Added LDAP configuration options, close #36 2014-04-11 22:15:28 +05:30
Sameer Naik
ef398dfd6f config: configure gitlab_url on shell config to GITLAB_HOST, closes #26 2014-04-11 22:15:28 +05:30
Sameer Naik
171ae25a33 init: use camelCase for function names 2014-04-11 22:04:02 +05:30
Sameer Naik
d239948b30 renamed gitlab script to init 2014-04-11 22:01:23 +05:30