Commit Graph

228 Commits

Author SHA1 Message Date
GitLab fdcc5ddec1 Ensure sidekiq is displayed by setting X-Frame-Options. 2014-06-03 17:06:27 +02:00
Dmitriy Zaporozhets 7a75b3f300 Merge pull request #6986 from agjmills/master
added SYSV chkconfig property so gitlab starts after MySQLd / nginx
2014-05-30 16:58:37 +03:00
Marin Jankovski 2341cefd6f Move from script to bin directory. 2014-05-27 17:14:41 +02:00
Alexander Mills 821ab16846 added SYSV chkconfig property so gitlab starts after MySQLd / nginx 2014-05-16 10:29:12 +01:00
Marin Jankovski 636ec6d3a0 Update warnings about relative url support. 2014-05-13 17:59:08 +02:00
Dmitriy Zaporozhets 5307dd5f74 Comment gzip: off be default 2014-04-07 15:47:20 +00:00
Dmitriy Zaporozhets 563fec7349
Disable compression to prevent BREACH attack
Signed-off-by: Dmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com>
2014-04-03 13:03:16 +03:00
Dmitriy Zaporozhets cf7aab9b44 Merge branch 'master' of gitlab.com:gitlab-org/gitlab-ce 2014-03-27 08:56:13 +02:00
Jacob Vosmaer ad7cd8fb35 Merge pull request #6222 from nickryand/background_init
Removed the backgrounding of the unicorn_rails startup scripts
2014-03-26 12:25:40 +01:00
Jacob Vosmaer 24e9c5e83e Merge branch 'bugfix/fix_unicorn-sidekiq_confusion_in_gitlab_init_script' into 'master'
Fix Unicorn-Sidekiq Confusion In GitLab Init Script

This merge request fixes issue #126 by updating a few sections of the included GitLab init file where Unicorn was referred to as Sidekiq and vice-versa.
2014-03-26 11:19:26 +00:00
Pawel Krzaczkowski 9422b451eb Init script - change start() stop() restart() reload() to xxxx_gitlab() 2014-03-26 10:50:42 +01:00
Nick Downs 73a987ea6b Removed the backgrounding of the unicorn_rails webapp start call. 2014-03-25 10:40:44 -07:00
Jacob Vosmaer 306d4ee728 Merge pull request #5935 from nmoura/patch-1
Changed sudo by su -c in init script
2014-03-25 15:06:54 +01:00
Marin Jankovski 8af94ed755 Add gzip compression for assets to nginx example. 2014-03-24 14:59:09 +01:00
Jacob Vosmaer c22646d2a4 Logrotate daily, keeping 90 days of old logs
Also remove the 'delaycompress' option which is not needed because we
use 'copytruncate'.
2014-03-12 15:26:39 +01:00
dosire 6bf5215b23 Some people are getting the error 'The remote end hung up unexpectedly' due to large chuncks. 2014-03-10 09:11:19 +01:00
Kyle Fazzari 058aae5940 Fixed Unicorn-Sidekiq confusion in GitLab init script.
There were a few places in the included init script where
Unicorn was referred to as Sidekiq and vice-versa.

This fixes #126.
2014-03-08 09:07:59 -05:00
Arif Ali affc37ad02 change deploy.sh without mysql, now that we are moving to postgres 2014-03-04 00:10:49 +00:00
Jacob Vosmaer 5de16dee76 Add a custom 502 page 2014-01-28 10:19:22 +01:00
Dmitriy Zaporozhets c3ae30b60e Merge branch 'upload-limits' into 'master'
Upload Limits

Better documentation for the upload limit. Please have a hard time when they need to change the upload limits, see https://gitlab.com/gitlab-org/gitlab-ce/issues/5
2014-01-27 12:44:14 +00:00
Jacob Vosmaer abae128915 Use either/or to present options 2014-01-27 11:59:15 +01:00
Jacob Vosmaer 7b32be6eb1 Explain what we know about Nginx chunked requests 2014-01-27 11:19:45 +01:00
dosire 42220f2a18 Remove version since we don't keep it up to date. 2014-01-23 15:14:07 +01:00
dosire 7ad70a56d3 Git over ssh and http are different things. 2014-01-22 17:51:00 +01:00
dosire 119c782e0b More explanation for upload limits. 2014-01-22 17:01:47 +01:00
Arif Ali 4650855685 Update the init.d file to the correct locationof the example defaults file
Update the example defaults, include the rest of he variables
2014-01-08 22:54:03 +00:00
dosire 60e451fde4 Change canonical urls to GitLab Cloud. 2013-12-30 14:27:18 +01:00
Nilton Moura 6daa97f472 Changed sudo by su -c
The sudo command needs a tty to run. If you put this file on a CentOS 6, for example, it will not run in the host startup process. Instead, the 'su -c' runs the command apart if it has or not a tty.

