Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
Sympa
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package registry
Container registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
NoCloud
docker
Sympa
Commits
89feea62
Verified
Commit
89feea62
authored
3 years ago
by
David Beniamine
Browse files
Options
Downloads
Patches
Plain Diff
Restore wwsympa after upgrade
parent
8c0b40ab
Branches
Branches containing commit
No related tags found
No related merge requests found
Changes
3
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
docker/sympa/Dockerfile
+2
-4
2 additions, 4 deletions
docker/sympa/Dockerfile
docker/sympa/default.conf
+17
-31
17 additions, 31 deletions
docker/sympa/default.conf
docker/sympa/supervisord.conf
+21
-0
21 additions, 0 deletions
docker/sympa/supervisord.conf
with
40 additions
and
35 deletions
docker/sympa/Dockerfile
+
2
−
4
View file @
89feea62
...
@@ -10,14 +10,12 @@ RUN apt-get -y update && apt-get -y upgrade && apt-get -y install \
...
@@ -10,14 +10,12 @@ RUN apt-get -y update && apt-get -y upgrade && apt-get -y install \
libfcgi-perl
\
libfcgi-perl
\
nullmailer
\
nullmailer
\
openssh-server
\
openssh-server
\
spawn-fcgi
\
sudo
\
sudo
\
supervisor
supervisor
RUN
apt-get
-y
install
--no-install-recommends
sympa
RUN
apt-get
-y
install
--no-install-recommends
sympa
RUN
a2enconf sympa-soap
RUN
a2enconf sympa
RUN
touch
/var/log/sympa.log
&&
chown
sympa:sympa /var/log/sympa.log
&&
chmod
640 /var/log/sympa.log
RUN
touch
/var/log/sympa.log
&&
chown
sympa:sympa /var/log/sympa.log
&&
chmod
640 /var/log/sympa.log
...
@@ -27,7 +25,7 @@ RUN cp -r /etc/sympa /etc/sympa.sample
...
@@ -27,7 +25,7 @@ RUN cp -r /etc/sympa /etc/sympa.sample
COPY
default.conf /etc/apache2/sites-available/000-default.conf
COPY
default.conf /etc/apache2/sites-available/000-default.conf
RUN
a2enmod rewrite substitute
RUN
a2enmod rewrite substitute
alias
proxy proxy_fcgi
COPY
supervisord.conf /etc/supervisor/conf.d
COPY
supervisord.conf /etc/supervisor/conf.d
...
...
This diff is collapsed.
Click to expand it.
docker/sympa/default.conf
+
17
−
31
View file @
89feea62
...
@@ -20,37 +20,23 @@
...
@@ -20,37 +20,23 @@
ErrorLog
${
APACHE_LOG_DIR
}/
error
.
log
ErrorLog
${
APACHE_LOG_DIR
}/
error
.
log
CustomLog
${
APACHE_LOG_DIR
}/
access
.
log
combined
CustomLog
${
APACHE_LOG_DIR
}/
access
.
log
combined
# Sympa pretty urls
RewriteEngine
on
<
Location
/
static
-
sympa
>
# Do not redirect static, css and pictures
Require
all
granted
RewriteCond
%{
REQUEST_URI
} !^/(
static
|
css
|
pictures
)-
sympa
/.*
</
Location
>
RewriteCond
%{
REQUEST_URI
} !^/
sympasoap
.*
Alias
/
static
-
sympa
/
usr
/
share
/
sympa
/
static_content
/
# Avoid redirect loops
RewriteCond
%{
REQUEST_URI
} !^/
wws
.*
<
Location
/
sympasoap
>
# Prepend wws
SetHandler
"proxy:unix:/var/run/sympa/sympasoap.socket|fcgi://"
RewriteRule
(.*) /
wws
$
1
[
PT
,
QSA
]
Require
all
granted
</
Location
>
# Remove /wws/ in html output
<
Location
"/"
>
AddOutputFilterByType
SUBSTITUTE
text
/
html
<
Location
/
sympa
>
Substitute
"s|/wws/|/|"
SetHandler
"proxy:unix:/var/run/sympa/wwsympa.socket|fcgi://"
Require
all
granted
</
Location
>
</
Location
>
# Hide direct access to /wws with 307 to preserve data and method
RewriteCond
%{
REQUEST_URI
} ^/
wws
.*
RewriteCond
%{
REQUEST_URI
} !^/(
static
|
css
|
pictures
)-
sympa
/.*
RewriteCond
%{
REQUEST_URI
} !^/
sympasoap
.*
RewriteRule
/
wws
(.*) $
1
[
L
,
QSA
,
R
=
307
]
# For debug purposes, uncomment this line
# LogLevel alert rewrite:trace6 substitute:trace6
# For most configuration files from conf-available/, which are
# enabled or disabled at a global level, it is possible to
# include a line for only one particular virtual host. For example the
# following line enables the CGI configuration for this host only
# after it has been globally disabled with "a2disconf".
#Include conf-available/serve-cgi-bin.conf
</
VirtualHost
>
</
VirtualHost
>
# vim: syntax=apache ts=4 sw=4 sts=4 sr noet
# vim: syntax=apache ts=4 sw=4 sts=4 sr noet
This diff is collapsed.
Click to expand it.
docker/sympa/supervisord.conf
+
21
−
0
View file @
89feea62
...
@@ -95,3 +95,24 @@ stdout_logfile_maxbytes=0
...
@@ -95,3 +95,24 @@ stdout_logfile_maxbytes=0
stderr_logfile_maxbytes
=
0
stderr_logfile_maxbytes
=
0
stdout_logfile
=/
dev
/
stdout
stdout_logfile
=/
dev
/
stdout
stderr_logfile
=/
dev
/
stderr
stderr_logfile
=/
dev
/
stderr
[
program
:
wwsympa
]
command
=/
usr
/
bin
/
spawn
-
fcgi
-
n
-
F
5
-
P
/
var
/
run
/
sympa
/
wwsympa
.
pid
-
u
sympa
-
g
sympa
-
s
/
var
/
run
/
sympa
/
wwsympa
.
socket
-
M
0600
-
U
www
-
data
-- /
usr
/
lib
/
cgi
-
bin
/
sympa
/
wwsympa
.
fcgi
autostart
=
true
stdout_events_enabled
=
true
stderr_events_enabled
=
true
stdout_logfile_maxbytes
=
0
stderr_logfile_maxbytes
=
0
stdout_logfile
=/
dev
/
stdout
stderr_logfile
=/
dev
/
stderr
[
program
:
wwsympasoap
]
command
=/
usr
/
bin
/
spawn
-
fcgi
-
n
-
F
5
-
P
/
var
/
run
/
sympa
/
sympasoap
.
pid
-
u
sympa
-
g
sympa
-
s
/
var
/
run
/
sympa
/
sympasoap
.
socket
-
M
0600
-
U
www
-
data
-- /
usr
/
lib
/
cgi
-
bin
/
sympa
/
sympa_soap_server
.
fcgi
autostart
=
true
stdout_events_enabled
=
true
stderr_events_enabled
=
true
stdout_logfile_maxbytes
=
0
stderr_logfile_maxbytes
=
0
stdout_logfile
=/
dev
/
stdout
stderr_logfile
=/
dev
/
stderr
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment