Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
S
slapos
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Kirill Smelkov
slapos
Commits
b3af7f4e
Commit
b3af7f4e
authored
Oct 23, 2015
by
Kirill Smelkov
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
X Took decision to glue everything together via unix sockets in 1 partition
parent
e2f21084
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
35 additions
and
4 deletions
+35
-4
software/gitlab/instance-gitlab.cfg.in
software/gitlab/instance-gitlab.cfg.in
+27
-1
software/gitlab/instance.cfg.in
software/gitlab/instance.cfg.in
+5
-0
software/gitlab/template/nginx.conf.in
software/gitlab/template/nginx.conf.in
+3
-3
No files found.
software/gitlab/instance-gitlab.cfg.in
View file @
b3af7f4e
...
...
@@ -17,6 +17,9 @@ parts =
gitlab-root-shadow
service-nginx-frontend
# std stuff for slapos instance
eggs-directory = {{ eggs_directory }}
develop-eggs-directory = {{ develop_eggs_directory }}
...
...
@@ -177,6 +180,21 @@ template = {{ rack_attack_rb_in }}
context =
section instance_parameter instance-parameter
# XXX move to own directory?
[nginx.conf]
<= gitlab-etc-template
template= {{ nginx_conf_in }}
context =
section instance_parameter instance-parameter
section gitlab_backend gitlab-backend
raw mime_types {{ mime_types }}
# raw nginx_gitlab_http_conf ${nginx-gitlab-http.conf:rendered}
[nginx-gitlab-http.conf]
<= gitlab-etc-template
template= {{ nginx_gitlab_http_conf_in }}
context = ...
# TODO log: logrotate
...
...
@@ -292,7 +310,15 @@ command =
# nginx: etc/ log/ ...
[nginx]
[
x
nginx]
recipe = slapos.cookbook:mkdirectory
log = ${directory:log}/nginx
# TODO more?
# nginx frontend
[service-nginx-frontend]
recipe = slapos.cookbook:wrapper
wrapper-path = ${directory:service}/nginx-frontend
command-line = {{ nginx }} -p ... -c ${nginx.conf:rendered}
software/gitlab/instance.cfg.in
View file @
b3af7f4e
...
...
@@ -31,6 +31,8 @@ context =
raw gitlab_repository_location ${gitlab-repository:location}
raw bundler_4gitlab ${bundler-4gitlab:bundle}
raw git ${git:location}/bin/git
raw nginx ${nginx-output:nginx}
raw mime_types ${nginx-output:mime}
raw gitlab_parameters_cfg ${gitlab-parameters.cfg:target}
raw database_yml_in ${database.yml.in:target}
...
...
@@ -39,5 +41,8 @@ context =
raw smtp_settings_rb_in ${smtp_settings.rb.in:target}
raw rack_attack_rb_in ${rack_attack.rb.in:target}
raw nginx_conf_in ${nginx.conf.in:target}
raw nginx_gitlab_http_conf_in ${nginx-gitlab-http.conf.in:target}
# XXX hack - better use ${gitlab-shell-repository:location} directly
raw gitlab_shell ${gitlab-shell-repository:location}
software/gitlab/template/nginx.conf.in
View file @
b3af7f4e
...
...
@@ -32,14 +32,14 @@ http {
keepalive_timeout {{ cfg('nginx_keepalive_timeout') }};
gzip {{ cfg('nginx_gzip') }};
gzip_http_version {{ cfg('nginx_http_version') }};
gzip_http_version {{ cfg('nginx_
gzip_
http_version') }};
gzip_comp_level {{ cfg('nginx_gzip_comp_level') }};
gzip_proxied {{ cfg('nginx_gzip_proxied') }};
gzip_types {{ cfg('nginx_gzip_types') }};
include {{
nginx_output.mime
}}
include {{
mime_types
}}
include <gitlab_http_config>
{# include {{ nginx_gitlab_http_conf }} #}
# we don't need: ci, mattermost
# include <%= @gitlab_ci_http_config %>
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment