Skip to content
Snippets Groups Projects
Commit 205b7da9 authored by Achilleas Pipinellis's avatar Achilleas Pipinellis
Browse files

Merge branch 'master' of github.com:gitlabhq/gitlab-recipes

parents b9afcfd8 2ac2513c
No related branches found
No related tags found
No related merge requests found
[PUIAS_6_computational]
name=PUIAS computational Base $releasever - $basearch
mirrorlist=http://puias.math.ias.edu/data/puias/computational/$releasever/$basearch/mirrorlist
#baseurl=http://puias.math.ias.edu/data/puias/computational/$releasever/$basearch
enabled=1
gpgcheck=1
gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-puias
This diff is collapsed.
Loading
Loading
@@ -87,11 +87,14 @@ Check this with `service postgresql status`.
Set up the database:
 
```
# Log in to Postgres user account
su - pgsql
# Initialize First start of PG DB
service postgresql initdb
 
# Initialise Postgres db
initdb /usr/local/pgsql/data
service postgresql start
# Log in to Postgres user account
su - pgsql
 
# Connect to Postgres database
psql -d template1
Loading
Loading
https://gitlab.example.com {
log git.access.log {
rotate
}
errors {
log git.errors.log
404 /opt/gitlab/embedded/service/gitlab-rails/public/404.html
422 /opt/gitlab/embedded/service/gitlab-rails/public/422.html
500 /opt/gitlab/embedded/service/gitlab-rails/public/500.html
502 /opt/gitlab/embedded/service/gitlab-rails/public/502.html
}
proxy / http://127.0.0.1:8181 {
fail_timeout 300s
proxy_header Host {host}
proxy_header X-Real-IP {remote}
proxy_header X-Forwarded-Proto {scheme}
proxy_header X-Forwarded-Ssl on
}
}
# Caddy
This is an example configuration of how to use GitLab with [caddy](https://caddyserver.com/).
### Updating GitLab Configuration
Open `/etc/gitlab/gitlab.rb` using your favourite text editor and update the following values.
* Change `external_url` to the https protocol
* Change `gitlab_workhorse['listen_network']` from `"unix"` to `"tcp"`
* Change `gitlab_workhorse['listen_addr']` from `"000"` to `"127.0.0.1:8181"`
* Add whatever user caddy runs under to `web_server['external_users']` unless root
* Change `nginx['enable'] = "true"` to `nginx['enable'] = "false"`
* Save and exit the configuration file and run `gitlab-ctl reconfigure` to update gitlabs configuration
### Updating the Caddyfile
Simply change gitlab.example.com to point to your FQDN.
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment