feat: only office dev env (#105)

This commit is contained in:
Montassar Ghanmy
2023-06-21 15:25:29 +01:00
committed by GitHub
parent 4bef09abff
commit 0e9e6a6c69
2 changed files with 270 additions and 180 deletions
+252 -180
View File
@@ -1,197 +1,269 @@
{
"general": {
"help_url": false,
"pricing_plan_url": "",
"app_download_url": "https://twake.app/download",
"mobile": {
"mobile_redirect": "mobile.twake.app",
"mobile_appstore": "https://apps.apple.com/fr/app/tdrive/id1588764852?l=en",
"mobile_googleplay": "https://play.google.com/store/apps/details?id=com.tdrive.tdrive&gl=FR"
},
"accounts": {
"_type": "remote",
"type": "internal",
"internal": {
"disable_account_creation": false
},
"remote": {
"authority": "http://auth.example.com/",
"client_id": "tdriveweb",
"client_secret": "",
"issuer": "",
"audience": "",
"redirect_uris": [""],
"account_management_url": "http://web.tdrive-console.local/profile?company-code={company_id}",
"collaborators_management_url": "http://web.tdrive-console.local/compaies/{company_id}/users?company-code={company_id}",
"company_management_url": "http://web.tdrive-console.local/companies?company-code={company_id}"
}
}
"general":{
"help_url":false,
"pricing_plan_url":"",
"app_download_url":"https://twake.app/download",
"mobile":{
"mobile_redirect":"mobile.twake.app",
"mobile_appstore":"https://apps.apple.com/fr/app/tdrive/id1588764852?l=en",
"mobile_googleplay":"https://play.google.com/store/apps/details?id=com.tdrive.tdrive&gl=FR"
},
"accounts":{
"_type":"remote",
"type":"internal",
"internal":{
"disable_account_creation":false
},
"remote":{
"authority":"http://auth.example.com/",
"client_id":"tdriveweb",
"client_secret":"",
"issuer":"",
"audience":"",
"redirect_uris":[
""
],
"account_management_url":"http://web.tdrive-console.local/profile?company-code={company_id}",
"collaborators_management_url":"http://web.tdrive-console.local/compaies/{company_id}/users?company-code={company_id}",
"company_management_url":"http://web.tdrive-console.local/companies?company-code={company_id}"
}
}
},
"console": {
"type": "internal"
"console":{
"type":"internal"
},
"sentry": {
"dsn": ""
"sentry":{
"dsn":""
},
"logger": {
"level": "debug"
"logger":{
"level":"debug"
},
"tracker": {
"type": "segment",
"segment": {
"key": ""
}
"tracker":{
"type":"segment",
"segment":{
"key":""
}
},
"webserver": {
"port": 4000,
"logger": {
"level": "info"
},
"cors": {
"origin": "*"
},
"static": {
"root": "./public"
}
"webserver":{
"port":4000,
"logger":{
"level":"info"
},
"cors":{
"origin":"*"
},
"static":{
"root":"./public"
}
},
"websocket": {
"path": "/socket/",
"adapters": {
"types": [],
"redis": {
"host": "redis",
"port": 6379
}
},
"auth": {
"jwt": {
"secret": "supersecret"
}
}
"websocket":{
"path":"/socket/",
"adapters":{
"types":[
],
"redis":{
"host":"redis",
"port":6379
}
},
"auth":{
"jwt":{
"secret":"supersecret"
}
}
},
"auth": {
"jwt": {
"secret": "supersecret",
"expiration": 3600,
"refresh_expiration": 2592000
}
"auth":{
"jwt":{
"secret":"supersecret",
"expiration":3600,
"refresh_expiration":2592000
}
},
"database": {
"secret": "ab63bb3e90c0271c9a1c06651a7c0967eab8851a7a897766",
"type": "cassandra",
"mongodb": {
"uri": "mongodb://mongo:27017",
"database": "tdrive"
},
"cassandra": {
"contactPoints": ["scylladb:9042"],
"localDataCenter": "datacenter1",
"keyspace": "tdrive",
"wait": false,
"retries": 10,
"delay": 200
}
"database":{
"secret":"ab63bb3e90c0271c9a1c06651a7c0967eab8851a7a897766",
"type":"cassandra",
"mongodb":{
"uri":"mongodb://mongo:27017",
"database":"tdrive"
},
"cassandra":{
"contactPoints":[
"scylladb:9042"
],
"localDataCenter":"datacenter1",
"keyspace":"tdrive",
"wait":false,
"retries":10,
"delay":200
}
},
"message-queue": {
"// possible 'type' values are": "'amqp' or 'local'",
"type": "amqp",
"amqp": {
"urls": ["amqp://guest:guest@rabbitmq:5672"]
}
"message-queue":{
"// possible 'type' values are":"'amqp' or 'local'",
"type":"amqp",
"amqp":{
"urls":[
"amqp://guest:guest@rabbitmq:5672"
]
}
},
"search": {
"type": "elasticsearch",
"elasticsearch": {
"endpoint": "http://elasticsearch:9200"
}
"search":{
"type":"elasticsearch",
"elasticsearch":{
"endpoint":"http://elasticsearch:9200"
}
},
"push": {
"type": false,
"fcm": {
"endpoint": "https://fcm.googleapis.com/fcm/send",
"key": ""
}
"push":{
"type":false,
"fcm":{
"endpoint":"https://fcm.googleapis.com/fcm/send",
"key":""
}
},
"storage": {
"secret": "0ea28a329df23220fa814e005bfb671c",
"iv": "1234abcd00000000",
"type": "local",
"S3": {
"endPoint": "play.min.io",
"port": 9000,
"useSSL": false,
"accessKey": "ABCD",
"secretKey": "x1yz"
},
"local": {
"path": "/storage/"
}
"storage":{
"secret":"0ea28a329df23220fa814e005bfb671c",
"iv":"1234abcd00000000",
"type":"local",
"S3":{
"endPoint":"play.min.io",
"port":9000,
"useSSL":false,
"accessKey":"ABCD",
"secretKey":"x1yz"
},
"local":{
"path":"/storage/"
}
},
"email-pusher": {
"endpoint": "https://api.smtp2go.com/v3/email/send",
"api_key": "secret",
"sender": "noreply@twake.app"
"email-pusher":{
"endpoint":"https://api.smtp2go.com/v3/email/send",
"api_key":"secret",
"sender":"noreply@twake.app"
},
"applications": {
"grid": [
{
"name": "Twake",
"logo": "/public/img/grid/twake.png",
"url": "https://web.twake.app/"
},
{
"name": "TMail",
"logo": "/public/img/grid/tmail.png",
"url": "https://tmail.linagora.com/"
},
{
"name": "TDrive",
"logo": "/public/img/grid/drive.png",
"url": "https://tdrive.qa.lin-saas.com/"
},
{
"name": "Calendar",
"logo": "/public/img/grid/calendar.png",
"url": "https://openpaas.linagora.com/calendar/"
},
{
"name": "Contacts",
"logo": "/public/img/grid/contacts.png",
"url": "https://openpaas.linagora.com/contacts"
},
{
"name": "Telescope",
"logo": "/public/img/grid/jitsi.png",
"url": "https://jitsi.linagora.com/"
}
],
"plugins": []
"applications":{
"grid":[
{
"name":"Twake",
"logo":"/public/img/grid/twake.png",
"url":"https://web.twake.app/"
},
{
"name":"TMail",
"logo":"/public/img/grid/tmail.png",
"url":"https://tmail.linagora.com/"
},
{
"name":"TDrive",
"logo":"/public/img/grid/drive.png",
"url":"https://tdrive.qa.lin-saas.com/"
},
{
"name":"Calendar",
"logo":"/public/img/grid/calendar.png",
"url":"https://openpaas.linagora.com/calendar/"
},
{
"name":"Contacts",
"logo":"/public/img/grid/contacts.png",
"url":"https://openpaas.linagora.com/contacts"
},
{
"name":"Telescope",
"logo":"/public/img/grid/jitsi.png",
"url":"https://jitsi.linagora.com/"
}
],
"plugins":[
{
"api":{
"private_key":"c1cc66db78e1d3bb4713c55d5ab2"
},
"display":{
"tdrive":{
"files":{
"editor":{
"edition_url":"http://localhost:5000/plugins/onlyoffice/",
"empty_files":[
{
"filename":"Untitled.docx",
"name":"ONLYOFFICE Word Document",
"url":"/plugins/onlyoffice/assets/empty.docx"
},
{
"filename":"Untitled.xlsx",
"name":"ONLYOFFICE Excel Document",
"url":"/plugins/onlyoffice/assets/empty.xlsx"
},
{
"filename":"Untitled.pptx",
"name":"ONLYOFFICE PowerPoint Document",
"url":"/plugins/onlyoffice/assets/empty.pptx"
}
],
"extensions":[
"xlsx",
"pptx",
"docx",
"xls",
"ppt",
"doc",
"odt",
"ods",
"odp",
"txt",
"html",
"csv"
],
"preview_url":"http://localhost:5000/plugins/onlyoffice/?preview=1"
}
},
"version":1
}
},
"external_prefix":"/plugins/onlyoffice/",
"id":"tdrive_onlyoffice",
"identity":{
"categories":[
],
"code":"only_office",
"compatibility":[
"tdrive"
],
"description":null,
"icon":"/plugins/onlyoffice/assets/logo.png",
"name":"Only Office",
"website":"http://twake.app/"
},
"internal_domain":"http://localhost:5000/"
}
]
},
"services": [
"auth",
"push",
"storage",
"webserver",
"websocket",
"database",
"cron",
"search",
"message-queue",
"realtime",
"tracker",
"general",
"user",
"files",
"workspaces",
"console",
"counter",
"statistics",
"cron",
"online",
"email-pusher",
"documents",
"applications",
"applications-api",
"tags"
"services":[
"auth",
"push",
"storage",
"webserver",
"websocket",
"database",
"cron",
"search",
"message-queue",
"realtime",
"tracker",
"general",
"user",
"files",
"workspaces",
"console",
"counter",
"statistics",
"cron",
"online",
"email-pusher",
"documents",
"applications",
"applications-api",
"tags"
]
}
}
+18
View File
@@ -27,6 +27,8 @@ services:
- DB_DRIVER=mongodb
- PUBSUB_TYPE=local
- ./docker-data/documents/:/storage/
volumes:
- ./docker-data/documents/:/storage/
depends_on:
- mongo
links:
@@ -56,6 +58,22 @@ services:
- ./docker-data/ssl:/etc/nginx/ssl
networks:
- tdrive_network
onlyoffice-connector:
image: onlyoffice-connector
hostname: onlyoffice_connector
environment:
- CREDENTIALS_ENDPOINT=http://tdrive_node:4000
- ONLY_OFFICE_SERVER=http://localhost:8090/
- SERVER_ORIGIN=
- SERVER_PORT=5000
- SERVER_PREFIX=/plugins/onlyoffice
- CREDENTIALS_ID=tdrive_onlyoffice
- CREDENTIALS_SECRET=c1cc66db78e1d3bb4713c55d5ab2
ports:
- 5000:5000
networks:
- tdrive_network
networks:
tdrive_network: