mirror of
https://github.com/ggogel/seafile-containerized.git
synced 2026-04-28 03:20:46 +00:00
SERVER_IP should be an ip or dns name, not a URL (upstream #368)
This commit is contained in:
parent
21d67dd7ff
commit
f56b3f4926
1 changed files with 2 additions and 3 deletions
|
|
@ -55,7 +55,8 @@ def init_seafile_server():
|
|||
proto = 'https' if is_https() else 'http'
|
||||
env = {
|
||||
'SERVER_NAME': 'seafile',
|
||||
'SERVER_IP': f'{proto}://{domain}',
|
||||
'SERVER_IP': domain,
|
||||
'FORCE_HTTPS_IN_CONF': 'true' if is_https() else 'false',
|
||||
'MYSQL_USER': 'seafile',
|
||||
'MYSQL_USER_PASSWD': str(uuid.uuid4()),
|
||||
'MYSQL_USER_HOST': '%.%.%.%',
|
||||
|
|
@ -71,8 +72,6 @@ def init_seafile_server():
|
|||
.format(get_script('setup-seafile-mysql.py')), shell=True)
|
||||
|
||||
# Change setup-seafile-mysql.py to allow protocol (http/https) in SERVER_IP
|
||||
call('''sed -i "/SERVER_IP_OR_DOMAIN_REGEX\ =/c\\ \ \ \ SERVER_IP_OR_DOMAIN_REGEX\ \=\ r'^(http:\\/\\/|https:\\/\\/)[^.].+\..+[^.]$'" {}'''
|
||||
.format(get_script('setup-seafile-mysql.py')), shell=True)
|
||||
call('''sed -i '/SERVICE_URL = "http:\/\//s/http:\/\///' {}'''
|
||||
.format(get_script('setup-seafile-mysql.py')), shell=True)
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue