Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
What's new
7
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Open sidebar
ai3
docker
roundcube
Commits
5228c377
Commit
5228c377
authored
Feb 07, 2018
by
ale
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Add SSO configuration
parent
e4c0fa11
Pipeline
#846
passed with stages
in 3 minutes and 48 seconds
Changes
4
Pipelines
1
Show whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
14 additions
and
6 deletions
+14
-6
build.sh
build.sh
+4
-0
conf/apache2/mods-available/sso.conf
conf/apache2/mods-available/sso.conf
+3
-0
conf/apache2/sites-available/webmail.conf
conf/apache2/sites-available/webmail.conf
+6
-0
start.sh
start.sh
+1
-6
No files found.
build.sh
View file @
5228c377
...
...
@@ -41,6 +41,7 @@ APACHE_MODULES_ENABLE="
rewrite
setenvif
sso
unique_id
"
# Apache modules that are enabled by default by the Debian package,
...
...
@@ -105,6 +106,9 @@ for d in temp logs ; do
chmod
700 /var/www/webmail/
$d
done
# Create config mountpoint
mkdir
-p
/etc/roundcube
# Install Chaperone (minimalistic init service).
pip3
install
chaperone
rm
-fr
/root/.cache/pip
...
...
conf/apache2/mods-available/sso.conf
0 → 100644
View file @
5228c377
SSOPublicKeyFile
/
etc
/
sso
/
public
.
key
SSOLoginServer
login
.${
DOMAIN
}
SSODomain
${
DOMAIN
}
conf/apache2/sites-available/webmail.conf
View file @
5228c377
...
...
@@ -17,5 +17,11 @@
Require
all
granted
</
Directory
>
<
Location
/>
AuthType
SSO
SSOService
${
SHARD_ID
}.
webmail
.${
DOMAIN
}/
require
group
users
</
Location
>
</
VirtualHost
>
start.sh
View file @
5228c377
...
...
@@ -10,16 +10,11 @@
CONFIG_DIR
=
/etc/roundcube
TARGET_DIR
=
/var/www/webmail
# Main configuration files.
MAIN_CONFIG_FILES
=
"config.inc.php db.inc.php"
# Name of the MySQL database to use.
MYSQL_DB
=
"ai_roundcube"
install_config
()
{
for
f
in
${
MAIN_CONFIG_FILES
}
;
do
install
-o
root
-g
root
-m
644
${
CONFIG_DIR
}
/
${
f
}
${
TARGET_DIR
}
/config/
$f
done
install
-o
root
-g
root
-m
644
${
CONFIG_DIR
}
/config.inc.php
${
TARGET_DIR
}
/config/config.inc.php
# For each known plugin, look for a NAME.config.inc.php file in
# the config directory: if found, copy it to the plugin directory
...
...
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