1
0
mirror of https://github.com/haiwen/seahub.git synced 2025-09-07 01:41:39 +00:00

add SERVICE_URL

This commit is contained in:
skywalker
2022-02-10 17:32:50 +08:00
parent 1500afb2ff
commit 3bc994621c
2 changed files with 5 additions and 0 deletions

View File

@@ -1056,6 +1056,8 @@ class SeahubConfigurator(AbstractConfigurator):
fp.write('\n')
self.write_secret_key(fp)
fp.write('\n')
fp.write('SERVICE_URL = "http://%s/"' % ccnet_config.ip_or_domain)
fp.write('\n')
self.write_database_config(fp)
def write_utf8_comment(self, fp):

View File

@@ -548,6 +548,9 @@ if [[ ! -f ${dest_settings_py} ]]; then
cat > ${dest_settings_py} <<EOF
# -*- coding: utf-8 -*-
SECRET_KEY = "$key"
SERVICE_URL = "http://$ip_or_domain/"
EOF
fi