Skip to content

Commit

Permalink
Modify approach choosing type of docspace (#50)
Browse files Browse the repository at this point in the history
Co-authored-by: Sergey Kirichenko <Sergey.Kirichenko@onlyoffice.com>
Co-committed-by: Sergey Kirichenko <Sergey.Kirichenko@onlyoffice.com>
  • Loading branch information
sk81biz authored and agolybev committed Nov 1, 2024
1 parent a91efc0 commit f4e3fbb
Show file tree
Hide file tree
Showing 4 changed files with 13 additions and 6 deletions.
1 change: 1 addition & 0 deletions config/appsettings.developer.json
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
{}
10 changes: 10 additions & 0 deletions config/appsettings.enterprise.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
{
"web": {
"license-url": "https://help.onlyoffice.co/Products/Files/DocEditor.aspx?fileid=8516433&doc=U0U1QUs2VEtIVmtYclFTNzVXSWkxUEN6aVlWTzdOWFFsWGdibG80Mnhacz0_IntcImVudHJ5XCI6XCI4NTE2NDMzXCIsXCJsaW5rXCI6XCI5Y2ZiMWNkMS0wMmMxLTRlNmEtYThhOC1iNjFlYTk2ZTYzNDZcIn0i0"
},
"license": {
"file": {
"path": "/app/onlyoffice/data/license.lic"
}
}
}
2 changes: 1 addition & 1 deletion install/docker/.env
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
HUB=""
PRODUCT=onlyoffice
REPO=${PRODUCT}
INSTALLATION_TYPE=COMMUNITY
INSTALLATION_TYPE=""
STATUS=""
DOCKER_IMAGE_PREFIX=${STATUS}docspace
CONTAINER_PREFIX=${PRODUCT}-
Expand Down
6 changes: 1 addition & 5 deletions install/docker/docker-entrypoint.py
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@

PRODUCT = os.environ["PRODUCT"] if environ.get("PRODUCT") else "onlyoffice"
BASE_DIR = os.environ["BASE_DIR"] if environ.get("BASE_DIR") else "/app/" + PRODUCT
ENV_EXTENSION = os.environ["ENV_EXTENSION"] if environ.get("ENV_EXTENSION") else "none"
ENV_EXTENSION = os.environ.get("ENV_EXTENSION", os.environ.get("INSTALLATION_TYPE", "none")).lower()
PROXY_HOST = os.environ["PROXY_HOST"] if environ.get("PROXY_HOST") else "onlyoffice-proxy"
SERVICE_PORT = os.environ["SERVICE_PORT"] if environ.get("SERVICE_PORT") else "5050"
URLS = os.environ["URLS"] if environ.get("URLS") else "http://0.0.0.0:"
Expand All @@ -29,7 +29,6 @@

APP_CORE_BASE_DOMAIN = os.environ["APP_CORE_BASE_DOMAIN"] if environ.get("APP_CORE_BASE_DOMAIN") is not None else "localhost"
APP_CORE_MACHINEKEY = os.environ["APP_CORE_MACHINEKEY"] if environ.get("APP_CORE_MACHINEKEY") else "your_core_machinekey"
INSTALLATION_TYPE = os.environ["INSTALLATION_TYPE"].upper() if environ.get("INSTALLATION_TYPE") else "COMMUNITY"
APP_URL_PORTAL = os.environ["APP_URL_PORTAL"] if environ.get("APP_URL_PORTAL") else "http://" + ROUTER_HOST + ":8092"
OAUTH_REDIRECT_URL = os.environ["OAUTH_REDIRECT_URL"] if environ.get("OAUTH_REDIRECT_URL") else None
APP_STORAGE_ROOT = os.environ["APP_STORAGE_ROOT"] if environ.get("APP_STORAGE_ROOT") else BASE_DIR + "/data/"
Expand Down Expand Up @@ -175,9 +174,6 @@ def writeJsonFile(jsonFile, jsonData, indent=4):
updateJsonData(jsonData,"$.files.docservice.secret.header", DOCUMENT_SERVER_JWT_HEADER)
updateJsonData(jsonData,"$.debug-info.enabled", DEBUG_INFO)
updateJsonData(jsonData,"$.web.samesite", SAMESITE)
if INSTALLATION_TYPE in ["ENTERPRISE", "DEVELOPER"]:
updateJsonData(jsonData, "$.license.file.path", "/app/onlyoffice/data/license.lic")
updateJsonData(jsonData, "$.web.license-url", "https://help.onlyoffice.co/Products/Files/DocEditor.aspx?fileid=8516433&doc=U0U1QUs2VEtIVmtYclFTNzVXSWkxUEN6aVlWTzdOWFFsWGdibG80Mnhacz0_IntcImVudHJ5XCI6XCI4NTE2NDMzXCIsXCJsaW5rXCI6XCI5Y2ZiMWNkMS0wMmMxLTRlNmEtYThhOC1iNjFlYTk2ZTYzNDZcIn0i0")

ip_address = netifaces.ifaddresses('eth0').get(netifaces.AF_INET)[0].get('addr')
netmask = netifaces.ifaddresses('eth0').get(netifaces.AF_INET)[0].get('netmask')
Expand Down

0 comments on commit f4e3fbb

Please sign in to comment.