Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
S
solo-1
Project overview
Project overview
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Administrator
solo-1
Commits
d232a94a
Unverified
Commit
d232a94a
authored
Mar 03, 2019
by
Liang Ding
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
🎨
#12690
parent
d845710d
Changes
8
Hide whitespace changes
Inline
Side-by-side
Showing
8 changed files
with
1 addition
and
89 deletions
+1
-89
Dockerfile
Dockerfile
+1
-1
src/main/resources/docker/entrypoint.sh
src/main/resources/docker/entrypoint.sh
+0
-7
src/main/resources/docker/mail.properties
src/main/resources/docker/mail.properties
+0
-32
src/main/resources/lang_en_US.properties
src/main/resources/lang_en_US.properties
+0
-1
src/main/resources/lang_zh_CN.properties
src/main/resources/lang_zh_CN.properties
+0
-1
src/main/resources/mail.properties
src/main/resources/mail.properties
+0
-34
src/main/resources/repository.json
src/main/resources/repository.json
+0
-12
src/main/webapp/admin/admin-label.ftl
src/main/webapp/admin/admin-label.ftl
+0
-1
No files found.
Dockerfile
View file @
d232a94a
...
...
@@ -6,7 +6,7 @@ ADD . /tmp
RUN
cd
/tmp
&&
mvn
install
-DskipTests
-Pci
&&
mv
target/solo/
*
/opt/b3log/solo/
\
&&
mkdir
-p
/opt/b3log/backup/
&&
mkdir
-p
/opt/b3log/tmp/
\
&&
rm
-rf
/opt/b3log/solo/WEB-INF/classes/local.properties /opt/b3log/solo/WEB-INF/classes/
mail.properties /opt/b3log/solo/WEB-INF/classes/
latke.properties
\
&&
rm
-rf
/opt/b3log/solo/WEB-INF/classes/local.properties /opt/b3log/solo/WEB-INF/classes/latke.properties
\
&&
rm
-rf
/tmp/
*
&&
rm
-rf
~/.m2
ADD
./src/main/resources/docker/entrypoint.sh $WORKDIR
...
...
src/main/resources/docker/entrypoint.sh
View file @
d232a94a
...
...
@@ -41,13 +41,6 @@ if [ ! -f "/opt/b3log/solo/WEB-INF/classes/local.properties" ]; then
-e
"s|{{SERVER_PORT}}|
${
SERVER_PORT
:-
8080
}
|g"
\
>
/opt/b3log/solo/WEB-INF/classes/latke.properties
cat
/opt/b3log/tmp/mail.properties |
sed
\
-e
"s|{{EMAIL_ADDRESS}}|
${
EMAIL_ADDRESS
}
|g"
\
-e
"s|{{EMAIL_PASSWORD}}|
${
EMAIL_PASSWORD
}
|g"
\
-e
"s|{{SMTP_HOST}}|
${
SMTP_HOST
:-
smtp
.gmail.com
}
|g"
\
-e
"s|{{SMTP_PROT}}|
${
SMTP_PROT
:-
587
}
|g"
\
-e
"s|{{SMTP_SOCKETFACTORY_PORT}}|
${
SMTP_SOCKETFACTORY_PORT
:-
465
}
|g"
\
>
/opt/b3log/solo/WEB-INF/classes/mail.properties
rm
-rf
/opt/b3log/tmp
fi
...
...
src/main/resources/docker/mail.properties
deleted
100644 → 0
View file @
d845710d
#
# Solo - A small and beautiful blogging system written in Java.
# Copyright (c) 2010-2019, b3log.org & hacpai.com
#
# This program is free software: you can redistribute it and/or modify
# it under the terms of the GNU Affero General Public License as published by
# the Free Software Foundation, either version 3 of the License, or
# (at your option) any later version.
#
# This program is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
# GNU Affero General Public License for more details.
#
# You should have received a copy of the GNU Affero General Public License
# along with this program. If not, see <https://www.gnu.org/licenses/>.
#
#
# Description: Solo mail configurations.
# Version: 1.0.0.4, Jul 19, 2017
# Author: Liang Ding
#
mail.user
=
{{EMAIL_ADDRESS}}
mail.password
=
{{EMAIL_PASSWORD}}
mail.debug
=
false
mail.smtp.host
=
{{SMTP_HOST}}
mail.smtp.port
=
{{SMTP_PROT}}
mail.smtp.socketFactory.class
=
javax.net.ssl.SSLSocketFactory
mail.smtp.socketFactory.fallback
=
false
mail.smtp.socketFactory.port
=
{{SMTP_SOCKETFACTORY_PORT}}
src/main/resources/lang_en_US.properties
View file @
d232a94a
...
...
@@ -367,7 +367,6 @@ blogArticleEmptyLabel=Please select articles
notAllowCommentLabel
=
Not allow comment!
nameTooLongLabel
=
Sorry, your username must be between 2 and 20 characters long.
categoryTooLongLabel
=
Sorry, category name must be between 2 and 32 characters long.
mailCannotEmptyLabel
=
Mail is empty
urlInvalidLabel
=
URL is invalid
nonNegativeIntegerOnlyLabel
=
Non-Negative integer only
commentContentCannotEmptyLabel
=
Sorry, your content must be between 2 and 500 characters long.
...
...
src/main/resources/lang_zh_CN.properties
View file @
d232a94a
...
...
@@ -367,7 +367,6 @@ blogArticleEmptyLabel=\u8BF7\u9009\u62E9\u9700\u8981\u5BFC\u5165\u7684\u6587\u7A
notAllowCommentLabel
=
\u
4E0D
\u5141\u
8BB8
\u
8BC4
\u
8BBA
\u
FF01
nameTooLongLabel
=
\u
59D3
\u
540D
\u
53EA
\u
80FD
\u
4E3A 2
\u5230
20
\u
4E2A
\u
5B57
\u
7B26
\u
FF01
categoryTooLongLabel
=
\u5206\u
7C7B
\u
540D
\u
79F0
\u
53EA
\u
80FD
\u
4E3A 2
\u5230
32
\u
4E2A
\u
5B57
\u
7B26
\u
FF01
mailCannotEmptyLabel
=
\u
90AE
\u
7BB1
\u
4E0D
\u
80FD
\u
4E3A
\u
7A7A
\u
FF01
urlInvalidLabel
=
\u
94FE
\u
63A5
\u
683C
\u
5F0F
\u
4E0D
\u
6B63
\u
786E
\u
FF01
nonNegativeIntegerOnlyLabel
=
\u
53EA
\u
80FD
\u
4E3A
\u
975E
\u
8D1F
\u6574\u6570\u
FF01
commentContentCannotEmptyLabel
=
\u
8BC4
\u
8BBA
\u5185\u
5BB9
\u
53EA
\u
80FD
\u
4E3A 2
\u5230
500
\u
4E2A
\u
5B57
\u
7B26
\u
FF01
...
...
src/main/resources/mail.properties
deleted
100644 → 0
View file @
d845710d
#
# Solo - A small and beautiful blogging system written in Java.
# Copyright (c) 2010-2019, b3log.org & hacpai.com
#
# This program is free software: you can redistribute it and/or modify
# it under the terms of the GNU Affero General Public License as published by
# the Free Software Foundation, either version 3 of the License, or
# (at your option) any later version.
#
# This program is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
# GNU Affero General Public License for more details.
#
# You should have received a copy of the GNU Affero General Public License
# along with this program. If not, see <https://www.gnu.org/licenses/>.
#
#
# Description: Solo mail configurations.
# Version: 1.0.0.6, Jan 18, 2019
# Author: Liang Ding
#
mail.user
=
mail.password
=
mail.debug
=
false
mail.smtp.host
=
smtp.qq.com
mail.smtp.port
=
465
mail.smtp.socketFactory.class
=
javax.net.ssl.SSLSocketFactory
mail.smtp.socketFactory.fallback
=
false
mail.smtp.socketFactory.port
=
465
mail.smtp.auth
=
true
mail.smtp.starttls.enable
=
true
\ No newline at end of file
src/main/resources/repository.json
View file @
d232a94a
...
...
@@ -132,12 +132,6 @@
"description"
:
"评论时间戳"
,
"type"
:
"long"
},
{
"name"
:
"commentEmail"
,
"description"
:
"评论人邮箱"
,
"type"
:
"String"
,
"length"
:
255
},
{
"name"
:
"commentName"
,
"description"
:
"评论人名称"
,
...
...
@@ -383,12 +377,6 @@
"type"
:
"String"
,
"length"
:
19
},
{
"name"
:
"userEmail"
,
"description"
:
"用户邮箱"
,
"type"
:
"String"
,
"length"
:
255
},
{
"name"
:
"userName"
,
"description"
:
"用户名"
,
...
...
src/main/webapp/admin/admin-label.ftl
View file @
d232a94a
...
...
@@ -79,7 +79,6 @@
"statusLabel": "${statusLabel}",
"versionLabel": "${versionLabel}",
"userNameLabel": "${userNameLabel}",
"commentEmailLabel": "${commentEmailLabel}",
"roleLabel": "${roleLabel}",
"administratorLabel": "${administratorLabel}",
"noSettingLabel": "${noSettingLabel}",
...
...
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