I tested this change in a fresh install of gitlab on a CentOS 6.5 with successful.
2013-12-26 17:13:25 -02:00
Dmitriy Zaporozhets f24e151414 Merge pull request #5617 from zeeZ/nginx-proxy
Add X-Forwarded-For to nginx config
2013-12-16 03:54:04 -08:00
Dmitriy Zaporozhets 2934e7a962 Update deploy.sh script with assets commands 2013-12-11 14:34:10 +00:00
Rovanion Luckey 29cb573b6c Added example defaults file and appropriate documentation. 2013-12-09 14:05:50 +01:00
Jacob Vosmaer 31cdb7a405 Merge pull request #5471 from dex4er/feature_etc_default_gitlab
Read configuration variable file (/etc/default/gitlab) if it is present
2013-12-09 00:29:18 -08:00
zeeZ 59b6337de0 Add X-Forwarded-For to nginx config 2013-11-18 10:54:20 +01:00
Joachim Brandon LeBlanc c09aed8b07 Add client_max_body_size to nginx site
Added the client_max_body_size declaration to the nginx server block to prevent 413 errors when http post body is larger than the default (1m).
2013-11-15 11:49:31 -06:00
Piotr Roszatycki 5c98cae9fe Read configuration variable file if it is present 2013-10-29 17:21:54 +01:00
Jacob Vosmaer 4727fa3fcc Report application status through init exit code 2013-10-25 11:26:22 +02:00
Rovanion Luckey 67a80d07ab Updated the init script, now waits for pids 2013-10-24 14:56:17 +02:00
Dmitriy Zaporozhets 615d859f94 Merge branch 'logrotate' of /home/git/repositories/gitlab/gitlabhq 2013-10-16 10:08:53 +00:00
Jacob Vosmaer d378332ff9 Add logrotate setup to the installation guide 2013-10-16 10:38:13 +02:00
Jacob Vosmaer 6a7d63aa47 Move unicorn and sidekiq commands into bash script 2013-10-15 22:48:57 +02:00
Jacob Vosmaer 8512307614 Use sidekiq restart rake task in init script 2013-10-09 16:49:01 +02:00
Jacob Vosmaer 78b3fb769c Run stopping commands in the foreground 2013-10-07 14:40:56 +02:00
Zane Shannon 13d0088407 Fixed grammatical mistake in init.d status output.
"its" not "it's".
2013-09-26 13:01:22 -05:00
Jeff '2 bits' Bachtel ca1d63c2f6 -i flag allows sudo to work for git users using rvm that is not being used by
root user (su might be better)
2013-09-06 18:53:10 -04:00
Rovanion fe8fa9a581 Made script path flexible 2013-09-03 14:27:51 +02:00
Rovanion 98ea81e659 Restart works again, grammar mistakes corrected. 2013-08-29 23:29:38 +02:00
Rovanion cda4d6881a Fixed failure to stop and added handling of failure to remove stale pid 2013-08-28 13:22:01 +02:00
Rovanion f57944cc61 Corrections suggested by jacobvosmaer 2013-08-28 13:11:57 +02:00
Rovanion 7c38f4e237 Changes recommended by @axilleas 2013-08-27 15:05:53 +02:00
Rovanion df9e1db904 Rewrote init script. 2013-08-27 13:43:01 +02:00
Jacob Vosmaer 2b9d48ccd0 Fix the `service gitlab restart` command
This commit addresses two related issues:
- Sidekiq should shut down completely before we restart it;
- If we restart unicorn with USR2 we need to kill the old master and
  worker processes.
2013-08-23 10:31:32 +02:00
Sytse Sijbrandij 7c55c73d63 Fix confusing situation where install guide told you to install init.d script for puma. 2013-08-19 21:54:12 +02:00
Dmitriy Zaporozhets 92ef845fa5 Merge branch 'master' into 6-0-dev
Conflicts:
	VERSION
