77 Commits

Author SHA1 Message Date
Sameer Naik
01cc2e1cae init: command cleanup 2014-06-17 21:15:39 +05:30
Sameer Naik
9f1b92b076 added GITLAB_RESTRICTED_VISIBILITY configuration option, closes #78 2014-06-17 21:13:19 +05:30
Sameer Naik
d433698b67 fix backup restore operation, closes #81 2014-06-14 21:09:53 +05:30
Sameer Naik
0743c4f53f init: set the DB_TYPE variable only if it has not already been set 2014-06-10 23:50:20 +05:30
Sameer Naik
63f0ef4c0a remove stale unicorn and sidekiq pid's 2014-06-09 09:40:44 +05:30
Sameer Naik
8f7ee0c908 init: moved startup of nginx to appStart function 2014-06-08 22:05:22 +05:30
Sameer Naik
64c7a892b7 rake: fix repositories and satellites directory permissions before executing gitlab:import:repos rake task. 2014-06-08 22:02:22 +05:30
Sameer Naik
d168cc5125 init: do not recursively update repositories and satellites derectories
permissions at startup.

The app:sanitize command can be used instead.
2014-06-08 21:51:15 +05:30
Sameer Naik
5bf8a7e380 init: added app:sanitize command to fix repository and satellites directories permissions 2014-06-08 21:33:51 +05:30
kitsunai
5a0752781f typo 2014-06-06 17:06:22 +09:00
kitsunai
862f5ece36 link to upload size of nginx and gitlabhq 2014-06-06 16:12:34 +09:00
Sameer Naik
9d8c3849d9 automatically migrate database when gitlab version is updated 2014-06-03 23:46:33 +05:30
Sameer Naik
485ef8a3b0 update ca-certificates only if additional certificates exist 2014-05-23 22:38:53 +05:30
Sameer Naik
a23217f163 enable https support even if the ssl keys and certificates are not found
When the ssl keys and certificates are not found, we assume that the
application is running behind a load balancer with SSL support enabled.
2014-05-23 22:38:53 +05:30
Sameer Naik
7e90b62754 init: fix typo in sed execution 2014-05-23 22:38:53 +05:30
Sameer Naik
98f1632416 run sed command as git user whenever possible 2014-05-23 22:38:53 +05:30
Sameer Naik
95d12ca3df pretty startup messages 2014-05-23 22:38:44 +05:30
Shu Sugimoto
8eda25cdf9 add GITLAB_RELATIVE_URL_ROOT configuration option 2014-05-22 10:53:42 +09:00
Sameer Naik
2dd26817a0 added NGINX_MAX_UPLOAD_SIZE configuration option 2014-05-13 14:49:30 +05:30
Sameer Naik
871a6837c5 renamed configuration option GITLAB_SHELL_SSH_PORT to GITLAB_SSH_PORT 2014-05-12 13:38:12 +05:30
Sameer Naik
dc032909c1 compiling assets could take a long time. 2014-05-11 22:12:31 +05:30
Sameer Naik
562fe8500e added GITLAB_PROJECTS_VISIBILITY configuration option 2014-05-11 15:03:14 +05:30
Sameer Naik
0649c69302 generate and store ssh host keys at the data store, fixes #62 2014-05-10 16:38:41 +05:30
Sameer Naik
0a21530bc4 set GITLAB_PROJECTS_LIMIT to 100 by default 2014-05-09 12:46:24 +05:30
Sameer Naik
0d589f2787 the SMTP_AUTHENTICATION method should now be specified without the leading ':' 2014-05-09 11:03:06 +05:30
Sameer Naik
b8266c0bf4 set the default value of SMTP_AUTHENTICATION to ':login' if SMTP_USER is set 2014-05-06 11:10:34 +05:30
Sameer Naik
c0e9a9f802 fix SMTP_USER and SMTP_PASS configuration in commit 1da001567b1d1764d0764c5f9eb32d60b292ccad 2014-05-06 11:04:43 +05:30
unknown
8455e5c9f3 If SMTP_AUTHENTICATION is an empty string then remove the smtp_authentication line in smtp config 2014-05-05 15:07:23 -04:00
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