feat: only office dev env (#105)
This commit is contained in:
@@ -1,197 +1,269 @@
|
|||||||
{
|
{
|
||||||
"general": {
|
"general":{
|
||||||
"help_url": false,
|
"help_url":false,
|
||||||
"pricing_plan_url": "",
|
"pricing_plan_url":"",
|
||||||
"app_download_url": "https://twake.app/download",
|
"app_download_url":"https://twake.app/download",
|
||||||
"mobile": {
|
"mobile":{
|
||||||
"mobile_redirect": "mobile.twake.app",
|
"mobile_redirect":"mobile.twake.app",
|
||||||
"mobile_appstore": "https://apps.apple.com/fr/app/tdrive/id1588764852?l=en",
|
"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"
|
"mobile_googleplay":"https://play.google.com/store/apps/details?id=com.tdrive.tdrive&gl=FR"
|
||||||
},
|
},
|
||||||
"accounts": {
|
"accounts":{
|
||||||
"_type": "remote",
|
"_type":"remote",
|
||||||
"type": "internal",
|
"type":"internal",
|
||||||
"internal": {
|
"internal":{
|
||||||
"disable_account_creation": false
|
"disable_account_creation":false
|
||||||
},
|
},
|
||||||
"remote": {
|
"remote":{
|
||||||
"authority": "http://auth.example.com/",
|
"authority":"http://auth.example.com/",
|
||||||
"client_id": "tdriveweb",
|
"client_id":"tdriveweb",
|
||||||
"client_secret": "",
|
"client_secret":"",
|
||||||
"issuer": "",
|
"issuer":"",
|
||||||
"audience": "",
|
"audience":"",
|
||||||
"redirect_uris": [""],
|
"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}"
|
"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": {
|
"console":{
|
||||||
"type": "internal"
|
"type":"internal"
|
||||||
},
|
},
|
||||||
"sentry": {
|
"sentry":{
|
||||||
"dsn": ""
|
"dsn":""
|
||||||
},
|
},
|
||||||
"logger": {
|
"logger":{
|
||||||
"level": "debug"
|
"level":"debug"
|
||||||
},
|
},
|
||||||
"tracker": {
|
"tracker":{
|
||||||
"type": "segment",
|
"type":"segment",
|
||||||
"segment": {
|
"segment":{
|
||||||
"key": ""
|
"key":""
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"webserver": {
|
"webserver":{
|
||||||
"port": 4000,
|
"port":4000,
|
||||||
"logger": {
|
"logger":{
|
||||||
"level": "info"
|
"level":"info"
|
||||||
},
|
},
|
||||||
"cors": {
|
"cors":{
|
||||||
"origin": "*"
|
"origin":"*"
|
||||||
},
|
},
|
||||||
"static": {
|
"static":{
|
||||||
"root": "./public"
|
"root":"./public"
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"websocket": {
|
"websocket":{
|
||||||
"path": "/socket/",
|
"path":"/socket/",
|
||||||
"adapters": {
|
"adapters":{
|
||||||
"types": [],
|
"types":[
|
||||||
"redis": {
|
|
||||||
"host": "redis",
|
],
|
||||||
"port": 6379
|
"redis":{
|
||||||
}
|
"host":"redis",
|
||||||
},
|
"port":6379
|
||||||
"auth": {
|
}
|
||||||
"jwt": {
|
},
|
||||||
"secret": "supersecret"
|
"auth":{
|
||||||
}
|
"jwt":{
|
||||||
}
|
"secret":"supersecret"
|
||||||
|
}
|
||||||
|
}
|
||||||
},
|
},
|
||||||
"auth": {
|
"auth":{
|
||||||
"jwt": {
|
"jwt":{
|
||||||
"secret": "supersecret",
|
"secret":"supersecret",
|
||||||
"expiration": 3600,
|
"expiration":3600,
|
||||||
"refresh_expiration": 2592000
|
"refresh_expiration":2592000
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"database": {
|
"database":{
|
||||||
"secret": "ab63bb3e90c0271c9a1c06651a7c0967eab8851a7a897766",
|
"secret":"ab63bb3e90c0271c9a1c06651a7c0967eab8851a7a897766",
|
||||||
"type": "cassandra",
|
"type":"cassandra",
|
||||||
"mongodb": {
|
"mongodb":{
|
||||||
"uri": "mongodb://mongo:27017",
|
"uri":"mongodb://mongo:27017",
|
||||||
"database": "tdrive"
|
"database":"tdrive"
|
||||||
},
|
},
|
||||||
"cassandra": {
|
"cassandra":{
|
||||||
"contactPoints": ["scylladb:9042"],
|
"contactPoints":[
|
||||||
"localDataCenter": "datacenter1",
|
"scylladb:9042"
|
||||||
"keyspace": "tdrive",
|
],
|
||||||
"wait": false,
|
"localDataCenter":"datacenter1",
|
||||||
"retries": 10,
|
"keyspace":"tdrive",
|
||||||
"delay": 200
|
"wait":false,
|
||||||
}
|
"retries":10,
|
||||||
|
"delay":200
|
||||||
|
}
|
||||||
},
|
},
|
||||||
"message-queue": {
|
"message-queue":{
|
||||||
"// possible 'type' values are": "'amqp' or 'local'",
|
"// possible 'type' values are":"'amqp' or 'local'",
|
||||||
"type": "amqp",
|
"type":"amqp",
|
||||||
"amqp": {
|
"amqp":{
|
||||||
"urls": ["amqp://guest:guest@rabbitmq:5672"]
|
"urls":[
|
||||||
}
|
"amqp://guest:guest@rabbitmq:5672"
|
||||||
|
]
|
||||||
|
}
|
||||||
},
|
},
|
||||||
"search": {
|
"search":{
|
||||||
"type": "elasticsearch",
|
"type":"elasticsearch",
|
||||||
"elasticsearch": {
|
"elasticsearch":{
|
||||||
"endpoint": "http://elasticsearch:9200"
|
"endpoint":"http://elasticsearch:9200"
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"push": {
|
"push":{
|
||||||
"type": false,
|
"type":false,
|
||||||
"fcm": {
|
"fcm":{
|
||||||
"endpoint": "https://fcm.googleapis.com/fcm/send",
|
"endpoint":"https://fcm.googleapis.com/fcm/send",
|
||||||
"key": ""
|
"key":""
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"storage": {
|
"storage":{
|
||||||
"secret": "0ea28a329df23220fa814e005bfb671c",
|
"secret":"0ea28a329df23220fa814e005bfb671c",
|
||||||
"iv": "1234abcd00000000",
|
"iv":"1234abcd00000000",
|
||||||
"type": "local",
|
"type":"local",
|
||||||
"S3": {
|
"S3":{
|
||||||
"endPoint": "play.min.io",
|
"endPoint":"play.min.io",
|
||||||
"port": 9000,
|
"port":9000,
|
||||||
"useSSL": false,
|
"useSSL":false,
|
||||||
"accessKey": "ABCD",
|
"accessKey":"ABCD",
|
||||||
"secretKey": "x1yz"
|
"secretKey":"x1yz"
|
||||||
},
|
},
|
||||||
"local": {
|
"local":{
|
||||||
"path": "/storage/"
|
"path":"/storage/"
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"email-pusher": {
|
"email-pusher":{
|
||||||
"endpoint": "https://api.smtp2go.com/v3/email/send",
|
"endpoint":"https://api.smtp2go.com/v3/email/send",
|
||||||
"api_key": "secret",
|
"api_key":"secret",
|
||||||
"sender": "noreply@twake.app"
|
"sender":"noreply@twake.app"
|
||||||
},
|
},
|
||||||
"applications": {
|
"applications":{
|
||||||
"grid": [
|
"grid":[
|
||||||
{
|
{
|
||||||
"name": "Twake",
|
"name":"Twake",
|
||||||
"logo": "/public/img/grid/twake.png",
|
"logo":"/public/img/grid/twake.png",
|
||||||
"url": "https://web.twake.app/"
|
"url":"https://web.twake.app/"
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"name": "TMail",
|
"name":"TMail",
|
||||||
"logo": "/public/img/grid/tmail.png",
|
"logo":"/public/img/grid/tmail.png",
|
||||||
"url": "https://tmail.linagora.com/"
|
"url":"https://tmail.linagora.com/"
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"name": "TDrive",
|
"name":"TDrive",
|
||||||
"logo": "/public/img/grid/drive.png",
|
"logo":"/public/img/grid/drive.png",
|
||||||
"url": "https://tdrive.qa.lin-saas.com/"
|
"url":"https://tdrive.qa.lin-saas.com/"
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"name": "Calendar",
|
"name":"Calendar",
|
||||||
"logo": "/public/img/grid/calendar.png",
|
"logo":"/public/img/grid/calendar.png",
|
||||||
"url": "https://openpaas.linagora.com/calendar/"
|
"url":"https://openpaas.linagora.com/calendar/"
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"name": "Contacts",
|
"name":"Contacts",
|
||||||
"logo": "/public/img/grid/contacts.png",
|
"logo":"/public/img/grid/contacts.png",
|
||||||
"url": "https://openpaas.linagora.com/contacts"
|
"url":"https://openpaas.linagora.com/contacts"
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"name": "Telescope",
|
"name":"Telescope",
|
||||||
"logo": "/public/img/grid/jitsi.png",
|
"logo":"/public/img/grid/jitsi.png",
|
||||||
"url": "https://jitsi.linagora.com/"
|
"url":"https://jitsi.linagora.com/"
|
||||||
}
|
}
|
||||||
],
|
],
|
||||||
"plugins": []
|
"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": [
|
"services":[
|
||||||
"auth",
|
"auth",
|
||||||
"push",
|
"push",
|
||||||
"storage",
|
"storage",
|
||||||
"webserver",
|
"webserver",
|
||||||
"websocket",
|
"websocket",
|
||||||
"database",
|
"database",
|
||||||
"cron",
|
"cron",
|
||||||
"search",
|
"search",
|
||||||
"message-queue",
|
"message-queue",
|
||||||
"realtime",
|
"realtime",
|
||||||
"tracker",
|
"tracker",
|
||||||
"general",
|
"general",
|
||||||
"user",
|
"user",
|
||||||
"files",
|
"files",
|
||||||
"workspaces",
|
"workspaces",
|
||||||
"console",
|
"console",
|
||||||
"counter",
|
"counter",
|
||||||
"statistics",
|
"statistics",
|
||||||
"cron",
|
"cron",
|
||||||
"online",
|
"online",
|
||||||
"email-pusher",
|
"email-pusher",
|
||||||
"documents",
|
"documents",
|
||||||
"applications",
|
"applications",
|
||||||
"applications-api",
|
"applications-api",
|
||||||
"tags"
|
"tags"
|
||||||
]
|
]
|
||||||
}
|
}
|
||||||
@@ -27,6 +27,8 @@ services:
|
|||||||
- DB_DRIVER=mongodb
|
- DB_DRIVER=mongodb
|
||||||
- PUBSUB_TYPE=local
|
- PUBSUB_TYPE=local
|
||||||
- ./docker-data/documents/:/storage/
|
- ./docker-data/documents/:/storage/
|
||||||
|
volumes:
|
||||||
|
- ./docker-data/documents/:/storage/
|
||||||
depends_on:
|
depends_on:
|
||||||
- mongo
|
- mongo
|
||||||
links:
|
links:
|
||||||
@@ -56,6 +58,22 @@ services:
|
|||||||
- ./docker-data/ssl:/etc/nginx/ssl
|
- ./docker-data/ssl:/etc/nginx/ssl
|
||||||
networks:
|
networks:
|
||||||
- tdrive_network
|
- 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:
|
networks:
|
||||||
tdrive_network:
|
tdrive_network:
|
||||||
|
|||||||
Reference in New Issue
Block a user