2013-07-12 16:16:20 +03:00
Axilleas Pipinellis ec38d6290c Removal of gitlab.socket should be in stop function too. Fix #4313 2013-07-12 11:48:57 +03:00
Dmitriy Zaporozhets 967d42e0c8 Fix unicorn init and config 2013-07-08 19:28:59 +03:00
Dmitriy Zaporozhets 87f4e1f153 init.d script for unicorn 2013-07-08 18:28:40 +03:00
Sytse Sijbrandij f01d482427 Make the installation guide easier to follow for non-unix people. 2013-06-12 21:30:36 +02:00
Sytse Sijbrandij 70e80d95a7 When stopped correctly there should be no warning about a missing socket file. 2013-06-12 21:30:13 +02:00
Sytse Sijbrandij 89d6ee1632 This commit got lost 76ba45246e 2013-06-05 20:08:42 +02:00
Dmitriy Zaporozhets df67b25bc2 init.d: Ensure socket is removed before starting service 2013-05-28 17:09:01 +03:00
Ben Bodenmiller de29a424e6 changed Gitlab to GitLab 2013-05-19 02:13:39 -07:00
Dmitriy Zaporozhets 36b2f2e3c2 add deploy recipe extracted from staging server 2013-05-16 12:45:30 +03:00
Dmitriy Zaporozhets 81e6029406 Merge pull request #3897 from LyleE/puma-config-environment-fix
Fixed puma.rb environment setting
2013-05-13 09:10:22 -07:00
Frank Lanitz aba29ab94c Adding a short hint to *:80 for default listen address on nginx example config
Based on posting https://github.com/gitlabhq/gitlabhq/issues/3384#issuecomment-15457287 I was able to solved an issue here. Pointing out *:80 might could prevent others for struggeling here
2013-05-10 17:45:02 +02:00
Lyle Entwistle 85e784cc1d Fixed puma.rb environment setting, no need to specify 'production' in daemon options now 2013-05-09 17:41:00 +01:00
rezigned 76d958ebe7 Update init.d script
The original init.d script uses a fixed username (e.g. git). Which is not flexible
when we using other user. So, I've updated it to use $APP_USER variable
instead and wrap it in a function to reduce repetitive codes.
2013-05-09 12:37:56 +07:00
majjacz 93dccb7298 Changed forgotten unicorn to puma in the init script 2013-05-04 21:39:53 +02:00
Dmitriy Zaporozhets 5ac5f586f8 Move init.d and nginx default recipes in core library to save efforts trying keep sync between gitlab-recipes and gitlabhq 2013-04-22 12:44:09 +02:00
Dmitriy Zaporozhets 18fc090052 remove hooks and support scripts from main repo. Moved to gitlab-shell 2013-02-05 15:59:40 +02:00
Dmitriy Zaporozhets 30d6370719 Add subdir support for rewrite-hooks script 2012-12-31 17:46:40 +02:00
Dmitriy Zaporozhets 4cbb29cfad Fix not_in_project scope. Added counters in admin -> users. Improved seeds 2012-12-27 06:14:05 +03:00
Dmitriy Zaporozhets 65327cfc08 Rewrite hooks shell script 2012-11-22 12:24:46 +02:00
randx d59d2a197e cleanup gitlab from setup scripts 2012-09-04 20:29:20 +03:00
randx 874a86f820 update install to use recipes 2012-09-04 19:44:17 +03:00
Tse-Ching Ho 457b0f604f use APP_ROOT in init-gitlab to specify root of project 2012-09-04 16:39:10 +08:00
Sytse Sijbrandij cc137bba79 Update the references to the script and refer to it from the installation manual.
Update the references to the script and refer to it from the installation manual.

Indent the code block.
2012-09-02 22:44:11 +02:00
Sytse Sijbrandij b80dd3d242 Non-interactive AWS install by running a single script.
Merge branch 'master' into non-interactive-aws-install

Conflicts:
	doc/installation.md

Fix merge mess in installation.md
2012-09-02 18:39:50 +02:00
Sytse Sijbrandij eae41ad1df Non-interactive AWS install by running a single script.
Non-interactive AWS install by running a single script.

Complete non-interactive AWS install with one line.

Squash of 28 commits:

Initial commit of complete install script.

Must be sudo.

Non interactive prostgres.

Install mysql with unique password.

Service file.

Add init file.

Nginx config.

Script contains aws specific settings.

Update references after rename.

Prevent localhost ssh prompt.

Postfix with policyd.

Typo in localhost. Postfix package has other name. sudo -l session needs oneliners.

More sudo commands to prevent permission problems.

Change in existing file.

Change in existing file must be referenced.

Switch order.

Postfix comment.

Old way to generate password, less sudo.

todo login

Must use private ip and login instructions.

Starting up.

Fixed and checked various todos.

Use service. Set host name. Go to default dir.

Only works on next login.

Only replace first host.

Cleaned up the comments.

Link to nginx config.

Move to aws dir.

Update links to aws for interactive install.

Existing script stays at the same location.

Change directory. Use the new init scripts for gitlab service and nginx. Use the branch for file downloads. Update with newest changes to installation.md.

Correct reference.

Use master branch since we need the nginx condfig and use absolute paths.

Need to copy with sudo.
2012-09-02 18:29:46 +02:00