73 Commits

Author SHA1 Message Date
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
52f748d64f config: use double quotes around all string and path parameters, fixes #57 2014-05-04 09:20:37 +05:30
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
aa709bb49d configure ssl session cache 2014-04-28 20:55:29 +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
d389bf1ef3 added gitlab.https nginx template for ssl support 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
05019fd2e0 upgrade gitlab-shell to version 1.9.4 2014-04-24 15:47:27 +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
Girish Ramakrishnan
e34c9649d9 Remove default nginx configuration
The 'default' nginx config (part of ubuntu) causes ssh pushes to fail.
This is because gitlab-shell makes http://localhost/api/v3/interal/* calls
and they get routed to 'default' nginx configuration instead of the @gitlab
named location.
2014-04-23 22:16:54 +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
1be9fe79b3 install: make sure /home/git/.ssh does not exist before creating the symlink to /home/git/data/.ssh directory 2014-04-23 21:24:40 +05:30
Sameer Naik
efd0695d3f install: make sure tmp/backups does not exist before creating the symlink to /home/git/data/backups directory 2014-04-23 21:24:23 +05:30
Sameer Naik
4493a1a0b4 fix symlink to /home/git/data/uploads directory 2014-04-23 21:24:02 +05:30
Sameer Naik
267fff47e4 upgrade to gitlab-ce version 6.8.1 2014-04-23 19:00:04 +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
e11ef261fe upgrade to gitlab-shell 1.9.3 2014-04-22 22:32:12 +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
0c20a30560 upgraded to gitlab-ce version 6.8.0 2014-04-22 22:32:06 +05:30
Sameer Naik
ad57dce015 removed packaged config.tar.bz2 2014-04-22 22:30:26 +05:30
Sameer Naik
5c0ba7d666 moved config directory back inside assets directory 2014-04-22 16:42:26 +05:30
Sameer Naik
dbe5c399cb move the config templates outside the assets directory, closes #44 2014-04-22 11:53:44 +05:30
Sameer Naik
9381aaf462 added support for linking to a redis container 2014-04-21 21:56:52 +05:30