Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
nextcloud
Manage
Activity
Members
Labels
Plan
Issues
7
Issue boards
Milestones
Wiki
Code
Merge requests
1
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Model registry
Operate
Environments
Monitor
Incidents
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
libre.sh
compose
nextcloud
Commits
b759492a
Commit
b759492a
authored
7 years ago
by
unteem
Browse files
Options
Downloads
Plain Diff
Merge branch 'mail-config'
parents
cd4cc8b4
1f059f1d
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
.gitignore
+1
-1
1 addition, 1 deletion
.gitignore
docker-compose.yml
+7
-0
7 additions, 0 deletions
docker-compose.yml
env-sample
+8
-0
8 additions, 0 deletions
env-sample
scripts/install
+7
-16
7 additions, 16 deletions
scripts/install
with
23 additions
and
17 deletions
.gitignore
+
1
−
1
View file @
b759492a
.env
data
mysql
\ No newline at end of file
mysql
This diff is collapsed.
Click to expand it.
docker-compose.yml
+
7
−
0
View file @
b759492a
...
...
@@ -32,6 +32,13 @@ services:
-
./data/config:/var/www/html/config
-
./data/data:/var/www/html/data
environment
:
-
MAIL_HOST
-
MAIL_FROM
-
MAIL_PASS
-
MAIL_PORT
-
URL
-
MAIL_DOMAIN
-
SMTP_NAME
-
MYSQL_DATABASE=nextcloud
-
MYSQL_HOST=db
-
MYSQL_USER=root
...
...
This diff is collapsed.
Click to expand it.
env-sample
+
8
−
0
View file @
b759492a
...
...
@@ -2,3 +2,11 @@ MYSQL_ROOT_PASSWORD=
MYSQL_PASSWORD=
SUBNET=
MAIL_DOMAIN=
URL=
MAIL_HOST=
MAIL_PORT=
MAIL_PASS=
MAIL_FROM=
SMTP_NAME=
This diff is collapsed.
Click to expand it.
scripts/install
+
7
−
16
View file @
b759492a
...
...
@@ -8,21 +8,12 @@ SUBNET=$(($var +1))
echo
"MYSQL_ROOT_PASSWORD=
${
MYSQL_ROOT_PASSWORD
}
"
>
.env
echo
"MYSQL_PASSWORD=
${
MYSQL_ROOT_PASSWORD
}
"
>>
.env
echo
"SUBNET=
${
SUBNET
}
"
>>
.env
cat
>
mail
.
config
.
php
<<
EOF
<?
php
\
$CONFIG
=
array
(
'mail_domain'
=>
'${MAIL_DOMAIN}'
,
'mail_from_address'
=>
'noreply.${URL}'
,
'mail_smtpmode'
=>
'smtp'
,
'mail_smtphost'
=>
'${MAIL_HOST}'
,
'mail_smtpport'
=>
'${MAIL_PORT}'
,
'mail_smtpauth'
=>
1
,
'mail_smtpauthtype'
=>
'LOGIN'
,
'mail_smtpname'
=>
'noreply.${URL}@${MAIL_DOMAIN}'
,
'mail_smtppassword'
=>
'${MAIL_PASS}'
,
'mail_smtpsecure'
=>
'tls'
,
);
EOF
echo
"MAIL_DOMAIN=
${
MAIL_DOMAIN
}
"
>>
.env
echo
"URL=
${
URL
}
"
>>
.env
echo
"MAIL_HOST=
${
MAIL_HOST
}
"
>>
.env
echo
"MAIL_PORT=
${
MAIL_PORT
}
"
>>
.env
echo
"MAIL_PASS=
${
MAIL_PASS
}
"
>>
.env
echo
"MAIL_FROM=noreply.
${
URL
}
"
>>
.env
echo
"SMTP_NAME=
${
MAIL_USER
}
>> .env
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