Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
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
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Vincent Bechu
slapos
Commits
9e49e48c
Commit
9e49e48c
authored
Dec 08, 2014
by
Alain Takoudjou
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Log apache zope services in custom files with remote_user info
parent
46d466fe
Changes
3
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
11 additions
and
7 deletions
+11
-7
software/slapos-master/apache.conf.in
software/slapos-master/apache.conf.in
+5
-2
software/slapos-master/instance-balancer.cfg.in
software/slapos-master/instance-balancer.cfg.in
+2
-1
software/slapos-master/software.cfg
software/slapos-master/software.cfg
+4
-4
No files found.
software/slapos-master/apache.conf.in
View file @
9e49e48c
...
@@ -47,7 +47,7 @@ RequestHeader unset REMOTE_USER
...
@@ -47,7 +47,7 @@ RequestHeader unset REMOTE_USER
ErrorLog "{{ parameter_dict['error-log'] }}"
ErrorLog "{{ parameter_dict['error-log'] }}"
# Default apache log format with request time in microsecond at the end
# Default apache log format with request time in microsecond at the end
LogFormat "%h %l %
u
%t \"%r\" %>s %b \"%{Referer}i\" \"%{User-Agent}i\" %D" combined
LogFormat "%h %l %
{REMOTE_USER}i
%t \"%r\" %>s %b \"%{Referer}i\" \"%{User-Agent}i\" %D" combined
CustomLog "{{ parameter_dict['access-log'] }}" combined
CustomLog "{{ parameter_dict['access-log'] }}" combined
<Directory />
<Directory />
...
@@ -57,7 +57,7 @@ CustomLog "{{ parameter_dict['access-log'] }}" combined
...
@@ -57,7 +57,7 @@ CustomLog "{{ parameter_dict['access-log'] }}" combined
</Directory>
</Directory>
RewriteEngine On
RewriteEngine On
{% for
port, _, backend, authentication in parameter_dict['backend-list']
-%}
{% for
family_name, (port, _, backend, authentication) in parameter_dict['backend-list'].items()
-%}
{% for ip in parameter_dict['ip-list'] -%}
{% for ip in parameter_dict['ip-list'] -%}
Listen {{ ip }}:{{ port }}
Listen {{ ip }}:{{ port }}
{% endfor -%}
{% endfor -%}
...
@@ -67,6 +67,9 @@ Listen {{ ip }}:{{ port }}
...
@@ -67,6 +67,9 @@ Listen {{ ip }}:{{ port }}
RequestHeader set REMOTE_USER %{SSL_CLIENT_S_DN_CN}s
RequestHeader set REMOTE_USER %{SSL_CLIENT_S_DN_CN}s
SSLCACertificateFile {{ parameter_dict['ca-cert'] }}
SSLCACertificateFile {{ parameter_dict['ca-cert'] }}
SSLCARevocationPath {{ parameter_dict['crl'] }}
SSLCARevocationPath {{ parameter_dict['crl'] }}
ErrorLog "{{ parameter_dict['log-dir'] }}/apache-{{ family_name }}-error.log"
CustomLog "{{ parameter_dict['log-dir'] }}/apache-{{ family_name }}-access.log" combined
{% endif -%}
{% endif -%}
SSLEngine on
SSLEngine on
RewriteRule ^/(.*) {{ backend }}/$1 [L,P]
RewriteRule ^/(.*) {{ backend }}/$1 [L,P]
...
...
software/slapos-master/instance-balancer.cfg.in
View file @
9e49e48c
...
@@ -103,11 +103,12 @@ ca-cert = ${directory:apache-conf}/ca.crt
...
@@ -103,11 +103,12 @@ ca-cert = ${directory:apache-conf}/ca.crt
crl = ${directory:apache-conf}/crl.pem
crl = ${directory:apache-conf}/crl.pem
[apache-conf-parameter-dict]
[apache-conf-parameter-dict]
backend-list = {{ dumps(apache_dict
.values()
) }}
backend-list = {{ dumps(apache_dict) }}
ip-list = {{ dumps(apache_ip_list) }}
ip-list = {{ dumps(apache_ip_list) }}
pid-file = ${directory:run}/apache.pid
pid-file = ${directory:run}/apache.pid
error-log = ${directory:log}/apache-error.log
error-log = ${directory:log}/apache-error.log
access-log = ${directory:log}/apache-access.log
access-log = ${directory:log}/apache-access.log
log-dir = ${directory:log}
# Apache 2.4's default value (60 seconds) can be a bit too short
# Apache 2.4's default value (60 seconds) can be a bit too short
timeout = 300
timeout = 300
# Basic SSL server configuration
# Basic SSL server configuration
...
...
software/slapos-master/software.cfg
View file @
9e49e48c
...
@@ -25,7 +25,7 @@ repository_id_list = erp5 vifib/master
...
@@ -25,7 +25,7 @@ repository_id_list = erp5 vifib/master
[erp5]
[erp5]
recipe = slapos.recipe.build:gitclone
recipe = slapos.recipe.build:gitclone
repository = http://git.erp5.org/repos/erp5.git
repository = http://git.erp5.org/repos/erp5.git
branch = erp5-
slapos-upgrade
branch = erp5-
vifib
git-executable = ${git:location}/bin/git
git-executable = ${git:location}/bin/git
[vifib]
[vifib]
...
@@ -35,7 +35,7 @@ branch = master
...
@@ -35,7 +35,7 @@ branch = master
git-executable = ${git:location}/bin/git
git-executable = ${git:location}/bin/git
[slapos.cookbook-repository]
[slapos.cookbook-repository]
branch =
erp5
-cluster
branch =
slapos-master
-cluster
[vifib-fix-products-paths]
[vifib-fix-products-paths]
recipe = plone.recipe.command
recipe = plone.recipe.command
...
@@ -73,7 +73,7 @@ md5sum = e75f791c031f042629858e7442d06964
...
@@ -73,7 +73,7 @@ md5sum = e75f791c031f042629858e7442d06964
[template-balancer]
[template-balancer]
< = download-base-part
< = download-base-part
filename = instance-balancer.cfg.in
filename = instance-balancer.cfg.in
md5sum =
3f23b1a69304cbf142e61bbdb561686a
md5sum =
894e93c41952f7abc6ecba1088e9e4af
[template-zope]
[template-zope]
< = download-base-part
< = download-base-part
...
@@ -83,7 +83,7 @@ md5sum = 65bfa6ceaa4edcf90297e2ee0bf42032
...
@@ -83,7 +83,7 @@ md5sum = 65bfa6ceaa4edcf90297e2ee0bf42032
[template-apache-conf]
[template-apache-conf]
< = download-base-part
< = download-base-part
filename = apache.conf.in
filename = apache.conf.in
md5sum =
bb329fc28bef095a01efc901d2f84149
md5sum =
234f9f5559b456d7928d64415a3203be
[template-create-erp5-site-real]
[template-create-erp5-site-real]
< = download-base-part
< = download-base-part
...
...
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