mirror of
https://github.com/haiwen/seahub.git
synced 2025-09-08 02:10:24 +00:00
add SERVICE_URL
This commit is contained in:
@@ -1056,6 +1056,8 @@ class SeahubConfigurator(AbstractConfigurator):
|
|||||||
fp.write('\n')
|
fp.write('\n')
|
||||||
self.write_secret_key(fp)
|
self.write_secret_key(fp)
|
||||||
fp.write('\n')
|
fp.write('\n')
|
||||||
|
fp.write('SERVICE_URL = "http://%s/"' % ccnet_config.ip_or_domain)
|
||||||
|
fp.write('\n')
|
||||||
self.write_database_config(fp)
|
self.write_database_config(fp)
|
||||||
|
|
||||||
def write_utf8_comment(self, fp):
|
def write_utf8_comment(self, fp):
|
||||||
|
@@ -548,6 +548,9 @@ if [[ ! -f ${dest_settings_py} ]]; then
|
|||||||
cat > ${dest_settings_py} <<EOF
|
cat > ${dest_settings_py} <<EOF
|
||||||
# -*- coding: utf-8 -*-
|
# -*- coding: utf-8 -*-
|
||||||
SECRET_KEY = "$key"
|
SECRET_KEY = "$key"
|
||||||
|
|
||||||
|
SERVICE_URL = "http://$ip_or_domain/"
|
||||||
|
|
||||||
EOF
|
EOF
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user