Compare commits
303
Commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
507ad7ba91 | ||
|
|
3fbe5063d8 | ||
|
|
3b8680fb96 | ||
|
|
766b289c6e | ||
|
|
5373eb93c4 | ||
|
|
664bbe0018 | ||
|
|
3325259b86 | ||
|
|
2b18b3526d | ||
|
|
e8ebd1a173 | ||
|
|
d3fe8b2bfc | ||
|
|
10c130f1f4 | ||
|
|
beb83f3f40 | ||
|
|
fde9d88d7e | ||
|
|
398a9ba8ab | ||
|
|
a206fb176b | ||
|
|
b2baafa227 | ||
|
|
0892add114 | ||
|
|
d446403d2e | ||
|
|
a8b99f7f84 | ||
|
|
61a8f00837 | ||
|
|
a591d65119 | ||
|
|
0c4d46ee2f | ||
|
|
5b5d3611ad | ||
|
|
d81e47cc7e | ||
|
|
2cddc0a23c | ||
|
|
f1521e4df7 | ||
|
|
7d8336ce4b | ||
|
|
ad4ea3efe7 | ||
|
|
864ab57e9b | ||
|
|
f8da4db59f | ||
|
|
fe2efc3c46 | ||
|
|
4c9d990478 | ||
|
|
200872b3b4 | ||
|
|
5be1970322 | ||
|
|
5c05441044 | ||
|
|
151806157b | ||
|
|
fd2a96af5a | ||
|
|
99279379d9 | ||
|
|
778242e330 | ||
|
|
ddb4ffbfa1 | ||
|
|
bc362abdff | ||
|
|
c77b5e8866 | ||
|
|
f477f0354a | ||
|
|
c905f6e736 | ||
|
|
cb6513e6fa | ||
|
|
bd773b54ef | ||
|
|
96e75ceb2f | ||
|
|
efa3769052 | ||
|
|
b137d438af | ||
|
|
0dfc3d37e2 | ||
|
|
2f4faad754 | ||
|
|
e7ee1c3c9e | ||
|
|
2731dbd7b2 | ||
|
|
be46bacc5b | ||
|
|
bb99f44a35 | ||
|
|
a2cba4631f | ||
|
|
594b094e54 | ||
|
|
f6493e503f | ||
|
|
9a253370e8 | ||
|
|
c89ead3fc5 | ||
|
|
abf89d4ba7 | ||
|
|
b9df6e417e | ||
|
|
3870246233 | ||
|
|
8c83de7db2 | ||
|
|
e0e4585130 | ||
|
|
f61184b1a2 | ||
|
|
ef4e573e42 | ||
|
|
a3d1e55d29 | ||
|
|
6753f38bf3 | ||
|
|
89f50668f9 | ||
|
|
de34fbb995 | ||
|
|
30cb165878 | ||
|
|
3a5a8dbb52 | ||
|
|
5655ea4e05 | ||
|
|
a9922343ef | ||
|
|
fc9e7f7cc9 | ||
|
|
5cc6ca335a | ||
|
|
c1dcfb655f | ||
|
|
0e322f518d | ||
|
|
6cd2a3fcd6 | ||
|
|
e4974e020d | ||
|
|
2910e88ba5 | ||
|
|
9ba8fcf08e | ||
|
|
9cb3daa30a | ||
|
|
d7a7a8f653 | ||
|
|
d69f58d28f | ||
|
|
752cd4f626 | ||
|
|
fd027ffd3d | ||
|
|
d39b68a03d | ||
|
|
9ad7ac662c | ||
|
|
7f8afe67ab | ||
|
|
6d9ea4a51a | ||
|
|
c04b6fafd9 | ||
|
|
7aad4d1638 | ||
|
|
673d0e303b | ||
|
|
cc881c4c9a | ||
|
|
938b2ea576 | ||
|
|
c67012d880 | ||
|
|
28e8f75ebd | ||
|
|
348c54f2e7 | ||
|
|
1018725cdb | ||
|
|
1689f744a4 | ||
|
|
5d157fba8a | ||
|
|
267223115d | ||
|
|
31a81a4186 | ||
|
|
21cccfcb7f | ||
|
|
0fa1d5750e | ||
|
|
d82f485604 | ||
|
|
dbecc7dcfb | ||
|
|
45de881aca | ||
|
|
27ef08f1af | ||
|
|
b17650af5a | ||
|
|
9d304cf91f | ||
|
|
f2413d9453 | ||
|
|
65b3f4f967 | ||
|
|
a3853388d8 | ||
|
|
0cc535ad51 | ||
|
|
db9b9ca252 | ||
|
|
266e1b1ac3 | ||
|
|
bf1926f84f | ||
|
|
5cb359d877 | ||
|
|
df414f639d | ||
|
|
61cd37113a | ||
|
|
62c7cab5d5 | ||
|
|
d016090c17 | ||
|
|
34845f9414 | ||
|
|
db4d61692a | ||
|
|
d856d5470e | ||
|
|
50382ee0e5 | ||
|
|
2394de10f7 | ||
|
|
e25677bb20 | ||
|
|
c42a4c8ec3 | ||
|
|
441bded50f | ||
|
|
7f7f1004a2 | ||
|
|
178eac9724 | ||
|
|
fd71062671 | ||
|
|
127441fcf5 | ||
|
|
693585c9b2 | ||
|
|
11467f8c20 | ||
|
|
e85291367e | ||
|
|
040c24606f | ||
|
|
1d2447f7ea | ||
|
|
599b2a6c29 | ||
|
|
1558b2a472 | ||
|
|
e10c79c653 | ||
|
|
a3a6b1206e | ||
|
|
cba60d73c8 | ||
|
|
0ec05a4f5e | ||
|
|
4439a3109e | ||
|
|
5ee7bad25c | ||
|
|
e39cd16617 | ||
|
|
2bc7f2175c | ||
|
|
2a259dd3b1 | ||
|
|
edde760f79 | ||
|
|
e2817731fc | ||
|
|
434163b503 | ||
|
|
d470d5c200 | ||
|
|
ca98d8287c | ||
|
|
cda74f417e | ||
|
|
94443994ca | ||
|
|
d37701e899 | ||
|
|
deeb9a8392 | ||
|
|
6d3dc1cf4a | ||
|
|
0798f406ec | ||
|
|
dbb52f29ad | ||
|
|
cda8aadf50 | ||
|
|
c46a5598d4 | ||
|
|
da20db18bc | ||
|
|
cb2e2a3896 | ||
|
|
11ba46eb88 | ||
|
|
c5a75291f9 | ||
|
|
90e9a75b07 | ||
|
|
22067eb855 | ||
|
|
6afa02e4e4 | ||
|
|
79ec1d1034 | ||
|
|
6522a41b26 | ||
|
|
0d1b2de6bf | ||
|
|
55bfea4850 | ||
|
|
6835a89364 | ||
|
|
b634b69d10 | ||
|
|
68b74d11da | ||
|
|
e72328d738 | ||
|
|
a92703188a | ||
|
|
7cbbcadbdf | ||
|
|
e334759874 | ||
|
|
63d1fca0ce | ||
|
|
5ef4025c29 | ||
|
|
f16deed415 | ||
|
|
7cfdbcee60 | ||
|
|
39bda3a109 | ||
|
|
ab85245093 | ||
|
|
d28f5ce7db | ||
|
|
c742389ebb | ||
|
|
072042efaa | ||
|
|
d744896a63 | ||
|
|
c2393a707d | ||
|
|
68d093932e | ||
|
|
4294d6b364 | ||
|
|
d394e0d03c | ||
|
|
1e772d176e | ||
|
|
1cf5cf16e3 | ||
|
|
515f5a56fe | ||
|
|
e35c37dd08 | ||
|
|
d57f7a810c | ||
|
|
3c66e9a9af | ||
|
|
3b36c79a28 | ||
|
|
fdee244bef | ||
|
|
4452d165ca | ||
|
|
a32c700cea | ||
|
|
09181cbd64 | ||
|
|
ee016ad991 | ||
|
|
559f777ea7 | ||
|
|
049b35768a | ||
|
|
398325d569 | ||
|
|
df9e809181 | ||
|
|
1a32be2b94 | ||
|
|
edcb61f957 | ||
|
|
bdb04a34e8 | ||
|
|
6002398e6b | ||
|
|
f42031a4f4 | ||
|
|
d77db16062 | ||
|
|
6b07aeda85 | ||
|
|
48169de239 | ||
|
|
5de15f4d12 | ||
|
|
005825bbc9 | ||
|
|
1621a0d3ab | ||
|
|
a9a2bbf7c6 | ||
|
|
ffa21a3165 | ||
|
|
e5369a4470 | ||
|
|
f211bda1b6 | ||
|
|
a433db46c4 | ||
|
|
52ea234fa9 | ||
|
|
a17248f747 | ||
|
|
2ba57ac887 | ||
|
|
b614ad1670 | ||
|
|
0e1840a03c | ||
|
|
29c3974ccd | ||
|
|
90e2651e06 | ||
|
|
cbcf82136d | ||
|
|
bdb7433926 | ||
|
|
49d5a3ee4f | ||
|
|
b58dc7cf33 | ||
|
|
55bd68d217 | ||
|
|
d1543f76a2 | ||
|
|
d5e889e9cf | ||
|
|
bc6227e8fd | ||
|
|
90ffb54251 | ||
|
|
b8fee3f37d | ||
|
|
edc252e1a0 | ||
|
|
206980238c | ||
|
|
c362ff2736 | ||
|
|
a979b66129 | ||
|
|
f02d80d7aa | ||
|
|
b345413b88 | ||
|
|
4bf0faf00c | ||
|
|
40449ac875 | ||
|
|
0859316571 | ||
|
|
54f9505787 | ||
|
|
d91008c3c2 | ||
|
|
7f7b0e5421 | ||
|
|
0a8c19a30a | ||
|
|
9ccba00fa8 | ||
|
|
0c7a3fc08d | ||
|
|
8d5b52121d | ||
|
|
e26578b038 | ||
|
|
dfd6a86fe7 | ||
|
|
0ea04c02f9 | ||
|
|
e91d67e29a | ||
|
|
2dcaae3aaa | ||
|
|
5dbe8ef8d6 | ||
|
|
b4b4574935 | ||
|
|
5196a2edcd | ||
|
|
c2aa4b02de | ||
|
|
fe8586643f | ||
|
|
f51890c788 | ||
|
|
731e2f79b4 | ||
|
|
2f69265a66 | ||
|
|
49ac58815d | ||
|
|
c267de48b7 | ||
|
|
a643ad4acd | ||
|
|
5e4e89d26a | ||
|
|
fdd28993b0 | ||
|
|
aa6f1c0ca5 | ||
|
|
38e2f89218 | ||
|
|
bd6b335da0 | ||
|
|
79e7f85a57 | ||
|
|
37b8f3a303 | ||
|
|
f3b10816c0 | ||
|
|
08e218aa3e | ||
|
|
358cf12403 | ||
|
|
a410d40166 | ||
|
|
f2c653aeec | ||
|
|
4bb64c81bb | ||
|
|
94ceea6f6c | ||
|
|
f1082ca033 | ||
|
|
ca785ec57c | ||
|
|
a233f5474c | ||
|
|
1ac6cf5489 | ||
|
|
fe2ca059e6 | ||
|
|
b136966b51 | ||
|
|
a5c09453b9 | ||
|
|
f2a1c06145 | ||
|
|
20eae462b3 |
No files matched your search
+384
-160
@@ -3,110 +3,128 @@ config = {
|
||||
'accounts': 'frontend',
|
||||
'glauth':'',
|
||||
'konnectd':'',
|
||||
'ocis': '',
|
||||
'ocis-phoenix':'',
|
||||
'ocis-pkg':'',
|
||||
'storage':'',
|
||||
'ocs':'',
|
||||
'proxy':'',
|
||||
'settings':'frontend',
|
||||
'storage':'',
|
||||
'store':'',
|
||||
'thumbnails':'',
|
||||
'webdav':'',
|
||||
'onlyoffice':'frontend'
|
||||
},
|
||||
'apiTests': {
|
||||
'coreBranch': 'master',
|
||||
'coreCommit': '4f7fb95e5926f9bce6a89b1d4c62ee0368b7b866',
|
||||
'coreCommit': '60eaf47d37f30e52362953e5c7db44140f927890',
|
||||
'numberOfParts': 10
|
||||
},
|
||||
'uiTests': {
|
||||
'phoenixBranch': 'master',
|
||||
'phoenixCommit': '645d91f0dadde314b3173afafe30eb3cff12bf59',
|
||||
'suites': {
|
||||
'phoenixWebUI1': [
|
||||
'webUICreateFilesFolders',
|
||||
'webUIDeleteFilesFolders',
|
||||
'webUIFavorites',
|
||||
],
|
||||
'phoenixWebUI2' : [
|
||||
'webUIFiles',
|
||||
'webUILogin',
|
||||
'webUINotifications',
|
||||
'webUIPrivateLinks',
|
||||
],
|
||||
'phoenixWebUI3': [
|
||||
'webUIAccount',
|
||||
'webUIRenameFiles',
|
||||
'webUIRenameFolders',
|
||||
],
|
||||
'phoenixWebUI4': [
|
||||
'webUITrashbin',
|
||||
'webUIUpload',
|
||||
'webUIRestrictSharing',
|
||||
'phoenixCommit': 'c136a4347548b022078294ea09f4eaa628a26097',
|
||||
'suites': {
|
||||
'webUIBasic': [
|
||||
'webUILogin',
|
||||
'webUINotifications',
|
||||
'webUIPrivateLinks',
|
||||
'webUIPreview',
|
||||
'webUIAccount',
|
||||
],
|
||||
'phoenixWebUI5': [
|
||||
'webUISharingAutocompletion',
|
||||
'webUISharingInternalGroups',
|
||||
'webUISharingInternalUsers',
|
||||
'webUISharingPermissionsUsers',
|
||||
'webUISharingFilePermissionsGroups',
|
||||
'webUISharingFolderPermissionsGroups',
|
||||
'webUISharingFolderAdvancedPermissionsGroups',
|
||||
'webUICreateFilesFolders': 'webUICreateFilesFolders',
|
||||
'webUIDeleteFilesFolders': 'webUIDeleteFilesFolders',
|
||||
'webUIRename': [
|
||||
'webUIRenameFiles',
|
||||
'webUIRenameFolders',
|
||||
],
|
||||
'phoenixWebUI6': [
|
||||
'webUIResharing',
|
||||
'webUISharingPublic',
|
||||
'webUISharingPublicDifferentRoles',
|
||||
'webUISharingAcceptShares',
|
||||
'webUISharingNotifications',
|
||||
],
|
||||
'phoenixWebUI7': [
|
||||
'webUISharingFilePermissionMultipleUsers',
|
||||
],
|
||||
'phoenixWebUI8': [
|
||||
'webUISharingFolderPermissionMultipleUsers',
|
||||
'webUISharingFolderAdvancedPermissionMultipleUsers',
|
||||
],
|
||||
}
|
||||
'webUISharingBasic': [
|
||||
'webUISharingAcceptShares',
|
||||
'webUISharingAcceptSharesToRoot',
|
||||
],
|
||||
'webUIRestrictSharing': 'webUIRestrictSharing',
|
||||
'webUISharingNotifications': [
|
||||
'webUISharingNotifications',
|
||||
'webUISharingNotificationsToRoot',
|
||||
],
|
||||
'webUIFavorites': 'webUIFavorites',
|
||||
'webUIFiles': 'webUIFiles',
|
||||
'webUISharingAutocompletion': 'webUISharingAutocompletion',
|
||||
'webUISharingInternalGroups': [
|
||||
'webUISharingInternalGroups',
|
||||
'webUISharingInternalGroupsEdgeCases',
|
||||
'webUISharingInternalGroupsSharingIndicator',
|
||||
'webUISharingInternalGroupsToRoot',
|
||||
'webUISharingInternalGroupsToRootEdgeCases',
|
||||
'webUISharingInternalGroupsToRootSharingIndicator',
|
||||
],
|
||||
'webUISharingInternalUsers': [
|
||||
'webUISharingInternalUsers',
|
||||
'webUISharingInternalUsersBlacklisted',
|
||||
'webUISharingInternalUsersSharingIndicator',
|
||||
'webUISharingInternalUsersToRoot',
|
||||
'webUISharingInternalUsersToRootBlacklisted',
|
||||
'webUISharingInternalUsersToRootSharingIndicator',
|
||||
],
|
||||
'webUISharingInternalUsersExpire': 'webUISharingInternalUsersExpire',
|
||||
'webUISharingInternalUsersExpireToRoot': 'webUISharingInternalUsersExpireToRoot',
|
||||
'webUISharingPermissionsUsers': 'webUISharingPermissionsUsers',
|
||||
'webUISharingFilePermissionsGroups': 'webUISharingFilePermissionsGroups',
|
||||
'webUISharingFolderPermissionsGroups': 'webUISharingFolderPermissionsGroups',
|
||||
'webUISharingFolderAdvancedPermissionsGroups': 'webUISharingFolderAdvPermissionsGrp',
|
||||
'webUISharingPermissionToRoot': 'webUISharingPermissionToRoot',
|
||||
'webUIResharing': 'webUIResharing',
|
||||
'webUIResharingToRoot': 'webUIResharingToRoot',
|
||||
'webUISharingPublic': 'webUISharingPublic',
|
||||
'webUISharingPublicExpire': 'webUISharingPublicExpire',
|
||||
'webUISharingPublicDifferentRoles': 'webUISharingPublicDifferentRoles',
|
||||
'webUITrashbin': 'webUITrashbin',
|
||||
'webUITrashbinFilesFolders': 'webUITrashbinFilesFolders',
|
||||
'webUITrashbinRestore': 'webUITrashbinRestore',
|
||||
'webUIUpload': 'webUIUpload',
|
||||
'webUISharingFilePermissionMultipleUsers': 'webUISharingFilePermissionMultipleUsers',
|
||||
'webUISharingFolderPermissionMultipleUsers': 'webUISharingFolderPermissionMultipleUsers',
|
||||
'webUISharingFolderAdvancedPermissionMultipleUsers': [
|
||||
'webUISharingFolderAdvancedPermissionMU',
|
||||
],
|
||||
'webUIMoveFilesFolders': 'webUIMoveFilesFolders',
|
||||
},
|
||||
},
|
||||
'rocketchat': {
|
||||
'channel': 'ocis-internal',
|
||||
'from_secret': 'private_rocketchat',
|
||||
},
|
||||
}
|
||||
def getTestSuiteNames():
|
||||
keys = config['modules'].keys()
|
||||
|
||||
def getPipelineNames(pipelines=[]):
|
||||
"""getPipelineNames returns names of pipelines as a string array
|
||||
|
||||
Args:
|
||||
pipelines: array of drone pipelines
|
||||
|
||||
Returns:
|
||||
names of the given pipelines as string array
|
||||
"""
|
||||
names = []
|
||||
for key in keys:
|
||||
names.append('linting&unitTests-%s' % (key))
|
||||
for pipeline in pipelines:
|
||||
names.append(pipeline['name'])
|
||||
return names
|
||||
|
||||
def getUITestSuiteNames():
|
||||
return config['uiTests']['suites'].keys()
|
||||
|
||||
def getUITestSuites():
|
||||
return config['uiTests']['suites']
|
||||
|
||||
def getCoreApiTestPipelineNames():
|
||||
names = []
|
||||
for runPart in range(1, config['apiTests']['numberOfParts'] + 1):
|
||||
names.append('Core-API-Tests-owncloud-storage-%s' % runPart)
|
||||
names.append('Core-API-Tests-ocis-storage-%s' % runPart)
|
||||
return names
|
||||
|
||||
def getDependsOnAllTestPipelines(ctx):
|
||||
dependencies = getTestSuiteNames() + [
|
||||
'upload-coverage',
|
||||
'localApiTests-apiOcisSpecific-owncloud',
|
||||
'localApiTests-apiOcisSpecific-ocis',
|
||||
'localApiTests-apiBasic-owncloud',
|
||||
'localApiTests-apiBasic-ocis',
|
||||
] + getCoreApiTestPipelineNames() + getUITestSuiteNames() + ['accountsUITests']
|
||||
|
||||
return dependencies
|
||||
|
||||
def main(ctx):
|
||||
"""main is the entrypoint for drone
|
||||
|
||||
Args:
|
||||
ctx: drone passes a context with information which the pipeline can be adapted to
|
||||
|
||||
Returns:
|
||||
none
|
||||
"""
|
||||
|
||||
pipelines = []
|
||||
before = testPipelines(ctx)
|
||||
|
||||
before = \
|
||||
[ buildOcisBinaryForTesting(ctx) ] + \
|
||||
testOcisModules(ctx) + \
|
||||
testPipelines(ctx)
|
||||
|
||||
stages = [
|
||||
docker(ctx, 'amd64'),
|
||||
@@ -126,30 +144,70 @@ def main(ctx):
|
||||
badges(ctx),
|
||||
docs(ctx),
|
||||
updateDeployment(ctx),
|
||||
notify(ctx),
|
||||
]
|
||||
|
||||
if '[docs-only]' in (ctx.build.title + ctx.build.message):
|
||||
doc_pipelines = docs(ctx)
|
||||
doc_pipelines['depends_on'] = []
|
||||
if ctx.build.event == "cron":
|
||||
before.append(benchmark(ctx))
|
||||
|
||||
notify_pipelines = notify(ctx)
|
||||
notify_pipelines['depends_on'] = ['docs']
|
||||
purge = purgeBuildArtifactCache(ctx, 'ocis-binary-amd64')
|
||||
purge['depends_on'] = getPipelineNames(before)
|
||||
|
||||
before.append(purge)
|
||||
|
||||
notify_pipeline = notify(ctx)
|
||||
notify_pipeline['depends_on'] = \
|
||||
getPipelineNames(before)
|
||||
|
||||
pipelines = before + [ notify_pipeline ]
|
||||
|
||||
elif \
|
||||
(ctx.build.event == "pull" and '[docs-only]' in ctx.build.title) \
|
||||
or \
|
||||
(ctx.build.event != "pull" and '[docs-only]' in (ctx.build.title + ctx.build.message)):
|
||||
# [docs-only] is not taken from PR messages, but from commit messages
|
||||
|
||||
docs_pipeline = docs(ctx)
|
||||
docs_pipeline['depends_on'] = []
|
||||
docs_pipelines = [ docs_pipeline ]
|
||||
|
||||
notify_pipeline = notify(ctx)
|
||||
notify_pipeline['depends_on'] = \
|
||||
getPipelineNames(docs_pipelines)
|
||||
|
||||
pipelines = docs_pipelines + [ notify_pipeline ]
|
||||
|
||||
pipelines = [ doc_pipelines, notify_pipelines ]
|
||||
else:
|
||||
pipelines = before + stages + after
|
||||
purge_dependencies = testPipelines(ctx)
|
||||
|
||||
if '[with-benchmarks]' in (ctx.build.title + ctx.build.message):
|
||||
before.append(benchmark(ctx))
|
||||
purge_dependencies.append(benchmark(ctx))
|
||||
|
||||
purge = purgeBuildArtifactCache(ctx, 'ocis-binary-amd64')
|
||||
purge['depends_on'] = getPipelineNames(purge_dependencies)
|
||||
|
||||
pipelines = before + stages + after + [purge]
|
||||
|
||||
notify_pipeline = notify(ctx)
|
||||
notify_pipeline['depends_on'] = \
|
||||
getPipelineNames(pipelines)
|
||||
|
||||
pipelines = pipelines + [ notify_pipeline ]
|
||||
|
||||
return pipelines
|
||||
|
||||
def testPipelines(ctx):
|
||||
def testOcisModules(ctx):
|
||||
pipelines = []
|
||||
|
||||
for module in config['modules']:
|
||||
pipelines.append(testing(ctx, module))
|
||||
pipelines.append(testOcisModule(ctx, module))
|
||||
|
||||
pipelines += [
|
||||
uploadCoverage(ctx),
|
||||
coverage_upload = uploadCoverage(ctx)
|
||||
coverage_upload['depends_on'] = getPipelineNames(pipelines)
|
||||
|
||||
return pipelines + [coverage_upload]
|
||||
|
||||
def testPipelines(ctx):
|
||||
pipelines = [
|
||||
localApiTests(ctx, config['apiTests']['coreBranch'], config['apiTests']['coreCommit'], 'owncloud', 'apiOcisSpecific'),
|
||||
localApiTests(ctx, config['apiTests']['coreBranch'], config['apiTests']['coreCommit'], 'ocis', 'apiOcisSpecific'),
|
||||
localApiTests(ctx, config['apiTests']['coreBranch'], config['apiTests']['coreCommit'], 'owncloud', 'apiBasic', 'default'),
|
||||
@@ -164,15 +222,14 @@ def testPipelines(ctx):
|
||||
pipelines.append(accountsUITests(ctx, config['uiTests']['phoenixBranch'], config['uiTests']['phoenixCommit']))
|
||||
return pipelines
|
||||
|
||||
def testing(ctx, module):
|
||||
steps = generate(module) + [
|
||||
def testOcisModule(ctx, module):
|
||||
steps = makeGenerate(module) + [
|
||||
{
|
||||
'name': 'vet',
|
||||
'image': 'webhippie/golang:1.14',
|
||||
'pull': 'always',
|
||||
'commands': [
|
||||
'cd %s' % (module),
|
||||
'make vet',
|
||||
'make -C %s vet' % (module),
|
||||
],
|
||||
'volumes': [
|
||||
{
|
||||
@@ -186,8 +243,7 @@ def testing(ctx, module):
|
||||
'image': 'webhippie/golang:1.14',
|
||||
'pull': 'always',
|
||||
'commands': [
|
||||
'cd %s' % (module),
|
||||
'make staticcheck',
|
||||
'make -C %s staticcheck' % (module),
|
||||
],
|
||||
'volumes': [
|
||||
{
|
||||
@@ -201,8 +257,7 @@ def testing(ctx, module):
|
||||
'image': 'webhippie/golang:1.14',
|
||||
'pull': 'always',
|
||||
'commands': [
|
||||
'cd %s' % (module),
|
||||
'make lint',
|
||||
'make -C %s lint' % (module),
|
||||
],
|
||||
'volumes': [
|
||||
{
|
||||
@@ -216,9 +271,8 @@ def testing(ctx, module):
|
||||
'image': 'webhippie/golang:1.14',
|
||||
'pull': 'always',
|
||||
'commands': [
|
||||
'cd %s' % (module),
|
||||
'make test',
|
||||
'mv coverage.out %s_coverage.out' % (module),
|
||||
'make -C %s test' % (module),
|
||||
'mv %s/coverage.out %s_coverage.out' % (module, module),
|
||||
],
|
||||
'volumes': [
|
||||
{
|
||||
@@ -235,10 +289,9 @@ def testing(ctx, module):
|
||||
'from_secret': 'cache_s3_endpoint'
|
||||
},
|
||||
'bucket': 'cache',
|
||||
'source': '%s/%s_coverage.out' % (module, module),
|
||||
'source': '%s_coverage.out' % (module),
|
||||
'target': '%s/%s/coverage' % (ctx.repo.slug, ctx.build.commit + '-${DRONE_BUILD_NUMBER}'),
|
||||
'path_style': True,
|
||||
'strip_prefix': module,
|
||||
'access_key': {
|
||||
'from_secret': 'cache_s3_access_key'
|
||||
},
|
||||
@@ -269,6 +322,40 @@ def testing(ctx, module):
|
||||
'refs/pull/**',
|
||||
],
|
||||
},
|
||||
'volumes': [
|
||||
{
|
||||
'name': 'gopath',
|
||||
'temp': {},
|
||||
},
|
||||
],
|
||||
}
|
||||
|
||||
def buildOcisBinaryForTesting(ctx):
|
||||
return {
|
||||
'kind': 'pipeline',
|
||||
'type': 'docker',
|
||||
'name': 'build_ocis_binary_for_testing',
|
||||
'platform': {
|
||||
'os': 'linux',
|
||||
'arch': 'amd64',
|
||||
},
|
||||
'steps':
|
||||
makeGenerate('ocis') +
|
||||
build() +
|
||||
rebuildBuildArtifactCache(ctx, 'ocis-binary-amd64', 'ocis/bin/ocis'),
|
||||
'trigger': {
|
||||
'ref': [
|
||||
'refs/heads/master',
|
||||
'refs/tags/v*',
|
||||
'refs/pull/**',
|
||||
],
|
||||
},
|
||||
'volumes': [
|
||||
{
|
||||
'name': 'gopath',
|
||||
'temp': {},
|
||||
},
|
||||
],
|
||||
}
|
||||
|
||||
def uploadCoverage(ctx):
|
||||
@@ -337,7 +424,6 @@ def uploadCoverage(ctx):
|
||||
'refs/pull/**',
|
||||
],
|
||||
},
|
||||
'depends_on': getTestSuiteNames(),
|
||||
}
|
||||
|
||||
def localApiTests(ctx, coreBranch = 'master', coreCommit = '', storage = 'owncloud', suite = 'apiOcisSpecific', accounts_hash_difficulty = 4):
|
||||
@@ -350,8 +436,7 @@ def localApiTests(ctx, coreBranch = 'master', coreCommit = '', storage = 'ownclo
|
||||
'arch': 'amd64',
|
||||
},
|
||||
'steps':
|
||||
generate('ocis') +
|
||||
build() +
|
||||
restoreBuildArtifactCache(ctx, 'ocis-binary-amd64', 'ocis/bin/ocis') +
|
||||
ocisServer(storage, accounts_hash_difficulty) +
|
||||
cloneCoreRepos(coreBranch, coreCommit) + [
|
||||
{
|
||||
@@ -370,7 +455,6 @@ def localApiTests(ctx, coreBranch = 'master', coreCommit = '', storage = 'ownclo
|
||||
'PATH_TO_CORE': '/srv/app/testrunner',
|
||||
},
|
||||
'commands': [
|
||||
'cd ocis',
|
||||
'make test-acceptance-api',
|
||||
],
|
||||
'volumes': [{
|
||||
@@ -387,6 +471,7 @@ def localApiTests(ctx, coreBranch = 'master', coreCommit = '', storage = 'ownclo
|
||||
'temp': {},
|
||||
},
|
||||
],
|
||||
'depends_on': getPipelineNames([buildOcisBinaryForTesting(ctx)]),
|
||||
'trigger': {
|
||||
'ref': [
|
||||
'refs/heads/master',
|
||||
@@ -406,8 +491,7 @@ def coreApiTests(ctx, coreBranch = 'master', coreCommit = '', part_number = 1, n
|
||||
'arch': 'amd64',
|
||||
},
|
||||
'steps':
|
||||
generate('ocis') +
|
||||
build() +
|
||||
restoreBuildArtifactCache(ctx, 'ocis-binary-amd64', 'ocis/bin/ocis') +
|
||||
ocisServer(storage, accounts_hash_difficulty) +
|
||||
cloneCoreRepos(coreBranch, coreCommit) + [
|
||||
{
|
||||
@@ -424,11 +508,10 @@ def coreApiTests(ctx, coreBranch = 'master', coreCommit = '', part_number = 1, n
|
||||
'BEHAT_FILTER_TAGS': '~@notToImplementOnOCIS&&~@toImplementOnOCIS&&~comments-app-required&&~@federation-app-required&&~@notifications-app-required&&~systemtags-app-required&&~@local_storage&&~@skipOnOcis-%s-Storage' % ('OC' if storage == 'owncloud' else 'OCIS'),
|
||||
'DIVIDE_INTO_NUM_PARTS': number_of_parts,
|
||||
'RUN_PART': part_number,
|
||||
'EXPECTED_FAILURES_FILE': '/drone/src/ocis/tests/acceptance/expected-failures-on-%s-storage.txt' % (storage.upper()),
|
||||
'EXPECTED_FAILURES_FILE': '/drone/src/tests/acceptance/expected-failures-on-%s-storage.txt' % (storage.upper()),
|
||||
},
|
||||
'commands': [
|
||||
'cd /srv/app/testrunner',
|
||||
'make test-acceptance-api',
|
||||
'make -C /srv/app/testrunner test-acceptance-api',
|
||||
],
|
||||
'volumes': [{
|
||||
'name': 'gopath',
|
||||
@@ -444,6 +527,53 @@ def coreApiTests(ctx, coreBranch = 'master', coreCommit = '', part_number = 1, n
|
||||
'temp': {},
|
||||
},
|
||||
],
|
||||
'depends_on': getPipelineNames([buildOcisBinaryForTesting(ctx)]),
|
||||
'trigger': {
|
||||
'ref': [
|
||||
'refs/heads/master',
|
||||
'refs/tags/v*',
|
||||
'refs/pull/**',
|
||||
],
|
||||
},
|
||||
}
|
||||
|
||||
def benchmark(ctx):
|
||||
return {
|
||||
'kind': 'pipeline',
|
||||
'type': 'docker',
|
||||
'name': 'benchmark',
|
||||
'failure': 'ignore',
|
||||
'platform': {
|
||||
'os': 'linux',
|
||||
'arch': 'amd64',
|
||||
},
|
||||
'steps':
|
||||
restoreBuildArtifactCache(ctx, 'ocis-binary-amd64', 'ocis/bin/ocis') +
|
||||
ocisServer('ocis') + [
|
||||
{
|
||||
'name': 'build benchmarks',
|
||||
'image': 'node',
|
||||
'pull': 'always',
|
||||
'commands': [
|
||||
'cd tests/k6',
|
||||
'yarn',
|
||||
'yarn build',
|
||||
],
|
||||
},
|
||||
{
|
||||
'name': 'run benchmarks',
|
||||
'image': 'loadimpact/k6',
|
||||
'pull': 'always',
|
||||
'environment': {
|
||||
'OC_HOST': 'https://ocis-server:9200',
|
||||
},
|
||||
'commands': [
|
||||
'cd tests/k6',
|
||||
'for f in ./dist/test-* ; do k6 run "$f" -q; done',
|
||||
],
|
||||
},
|
||||
],
|
||||
'depends_on': getPipelineNames([buildOcisBinaryForTesting(ctx)]),
|
||||
'trigger': {
|
||||
'ref': [
|
||||
'refs/heads/master',
|
||||
@@ -454,14 +584,18 @@ def coreApiTests(ctx, coreBranch = 'master', coreCommit = '', part_number = 1, n
|
||||
}
|
||||
|
||||
def uiTests(ctx, phoenixBranch, phoenixCommit):
|
||||
suiteNames = getUITestSuiteNames()
|
||||
return [uiTestPipeline(suiteName, phoenixBranch, phoenixCommit) for suiteName in suiteNames]
|
||||
suiteNames = config['uiTests']['suites'].keys()
|
||||
return [uiTestPipeline(ctx, suiteName, phoenixBranch, phoenixCommit) for suiteName in suiteNames]
|
||||
|
||||
def uiTestPipeline(suiteName, phoenixBranch = 'master', phoenixCommit = '', storage = 'owncloud', accounts_hash_difficulty = 4):
|
||||
suites = getUITestSuites()
|
||||
def uiTestPipeline(ctx, suiteName, phoenixBranch = 'master', phoenixCommit = '', storage = 'owncloud', accounts_hash_difficulty = 4):
|
||||
suites = config['uiTests']['suites']
|
||||
paths = ""
|
||||
for path in suites[suiteName]:
|
||||
paths = paths + "tests/acceptance/features/" + path + " "
|
||||
suite = suites[suiteName]
|
||||
if type(suite) == "list":
|
||||
for path in suite:
|
||||
paths = paths + "tests/acceptance/features/" + path + " "
|
||||
else:
|
||||
paths = paths + "tests/acceptance/features/" + suite + " "
|
||||
|
||||
return {
|
||||
'kind': 'pipeline',
|
||||
@@ -472,12 +606,11 @@ def uiTestPipeline(suiteName, phoenixBranch = 'master', phoenixCommit = '', stor
|
||||
'arch': 'amd64',
|
||||
},
|
||||
'steps':
|
||||
generate('ocis') +
|
||||
build() +
|
||||
restoreBuildArtifactCache(ctx, 'ocis-binary-amd64', 'ocis/bin/ocis') +
|
||||
ocisServer(storage, accounts_hash_difficulty) + [
|
||||
{
|
||||
'name': 'webUITests',
|
||||
'image': 'owncloudci/nodejs:11',
|
||||
'image': 'webhippie/nodejs:latest',
|
||||
'pull': 'always',
|
||||
'environment': {
|
||||
'SERVER_HOST': 'https://ocis-server:9200',
|
||||
@@ -485,7 +618,7 @@ def uiTestPipeline(suiteName, phoenixBranch = 'master', phoenixCommit = '', stor
|
||||
'RUN_ON_OCIS': 'true',
|
||||
'OCIS_REVA_DATA_ROOT': '/srv/app/tmp/ocis/owncloud/data',
|
||||
'OCIS_SKELETON_DIR': '/srv/app/testing/data/webUISkeleton',
|
||||
'PHOENIX_CONFIG': '/drone/src/ocis/tests/config/drone/ocis-config.json',
|
||||
'PHOENIX_CONFIG': '/drone/src/tests/config/drone/ocis-config.json',
|
||||
'TEST_TAGS': 'not @skipOnOCIS and not @skip',
|
||||
'LOCAL_UPLOAD_DIR': '/uploads',
|
||||
'NODE_TLS_REJECT_UNAUTHORIZED': 0,
|
||||
@@ -525,6 +658,7 @@ def uiTestPipeline(suiteName, phoenixBranch = 'master', phoenixCommit = '', stor
|
||||
'temp': {}
|
||||
}
|
||||
],
|
||||
'depends_on': getPipelineNames([buildOcisBinaryForTesting(ctx)]),
|
||||
'trigger': {
|
||||
'ref': [
|
||||
'refs/heads/master',
|
||||
@@ -544,12 +678,11 @@ def accountsUITests(ctx, phoenixBranch, phoenixCommit, storage = 'owncloud', acc
|
||||
'arch': 'amd64',
|
||||
},
|
||||
'steps':
|
||||
generate('ocis') +
|
||||
build() +
|
||||
restoreBuildArtifactCache(ctx, 'ocis-binary-amd64', 'ocis/bin/ocis') +
|
||||
ocisServer(storage, accounts_hash_difficulty) + [
|
||||
{
|
||||
'name': 'WebUIAcceptanceTests',
|
||||
'image': 'owncloudci/nodejs:11',
|
||||
'image': 'webhippie/nodejs:latest',
|
||||
'pull': 'always',
|
||||
'environment': {
|
||||
'SERVER_HOST': 'https://ocis-server:9200',
|
||||
@@ -557,7 +690,7 @@ def accountsUITests(ctx, phoenixBranch, phoenixCommit, storage = 'owncloud', acc
|
||||
'RUN_ON_OCIS': 'true',
|
||||
'OCIS_REVA_DATA_ROOT': '/srv/app/tmp/ocis/owncloud/data',
|
||||
'OCIS_SKELETON_DIR': '/srv/app/testing/data/webUISkeleton',
|
||||
'PHOENIX_CONFIG': '/drone/src/ocis/tests/config/drone/ocis-config.json',
|
||||
'PHOENIX_CONFIG': '/drone/src/tests/config/drone/ocis-config.json',
|
||||
'TEST_TAGS': 'not @skipOnOCIS and not @skip',
|
||||
'LOCAL_UPLOAD_DIR': '/uploads',
|
||||
'NODE_TLS_REJECT_UNAUTHORIZED': 0,
|
||||
@@ -618,6 +751,7 @@ def accountsUITests(ctx, phoenixBranch, phoenixCommit, storage = 'owncloud', acc
|
||||
'temp': {}
|
||||
}
|
||||
],
|
||||
'depends_on': getPipelineNames([buildOcisBinaryForTesting(ctx)]),
|
||||
'trigger': {
|
||||
'ref': [
|
||||
'refs/heads/master',
|
||||
@@ -637,7 +771,7 @@ def docker(ctx, arch):
|
||||
'arch': arch,
|
||||
},
|
||||
'steps':
|
||||
generate('ocis') +
|
||||
makeGenerate('ocis') +
|
||||
build() + [
|
||||
{
|
||||
'name': 'dryrun',
|
||||
@@ -690,7 +824,7 @@ def docker(ctx, arch):
|
||||
'temp': {},
|
||||
},
|
||||
],
|
||||
'depends_on': getDependsOnAllTestPipelines(ctx),
|
||||
'depends_on': getPipelineNames(testOcisModules(ctx) + testPipelines(ctx)),
|
||||
'trigger': {
|
||||
'ref': [
|
||||
'refs/heads/master',
|
||||
@@ -710,7 +844,7 @@ def dockerEos(ctx):
|
||||
'arch': 'amd64',
|
||||
},
|
||||
'steps':
|
||||
generate('ocis') +
|
||||
makeGenerate('ocis') +
|
||||
build() + [
|
||||
{
|
||||
'name': 'dryrun-eos-ocis',
|
||||
@@ -762,7 +896,7 @@ def dockerEos(ctx):
|
||||
'temp': {},
|
||||
},
|
||||
],
|
||||
'depends_on': getDependsOnAllTestPipelines(ctx),
|
||||
'depends_on': getPipelineNames(testOcisModules(ctx) + testPipelines(ctx)),
|
||||
'trigger': {
|
||||
'ref': [
|
||||
'refs/heads/master',
|
||||
@@ -821,14 +955,13 @@ def binary(ctx, name):
|
||||
'arch': 'amd64',
|
||||
},
|
||||
'steps':
|
||||
generate('ocis') + [
|
||||
makeGenerate('ocis') + [
|
||||
{
|
||||
'name': 'build',
|
||||
'image': 'webhippie/golang:1.14',
|
||||
'pull': 'always',
|
||||
'commands': [
|
||||
'cd ocis',
|
||||
'make release-%s' % (name),
|
||||
'make -C ocis release-%s' % (name),
|
||||
],
|
||||
'volumes': [
|
||||
{
|
||||
@@ -842,8 +975,7 @@ def binary(ctx, name):
|
||||
'image': 'webhippie/golang:1.14',
|
||||
'pull': 'always',
|
||||
'commands': [
|
||||
'cd ocis',
|
||||
'make release-finish',
|
||||
'make -C ocis release-finish',
|
||||
],
|
||||
'volumes': [
|
||||
{
|
||||
@@ -912,7 +1044,7 @@ def binary(ctx, name):
|
||||
'temp': {},
|
||||
},
|
||||
],
|
||||
'depends_on': getDependsOnAllTestPipelines(ctx),
|
||||
'depends_on': getPipelineNames(testOcisModules(ctx) + testPipelines(ctx)),
|
||||
'trigger': {
|
||||
'ref': [
|
||||
'refs/heads/master',
|
||||
@@ -1032,8 +1164,7 @@ def changelog(ctx):
|
||||
'image': 'webhippie/golang:1.14',
|
||||
'pull': 'always',
|
||||
'commands': [
|
||||
'cd ocis',
|
||||
'make changelog',
|
||||
'make -C ocis changelog',
|
||||
],
|
||||
},
|
||||
{
|
||||
@@ -1173,7 +1304,7 @@ def docs(ctx):
|
||||
generateConfigDocs = []
|
||||
|
||||
for module in config['modules']:
|
||||
generateConfigDocs += ['cd /drone/src/%s' % (module), 'make config-docs-generate']
|
||||
generateConfigDocs.append('make -C %s config-docs-generate' % (module))
|
||||
|
||||
return {
|
||||
'kind': 'pipeline',
|
||||
@@ -1184,13 +1315,6 @@ def docs(ctx):
|
||||
'arch': 'amd64',
|
||||
},
|
||||
'steps': [
|
||||
{
|
||||
'name': 'prepare',
|
||||
'image': 'owncloudci/alpine:latest',
|
||||
'commands': [
|
||||
'make docs-copy'
|
||||
],
|
||||
},
|
||||
{
|
||||
'name': 'generate-config-docs',
|
||||
'image': 'webhippie/golang:1.14',
|
||||
@@ -1203,18 +1327,18 @@ def docs(ctx):
|
||||
],
|
||||
},
|
||||
{
|
||||
'name': 'test',
|
||||
'image': 'owncloudci/hugo:0.71.0',
|
||||
'name': 'prepare',
|
||||
'image': 'owncloudci/alpine:latest',
|
||||
'commands': [
|
||||
'cd hugo',
|
||||
'hugo',
|
||||
'make -C docs docs-copy'
|
||||
],
|
||||
},
|
||||
{
|
||||
'name': 'list',
|
||||
'image': 'owncloudci/alpine:latest',
|
||||
'name': 'test',
|
||||
'image': 'owncloudci/hugo:0.71.0',
|
||||
'commands': [
|
||||
'tree hugo/public',
|
||||
'cd docs/hugo',
|
||||
'hugo',
|
||||
],
|
||||
},
|
||||
{
|
||||
@@ -1228,7 +1352,7 @@ def docs(ctx):
|
||||
'password': {
|
||||
'from_secret': 'github_token',
|
||||
},
|
||||
'pages_directory': 'docs/',
|
||||
'pages_directory': 'docs/hugo/content',
|
||||
'target_branch': 'docs',
|
||||
},
|
||||
'when': {
|
||||
@@ -1239,6 +1363,14 @@ def docs(ctx):
|
||||
},
|
||||
},
|
||||
},
|
||||
{
|
||||
'name': 'list and remove temporary files',
|
||||
'image': 'owncloudci/alpine:latest',
|
||||
'commands': [
|
||||
'tree hugo/public',
|
||||
'rm -rf docs/hugo',
|
||||
],
|
||||
},
|
||||
{
|
||||
'name': 'downstream',
|
||||
'image': 'plugins/downstream',
|
||||
@@ -1277,15 +1409,14 @@ def docs(ctx):
|
||||
},
|
||||
}
|
||||
|
||||
def generate(module):
|
||||
def makeGenerate(module):
|
||||
return [
|
||||
{
|
||||
'name': 'generate',
|
||||
'image': 'webhippie/golang:1.14',
|
||||
'pull': 'always',
|
||||
'commands': [
|
||||
'cd %s' % (module),
|
||||
'make generate',
|
||||
'make -C %s generate' % (module),
|
||||
],
|
||||
'volumes': [
|
||||
{
|
||||
@@ -1408,11 +1539,13 @@ def ocisServer(storage, accounts_hash_difficulty = 4):
|
||||
'STORAGE_DATAGATEWAY_PUBLIC_URL': 'https://ocis-server:9200/data',
|
||||
'STORAGE_USERS_DATA_SERVER_URL': 'http://ocis-server:9158/data',
|
||||
'STORAGE_FRONTEND_PUBLIC_URL': 'https://ocis-server:9200',
|
||||
'STORAGE_SHARING_USER_JSON_FILE': '/srv/app/tmp/ocis/shares.json',
|
||||
'PROXY_ENABLE_BASIC_AUTH': True,
|
||||
'PHOENIX_WEB_CONFIG': '/drone/src/ocis/tests/config/drone/ocis-config.json',
|
||||
'KONNECTD_IDENTIFIER_REGISTRATION_CONF': '/drone/src/ocis/tests/config/drone/identifier-registration.yml',
|
||||
'PHOENIX_WEB_CONFIG': '/drone/src/tests/config/drone/ocis-config.json',
|
||||
'KONNECTD_IDENTIFIER_REGISTRATION_CONF': '/drone/src/tests/config/drone/identifier-registration.yml',
|
||||
'KONNECTD_ISS': 'https://ocis-server:9200',
|
||||
'KONNECTD_TLS': 'true',
|
||||
'OCIS_LOG_LEVEL': 'warn',
|
||||
}
|
||||
|
||||
# Pass in "default" accounts_hash_difficulty to not set this environment variable.
|
||||
@@ -1496,8 +1629,7 @@ def build():
|
||||
'image': 'webhippie/golang:1.14',
|
||||
'pull': 'always',
|
||||
'commands': [
|
||||
'cd ocis',
|
||||
'make build',
|
||||
'make -C ocis build',
|
||||
],
|
||||
'volumes': [
|
||||
{
|
||||
@@ -1507,3 +1639,95 @@ def build():
|
||||
],
|
||||
},
|
||||
]
|
||||
|
||||
def genericCache(name, action, mounts, cache_key):
|
||||
rebuild = 'false'
|
||||
restore = 'false'
|
||||
if action == 'rebuild':
|
||||
rebuild = 'true'
|
||||
action = 'rebuild'
|
||||
else:
|
||||
restore = 'true'
|
||||
action = 'restore'
|
||||
|
||||
step = {
|
||||
'name': '%s_%s' %(action, name),
|
||||
'image': 'meltwater/drone-cache:v1',
|
||||
'pull': 'always',
|
||||
'environment': {
|
||||
'AWS_ACCESS_KEY_ID': {
|
||||
'from_secret': 'cache_s3_access_key',
|
||||
},
|
||||
'AWS_SECRET_ACCESS_KEY': {
|
||||
'from_secret': 'cache_s3_secret_key',
|
||||
},
|
||||
},
|
||||
'settings': {
|
||||
'endpoint': {
|
||||
'from_secret': 'cache_s3_endpoint'
|
||||
},
|
||||
'bucket': 'cache',
|
||||
'region': 'us-east-1', # not used at all, but fails if not given!
|
||||
'path_style': 'true',
|
||||
'cache_key': cache_key,
|
||||
'rebuild': rebuild,
|
||||
'restore': restore,
|
||||
'mount': mounts,
|
||||
},
|
||||
}
|
||||
return step
|
||||
|
||||
def genericCachePurge(ctx, name, cache_key):
|
||||
return {
|
||||
'kind': 'pipeline',
|
||||
'type': 'docker',
|
||||
'name': 'purge_%s' %(name),
|
||||
'platform': {
|
||||
'os': 'linux',
|
||||
'arch': 'amd64',
|
||||
},
|
||||
'steps': [
|
||||
{
|
||||
'name': 'purge-cache',
|
||||
'image': 'minio/mc',
|
||||
'failure': 'ignore',
|
||||
'environment': {
|
||||
'MC_HOST_cache': {
|
||||
'from_secret': 'cache_s3_connection_url'
|
||||
}
|
||||
},
|
||||
'commands': [
|
||||
'mc rm --recursive --force cache/cache/%s/%s' % (ctx.repo.name, cache_key),
|
||||
]
|
||||
},
|
||||
],
|
||||
'trigger': {
|
||||
'ref': [
|
||||
'refs/heads/master',
|
||||
'refs/tags/v*',
|
||||
'refs/pull/**',
|
||||
],
|
||||
'status': [
|
||||
'success',
|
||||
'failure',
|
||||
]
|
||||
},
|
||||
}
|
||||
|
||||
def genericBuildArtifactCache(ctx, name, action, path):
|
||||
name = '%s_build_artifact_cache' %(name)
|
||||
cache_key = '%s/%s/%s' % (ctx.repo.slug, ctx.build.commit + '-${DRONE_BUILD_NUMBER}', name)
|
||||
if action == "rebuild" or action == "restore":
|
||||
return genericCache(name, action, [path], cache_key)
|
||||
if action == "purge":
|
||||
return genericCachePurge(ctx, name, cache_key)
|
||||
return []
|
||||
|
||||
def restoreBuildArtifactCache(ctx, name, path):
|
||||
return [genericBuildArtifactCache(ctx, name, 'restore', path)]
|
||||
|
||||
def rebuildBuildArtifactCache(ctx, name, path):
|
||||
return [genericBuildArtifactCache(ctx, name, 'rebuild', path)]
|
||||
|
||||
def purgeBuildArtifactCache(ctx, name):
|
||||
return genericBuildArtifactCache(ctx, name, 'purge', [])
|
||||
@@ -0,0 +1 @@
|
||||
/onlyoffice/ @LukasHirt
|
||||
+9
-3
@@ -2,7 +2,7 @@
|
||||
|
||||
ocis/config/identifier-registration.yaml
|
||||
*/bin
|
||||
*/dist
|
||||
dist/
|
||||
/hugo
|
||||
*.key
|
||||
*crt
|
||||
@@ -11,7 +11,13 @@ node_modules/
|
||||
|
||||
.idea
|
||||
|
||||
*/yarn-error.log
|
||||
yarn-error.log
|
||||
|
||||
# Konnectd
|
||||
konnectd/assets/identifier
|
||||
konnectd/assets/identifier
|
||||
|
||||
# Composer - used for API acceptance tests
|
||||
composer.lock
|
||||
vendor
|
||||
vendor-bin/**/vendor
|
||||
vendor-bin/**/composer.lock
|
||||
+264
@@ -2,6 +2,7 @@
|
||||
|
||||
## Summary
|
||||
|
||||
* Bugfix - Enable scrolling in accounts list: [#909](https://github.com/owncloud/ocis/pull/909)
|
||||
* Bugfix - Add missing env vars to docker compose: [#392](https://github.com/owncloud/ocis/pull/392)
|
||||
* Bugfix - Don't enforce empty external apps slice: [#473](https://github.com/owncloud/ocis/pull/473)
|
||||
* Bugfix - Lower Bound was not working for the cs3 api index implementation: [#741](https://github.com/owncloud/ocis/pull/741)
|
||||
@@ -11,18 +12,23 @@
|
||||
* Bugfix - Fix choose account dialogue: [#846](https://github.com/owncloud/ocis/pull/846)
|
||||
* Bugfix - Fix id or username query handling: [#745](https://github.com/owncloud/ocis/pull/745)
|
||||
* Bugfix - Fix konnectd build: [#809](https://github.com/owncloud/ocis/pull/809)
|
||||
* Bugfix - Fix path of files shared with me in ocs api: [#204](https://github.com/owncloud/product/issues/204)
|
||||
* Bugfix - Use micro default client: [#718](https://github.com/owncloud/ocis/pull/718)
|
||||
* Bugfix - Allow consent-prompt with switch-account: [#788](https://github.com/owncloud/ocis/pull/788)
|
||||
* Bugfix - Mint token with uid and gid: [#737](https://github.com/owncloud/ocis/pull/737)
|
||||
* Bugfix - Serve index.html for directories: [#912](https://github.com/owncloud/ocis/pull/912)
|
||||
* Bugfix - Don't create account if id/mail/username already taken: [#709](https://github.com/owncloud/ocis/pull/709)
|
||||
* Bugfix - Fix director selection in proxy: [#521](https://github.com/owncloud/ocis/pull/521)
|
||||
* Bugfix - Build docker images with alpine:latest instead of alpine:edge: [#416](https://github.com/owncloud/ocis/pull/416)
|
||||
* Change - Accounts UI shows message when no permissions: [#656](https://github.com/owncloud/ocis/pull/656)
|
||||
* Change - Cache password validation: [#958](https://github.com/owncloud/ocis/pull/958)
|
||||
* Change - Filesystem based index: [#709](https://github.com/owncloud/ocis/pull/709)
|
||||
* Change - Rebuild index command for accounts: [#748](https://github.com/owncloud/ocis/pull/748)
|
||||
* Change - Add the thumbnails command: [#156](https://github.com/owncloud/ocis/issues/156)
|
||||
* Change - Use bcrypt to hash the user passwords: [#510](https://github.com/owncloud/ocis/issues/510)
|
||||
* Change - Replace the library which scales the images: [#910](https://github.com/owncloud/ocis/pull/910)
|
||||
* Change - Choose disk or cs3 storage for accounts and groups: [#623](https://github.com/owncloud/ocis/pull/623)
|
||||
* Change - Enable OpenID dynamic client registration: [#811](https://github.com/owncloud/ocis/issues/811)
|
||||
* Change - Integrate import command from ocis-migration: [#249](https://github.com/owncloud/ocis/pull/249)
|
||||
* Change - Improve reva service descriptions: [#536](https://github.com/owncloud/ocis/pull/536)
|
||||
* Change - Initial release of basic version: [#2](https://github.com/owncloud/ocis/issues/2)
|
||||
@@ -36,8 +42,10 @@
|
||||
* Change - Account management permissions for Admin role: [#124](https://github.com/owncloud/product/issues/124)
|
||||
* Change - Update phoenix to v0.18.0: [#651](https://github.com/owncloud/ocis/pull/651)
|
||||
* Change - Default apps in ownCloud Web: [#688](https://github.com/owncloud/ocis/pull/688)
|
||||
* Change - Proxy allow insecure upstreams: [#1007](https://github.com/owncloud/ocis/pull/1007)
|
||||
* Change - Make ocis-settings available: [#287](https://github.com/owncloud/ocis/pull/287)
|
||||
* Change - Start ocis-proxy with the ocis server command: [#119](https://github.com/owncloud/ocis/issues/119)
|
||||
* Change - Theme welcome and choose account pages: [#887](https://github.com/owncloud/ocis/pull/887)
|
||||
* Change - Bring oC theme: [#698](https://github.com/owncloud/ocis/pull/698)
|
||||
* Change - Unify Configuration Parsing: [#675](https://github.com/owncloud/ocis/pull/675)
|
||||
* Change - Update phoenix to v0.20.0: [#674](https://github.com/owncloud/ocis/pull/674)
|
||||
@@ -45,14 +53,20 @@
|
||||
* Change - Update phoenix to v0.22.0: [#757](https://github.com/owncloud/ocis/pull/757)
|
||||
* Change - Update phoenix to v0.23.0: [#785](https://github.com/owncloud/ocis/pull/785)
|
||||
* Change - Update phoenix to v0.24.0: [#817](https://github.com/owncloud/ocis/pull/817)
|
||||
* Change - Update phoenix to v0.25.0: [#868](https://github.com/owncloud/ocis/pull/868)
|
||||
* Change - Update phoenix to v0.26.0: [#935](https://github.com/owncloud/ocis/pull/935)
|
||||
* Change - Update phoenix to v0.27.0: [#943](https://github.com/owncloud/ocis/pull/943)
|
||||
* Change - Update phoenix to v0.28.0: [#1027](https://github.com/owncloud/ocis/pull/1027)
|
||||
* Change - Update reva config: [#336](https://github.com/owncloud/ocis/pull/336)
|
||||
* Change - Clarify storage driver env vars: [#729](https://github.com/owncloud/ocis/pull/729)
|
||||
* Change - Settings and accounts appear in the user menu: [#656](https://github.com/owncloud/ocis/pull/656)
|
||||
* Change - Caching for static web assets: [#866](https://github.com/owncloud/ocis/pull/866)
|
||||
* Enhancement - Add tracing to the accounts service: [#1016](https://github.com/owncloud/ocis/issues/1016)
|
||||
* Enhancement - Add the accounts service: [#244](https://github.com/owncloud/product/issues/244)
|
||||
* Enhancement - Add basic auth option: [#627](https://github.com/owncloud/ocis/pull/627)
|
||||
* Enhancement - Document how to run OCIS on top of EOS: [#172](https://github.com/owncloud/ocis/pull/172)
|
||||
* Enhancement - Add the glauth service: [#244](https://github.com/owncloud/product/issues/244)
|
||||
* Enhancement - Add k6: [#941](https://github.com/owncloud/ocis/pull/941)
|
||||
* Enhancement - Add the konnectd service: [#244](https://github.com/owncloud/product/issues/244)
|
||||
* Enhancement - Add the ocis-phoenix service: [#244](https://github.com/owncloud/product/issues/244)
|
||||
* Enhancement - Add the ocis-pkg package: [#244](https://github.com/owncloud/product/issues/244)
|
||||
@@ -65,18 +79,37 @@
|
||||
* Enhancement - Add a command to list the versions of running instances: [#226](https://github.com/owncloud/product/issues/226)
|
||||
* Enhancement - Add the webdav service: [#244](https://github.com/owncloud/product/issues/244)
|
||||
* Enhancement - Better adopt Go-Micro: [#840](https://github.com/owncloud/ocis/pull/840)
|
||||
* Enhancement - Add permission check when assigning and removing roles: [#879](https://github.com/owncloud/ocis/issues/879)
|
||||
* Enhancement - Create OnlyOffice extension: [#857](https://github.com/owncloud/ocis/pull/857)
|
||||
* Enhancement - Show basic-auth warning only once: [#886](https://github.com/owncloud/ocis/pull/886)
|
||||
* Enhancement - Add glauth fallback backend: [#649](https://github.com/owncloud/ocis/pull/649)
|
||||
* Enhancement - Tidy dependencies: [#845](https://github.com/owncloud/ocis/pull/845)
|
||||
* Enhancement - Launch a storage to store ocis-metadata: [#602](https://github.com/owncloud/ocis/pull/602)
|
||||
* Enhancement - Add a version command to ocis: [#915](https://github.com/owncloud/ocis/pull/915)
|
||||
* Enhancement - Create a proxy access-log: [#889](https://github.com/owncloud/ocis/pull/889)
|
||||
* Enhancement - Cache userinfo in proxy: [#877](https://github.com/owncloud/ocis/pull/877)
|
||||
* Enhancement - Update reva to v1.4.1-0.20201125144025-57da0c27434c: [#1320](https://github.com/cs3org/reva/pull/1320)
|
||||
* Enhancement - Simplify tracing config: [#92](https://github.com/owncloud/product/issues/92)
|
||||
* Enhancement - Update glauth to dev fd3ac7e4bbdc93578655d9a08d8e23f105aaa5b2: [#834](https://github.com/owncloud/ocis/pull/834)
|
||||
* Enhancement - Update glauth to dev 4f029234b2308: [#786](https://github.com/owncloud/ocis/pull/786)
|
||||
* Enhancement - Update konnectd to v0.33.8: [#744](https://github.com/owncloud/ocis/pull/744)
|
||||
* Enhancement - Update reva to v1.4.1-0.20201123062044-b2c4af4e897d: [#823](https://github.com/owncloud/ocis/pull/823)
|
||||
* Enhancement - Update reva to v1.4.1-0.20201130061320-ac85e68e0600: [#980](https://github.com/owncloud/ocis/pull/980)
|
||||
* Enhancement - Update reva to cdb3d6688da5: [#748](https://github.com/owncloud/ocis/pull/748)
|
||||
* Enhancement - Update reva to dd3a8c0f38: [#725](https://github.com/owncloud/ocis/pull/725)
|
||||
* Enhancement - Update reva to v1.4.1-0.20201127111856-e6a6212c1b7b: [#971](https://github.com/owncloud/ocis/pull/971)
|
||||
* Enhancement - Add www-authenticate based on user agent: [#1009](https://github.com/owncloud/ocis/pull/1009)
|
||||
|
||||
## Details
|
||||
|
||||
* Bugfix - Enable scrolling in accounts list: [#909](https://github.com/owncloud/ocis/pull/909)
|
||||
|
||||
Tags: accounts
|
||||
|
||||
We've fixed the accounts list to enable scrolling.
|
||||
|
||||
https://github.com/owncloud/ocis/pull/909
|
||||
|
||||
* Bugfix - Add missing env vars to docker compose: [#392](https://github.com/owncloud/ocis/pull/392)
|
||||
|
||||
Tags: docker
|
||||
@@ -156,6 +189,13 @@
|
||||
|
||||
https://github.com/owncloud/ocis/pull/809
|
||||
|
||||
* Bugfix - Fix path of files shared with me in ocs api: [#204](https://github.com/owncloud/product/issues/204)
|
||||
|
||||
The path of files shared with me using the ocs api was pointing to an incorrect location.
|
||||
|
||||
https://github.com/owncloud/product/issues/204
|
||||
https://github.com/owncloud/ocis/pull/994
|
||||
|
||||
* Bugfix - Use micro default client: [#718](https://github.com/owncloud/ocis/pull/718)
|
||||
|
||||
Tags: glauth
|
||||
@@ -183,6 +223,14 @@
|
||||
|
||||
https://github.com/owncloud/ocis/pull/737
|
||||
|
||||
* Bugfix - Serve index.html for directories: [#912](https://github.com/owncloud/ocis/pull/912)
|
||||
|
||||
The static middleware in ocis-pkg now serves index.html instead of returning 404 on paths with
|
||||
a trailing `/`.
|
||||
|
||||
https://github.com/owncloud/ocis-pkg/issues/63
|
||||
https://github.com/owncloud/ocis/pull/912
|
||||
|
||||
* Bugfix - Don't create account if id/mail/username already taken: [#709](https://github.com/owncloud/ocis/pull/709)
|
||||
|
||||
Tags: accounts
|
||||
@@ -218,6 +266,15 @@
|
||||
|
||||
https://github.com/owncloud/ocis/pull/656
|
||||
|
||||
* Change - Cache password validation: [#958](https://github.com/owncloud/ocis/pull/958)
|
||||
|
||||
Tags: accounts
|
||||
|
||||
The password validity check for requests like `login eq '%s' and password eq '%s'` is now cached
|
||||
for 10 minutes. This improves the performance for basic auth requests.
|
||||
|
||||
https://github.com/owncloud/ocis/pull/958
|
||||
|
||||
* Change - Filesystem based index: [#709](https://github.com/owncloud/ocis/pull/709)
|
||||
|
||||
Tags: accounts, storage
|
||||
@@ -263,6 +320,12 @@
|
||||
|
||||
https://github.com/owncloud/ocis/issues/510
|
||||
|
||||
* Change - Replace the library which scales the images: [#910](https://github.com/owncloud/ocis/pull/910)
|
||||
|
||||
The library went out of support. Also did some refactoring of the thumbnails service code.
|
||||
|
||||
https://github.com/owncloud/ocis/pull/910
|
||||
|
||||
* Change - Choose disk or cs3 storage for accounts and groups: [#623](https://github.com/owncloud/ocis/pull/623)
|
||||
|
||||
Tags: accounts
|
||||
@@ -273,6 +336,13 @@
|
||||
|
||||
https://github.com/owncloud/ocis/pull/623
|
||||
|
||||
* Change - Enable OpenID dynamic client registration: [#811](https://github.com/owncloud/ocis/issues/811)
|
||||
|
||||
Enable OpenID dynamic client registration
|
||||
|
||||
https://github.com/owncloud/ocis/issues/811
|
||||
https://github.com/owncloud/ocis/pull/813
|
||||
|
||||
* Change - Integrate import command from ocis-migration: [#249](https://github.com/owncloud/ocis/pull/249)
|
||||
|
||||
Tags: migration
|
||||
@@ -416,6 +486,15 @@
|
||||
|
||||
https://github.com/owncloud/ocis/pull/688
|
||||
|
||||
* Change - Proxy allow insecure upstreams: [#1007](https://github.com/owncloud/ocis/pull/1007)
|
||||
|
||||
Tags: proxy
|
||||
|
||||
We can now configure the proxy if insecure upstream servers are allowed. This was added since
|
||||
you need to disable certificate checks fore some situations like testing.
|
||||
|
||||
https://github.com/owncloud/ocis/pull/1007
|
||||
|
||||
* Change - Make ocis-settings available: [#287](https://github.com/owncloud/ocis/pull/287)
|
||||
|
||||
Tags: settings
|
||||
@@ -435,6 +514,15 @@
|
||||
https://github.com/owncloud/ocis/issues/119
|
||||
https://github.com/owncloud/ocis/issues/136
|
||||
|
||||
* Change - Theme welcome and choose account pages: [#887](https://github.com/owncloud/ocis/pull/887)
|
||||
|
||||
Tags: konnectd
|
||||
|
||||
We've themed the konnectd pages Welcome and Choose account. All text has a white color now to be
|
||||
easily readable on the dark background.
|
||||
|
||||
https://github.com/owncloud/ocis/pull/887
|
||||
|
||||
* Change - Bring oC theme: [#698](https://github.com/owncloud/ocis/pull/698)
|
||||
|
||||
Tags: konnectd
|
||||
@@ -504,6 +592,46 @@
|
||||
https://github.com/owncloud/ocis/pull/817
|
||||
https://github.com/owncloud/phoenix/releases/tag/v0.24.0
|
||||
|
||||
* Change - Update phoenix to v0.25.0: [#868](https://github.com/owncloud/ocis/pull/868)
|
||||
|
||||
Tags: web
|
||||
|
||||
We updated phoenix to v0.25.0. Please refer to the changelog (linked) for details on the
|
||||
phoenix release.
|
||||
|
||||
https://github.com/owncloud/ocis/pull/868
|
||||
https://github.com/owncloud/phoenix/releases/tag/v0.25.0
|
||||
|
||||
* Change - Update phoenix to v0.26.0: [#935](https://github.com/owncloud/ocis/pull/935)
|
||||
|
||||
Tags: web
|
||||
|
||||
We updated phoenix to v0.26.0. Please refer to the changelog (linked) for details on the
|
||||
phoenix release.
|
||||
|
||||
https://github.com/owncloud/ocis/pull/935
|
||||
https://github.com/owncloud/phoenix/releases/tag/v0.26.0
|
||||
|
||||
* Change - Update phoenix to v0.27.0: [#943](https://github.com/owncloud/ocis/pull/943)
|
||||
|
||||
Tags: web
|
||||
|
||||
We updated phoenix to v0.27.0. Please refer to the changelog (linked) for details on the
|
||||
phoenix release.
|
||||
|
||||
https://github.com/owncloud/ocis/pull/943
|
||||
https://github.com/owncloud/phoenix/releases/tag/v0.27.0
|
||||
|
||||
* Change - Update phoenix to v0.28.0: [#1027](https://github.com/owncloud/ocis/pull/1027)
|
||||
|
||||
Tags: web
|
||||
|
||||
We updated phoenix to v0.28.0. Please refer to the changelog (linked) for details on the
|
||||
phoenix release.
|
||||
|
||||
https://github.com/owncloud/ocis/pull/1027
|
||||
https://github.com/owncloud/phoenix/releases/tag/v0.28.0
|
||||
|
||||
* Change - Update reva config: [#336](https://github.com/owncloud/ocis/pull/336)
|
||||
|
||||
* EOS homes are not configured with an enable-flag anymore, but with a dedicated storage driver.
|
||||
@@ -540,6 +668,13 @@
|
||||
cache invalidation.
|
||||
|
||||
https://github.com/owncloud/ocis/pull/866
|
||||
https://github.com/owncloud/ocis/pull/934
|
||||
|
||||
* Enhancement - Add tracing to the accounts service: [#1016](https://github.com/owncloud/ocis/issues/1016)
|
||||
|
||||
Added tracing to the accounts service.
|
||||
|
||||
https://github.com/owncloud/ocis/issues/1016
|
||||
|
||||
* Enhancement - Add the accounts service: [#244](https://github.com/owncloud/product/issues/244)
|
||||
|
||||
@@ -628,6 +763,15 @@
|
||||
|
||||
https://github.com/owncloud/product/issues/244
|
||||
|
||||
* Enhancement - Add k6: [#941](https://github.com/owncloud/ocis/pull/941)
|
||||
|
||||
Tags: tests
|
||||
|
||||
Add k6 as a performance testing framework
|
||||
|
||||
https://github.com/owncloud/ocis/pull/941
|
||||
https://github.com/owncloud/ocis/pull/983
|
||||
|
||||
* Enhancement - Add the konnectd service: [#244](https://github.com/owncloud/product/issues/244)
|
||||
|
||||
Tags: konnectd
|
||||
@@ -1535,6 +1679,28 @@
|
||||
|
||||
https://github.com/owncloud/ocis/pull/840
|
||||
|
||||
* Enhancement - Add permission check when assigning and removing roles: [#879](https://github.com/owncloud/ocis/issues/879)
|
||||
|
||||
Everyone could add and remove roles from users. Added a new permission and a check so that only
|
||||
users with the role management permissions can assign and unassign roles.
|
||||
|
||||
https://github.com/owncloud/ocis/issues/879
|
||||
|
||||
* Enhancement - Create OnlyOffice extension: [#857](https://github.com/owncloud/ocis/pull/857)
|
||||
|
||||
Tags: OnlyOffice
|
||||
|
||||
We've created an OnlyOffice extension which enables users to create and edit docx documents
|
||||
and open spreadsheets and presentations.
|
||||
|
||||
https://github.com/owncloud/ocis/pull/857
|
||||
|
||||
* Enhancement - Show basic-auth warning only once: [#886](https://github.com/owncloud/ocis/pull/886)
|
||||
|
||||
Show basic-auth warning only on startup instead on every request.
|
||||
|
||||
https://github.com/owncloud/ocis/pull/886
|
||||
|
||||
* Enhancement - Add glauth fallback backend: [#649](https://github.com/owncloud/ocis/pull/649)
|
||||
|
||||
We introduced the `fallback-datastore` config option and the corresponding options to allow
|
||||
@@ -1569,6 +1735,36 @@
|
||||
|
||||
https://github.com/owncloud/ocis/pull/602
|
||||
|
||||
* Enhancement - Add a version command to ocis: [#915](https://github.com/owncloud/ocis/pull/915)
|
||||
|
||||
The version command was only implemented in the extensions. This adds the version command to
|
||||
ocis to list all services in the ocis namespace.
|
||||
|
||||
https://github.com/owncloud/ocis/pull/915
|
||||
|
||||
* Enhancement - Create a proxy access-log: [#889](https://github.com/owncloud/ocis/pull/889)
|
||||
|
||||
Logs client access at the proxy
|
||||
|
||||
https://github.com/owncloud/ocis/pull/889
|
||||
|
||||
* Enhancement - Cache userinfo in proxy: [#877](https://github.com/owncloud/ocis/pull/877)
|
||||
|
||||
Tags: proxy
|
||||
|
||||
We introduced caching for the userinfo response. The token expiration is used for cache
|
||||
invalidation if available. Otherwise we fall back to a preconfigured TTL (default 10
|
||||
seconds).
|
||||
|
||||
https://github.com/owncloud/ocis/pull/877
|
||||
|
||||
* Enhancement - Update reva to v1.4.1-0.20201125144025-57da0c27434c: [#1320](https://github.com/cs3org/reva/pull/1320)
|
||||
|
||||
Mostly to bring fixes to pressing changes.
|
||||
|
||||
https://github.com/cs3org/reva/pull/1320
|
||||
https://github.com/cs3org/reva/pull/1338
|
||||
|
||||
* Enhancement - Simplify tracing config: [#92](https://github.com/owncloud/product/issues/92)
|
||||
|
||||
We now apply the oCIS tracing config to all services which have tracing. With this it is possible
|
||||
@@ -1613,6 +1809,37 @@
|
||||
|
||||
https://github.com/owncloud/ocis/pull/744
|
||||
|
||||
* Enhancement - Update reva to v1.4.1-0.20201123062044-b2c4af4e897d: [#823](https://github.com/owncloud/ocis/pull/823)
|
||||
|
||||
* Refactor the uploading files workflow from various clients [cs3org/reva#1285](https://github.com/cs3org/reva/pull/1285), [cs3org/reva#1314](https://github.com/cs3org/reva/pull/1314)
|
||||
* [OCS] filter share with me requests [cs3org/reva#1302](https://github.com/cs3org/reva/pull/1302)
|
||||
* Fix listing shares for nonexisting path [cs3org/reva#1316](https://github.com/cs3org/reva/pull/1316)
|
||||
* prevent nil pointer when listing shares [cs3org/reva#1317](https://github.com/cs3org/reva/pull/1317)
|
||||
* Sharee retrieves the information about a share -but gets response containing all the shares [owncloud/ocis-reva#260](https://github.com/owncloud/ocis-reva/issues/260)
|
||||
* Deleting a public link after renaming a file [owncloud/ocis-reva#311](https://github.com/owncloud/ocis-reva/issues/311)
|
||||
* Avoid log spam [cs3org/reva#1323](https://github.com/cs3org/reva/pull/1323), [cs3org/reva#1324](https://github.com/cs3org/reva/pull/1324)
|
||||
* Fix trashbin [cs3org/reva#1326](https://github.com/cs3org/reva/pull/1326)
|
||||
|
||||
https://github.com/owncloud/ocis-reva/issues/260
|
||||
https://github.com/owncloud/ocis-reva/issues/311
|
||||
https://github.com/owncloud/ocis/pull/823
|
||||
https://github.com/cs3org/reva/pull/1285
|
||||
https://github.com/cs3org/reva/pull/1302
|
||||
https://github.com/cs3org/reva/pull/1314
|
||||
https://github.com/cs3org/reva/pull/1316
|
||||
https://github.com/cs3org/reva/pull/1317
|
||||
https://github.com/cs3org/reva/pull/1323
|
||||
https://github.com/cs3org/reva/pull/1324
|
||||
https://github.com/cs3org/reva/pull/1326
|
||||
|
||||
* Enhancement - Update reva to v1.4.1-0.20201130061320-ac85e68e0600: [#980](https://github.com/owncloud/ocis/pull/980)
|
||||
|
||||
* Fix move operation in ocis storage driver [csorg/reva#1343](https://github.com/cs3org/reva/pull/1343)
|
||||
|
||||
https://github.com/owncloud/ocis/issues/975
|
||||
https://github.com/owncloud/ocis/pull/980
|
||||
https://github.com/cs3org/reva/pull/1343
|
||||
|
||||
* Enhancement - Update reva to cdb3d6688da5: [#748](https://github.com/owncloud/ocis/pull/748)
|
||||
|
||||
* let the gateway filter invalid references
|
||||
@@ -1626,3 +1853,40 @@
|
||||
|
||||
https://github.com/owncloud/ocis/pull/725
|
||||
https://github.com/cs3org/reva/pull/1264
|
||||
|
||||
* Enhancement - Update reva to v1.4.1-0.20201127111856-e6a6212c1b7b: [#971](https://github.com/owncloud/ocis/pull/971)
|
||||
|
||||
Tags: reva
|
||||
|
||||
* Fix capabilities response for multiple client versions #1331 [cs3org/reva#1331](https://github.com/cs3org/reva/pull/1331)
|
||||
* Fix home storage redirect for remote.php/dav/files [cs3org/reva#1342](https://github.com/cs3org/reva/pull/1342)
|
||||
|
||||
https://github.com/owncloud/ocis/pull/971
|
||||
https://github.com/cs3org/reva/pull/1331
|
||||
https://github.com/cs3org/reva/pull/1342
|
||||
|
||||
* Enhancement - Add www-authenticate based on user agent: [#1009](https://github.com/owncloud/ocis/pull/1009)
|
||||
|
||||
Tags: reva, proxy
|
||||
|
||||
We now comply with HTTP spec by adding Www-Authenticate headers on every `401` request.
|
||||
Furthermore, we not only take care of such a thing at the Proxy but also Reva will take care of it.
|
||||
In addition, we now are able to lock-in a set of User-Agent to specific challenges.
|
||||
|
||||
Admins can use this feature by configuring OCIS + Reva following this approach:
|
||||
|
||||
``` STORAGE_FRONTEND_MIDDLEWARE_AUTH_CREDENTIALS_BY_USER_AGENT="mirall:basic,
|
||||
Mozilla/5.0 (Macintosh; Intel Mac OS X 10.15; rv:83.0) Gecko/20100101
|
||||
Firefox/83.0:bearer" \
|
||||
PROXY_MIDDLEWARE_AUTH_CREDENTIALS_BY_USER_AGENT="mirall:basic, Mozilla/5.0
|
||||
(Macintosh; Intel Mac OS X 10.15; rv:83.0) Gecko/20100101 Firefox/83.0:bearer" \
|
||||
PROXY_ENABLE_BASIC_AUTH=true \ go run cmd/ocis/main.go server ```
|
||||
|
||||
We introduced two new environment variables:
|
||||
|
||||
`STORAGE_FRONTEND_MIDDLEWARE_AUTH_CREDENTIALS_BY_USER_AGENT` as well as
|
||||
`PROXY_MIDDLEWARE_AUTH_CREDENTIALS_BY_USER_AGENT`, The reason they have the same value
|
||||
is not to rely on the os env on a distributed environment, so in redundancy we trust. They both
|
||||
configure the same on the backend storage and OCIS Proxy.
|
||||
|
||||
https://github.com/owncloud/ocis/pull/1009
|
||||
+2
-2
@@ -13,7 +13,7 @@ WORKDIR /ocis/ocis
|
||||
RUN make clean generate build
|
||||
|
||||
|
||||
FROM amd64/alpine:3
|
||||
FROM alpine:3
|
||||
|
||||
RUN apk update && \
|
||||
apk upgrade && \
|
||||
@@ -29,4 +29,4 @@ LABEL maintainer="ownCloud GmbH <devops@owncloud.com>" \
|
||||
ENTRYPOINT ["/usr/bin/ocis"]
|
||||
CMD ["server"]
|
||||
|
||||
COPY --from=build /ocis/ocis/bin/ocis /usr/bin/ocis
|
||||
COPY --from=build /ocis/ocis/bin/ocis /usr/bin/ocis
|
||||
@@ -1,41 +1,18 @@
|
||||
SHELL := bash
|
||||
NAME := ocis
|
||||
IMPORT := github.com/owncloud/$(NAME)
|
||||
HUGO := hugo
|
||||
|
||||
.PHONY: all
|
||||
all: build
|
||||
.PHONY: help
|
||||
help:
|
||||
@echo "Please use 'make <target>' where <target> is one of the following:"
|
||||
@echo
|
||||
@echo -e "Testing:\n"
|
||||
@echo -e "make test-acceptance-api\trun API acceptance tests"
|
||||
@echo -e "make clean-tests\t\tdelete API tests framework dependencies"
|
||||
@echo
|
||||
@echo -e "See the Makefile in the ocis folder for other build and test targets"
|
||||
|
||||
.PHONY: sync
|
||||
sync:
|
||||
go mod download
|
||||
|
||||
.PHONY: clean
|
||||
clean:
|
||||
rm -rf $(HUGO)
|
||||
|
||||
.PHONY: docs-copy
|
||||
docs-copy:
|
||||
mkdir -p $(HUGO); \
|
||||
mkdir -p $(HUGO)/content/; \
|
||||
cd $(HUGO); \
|
||||
git init; \
|
||||
git remote rm origin; \
|
||||
git remote add origin https://github.com/owncloud/owncloud.github.io; \
|
||||
git fetch --depth=1; \
|
||||
git checkout origin/source -f; \
|
||||
rsync -ax --delete ../docs/ content/; \
|
||||
|
||||
.PHONY: config-docs-generate
|
||||
config-docs-generate:
|
||||
go run github.com/owncloud/flaex >| docs/configuration.md
|
||||
|
||||
.PHONY: docs-build
|
||||
docs-build:
|
||||
cd $(HUGO); hugo
|
||||
|
||||
.PHONY: docs
|
||||
docs: docs-copy docs-build
|
||||
.PHONY: clean-tests
|
||||
clean-tests:
|
||||
rm -Rf vendor-bin/**/vendor vendor-bin/**/composer.lock
|
||||
|
||||
BEHAT_BIN=vendor-bin/behat/vendor/bin/behat
|
||||
|
||||
|
||||
@@ -5,97 +5,22 @@
|
||||
[](https://www.codacy.com/gh/owncloud/ocis/dashboard?utm_source=github.com&utm_medium=referral&utm_content=owncloud/ocis&utm_campaign=Badge_Grade)
|
||||
[](https://www.codacy.com/gh/owncloud/ocis/dashboard?utm_source=github.com&utm_medium=referral&utm_content=owncloud/ocis&utm_campaign=Badge_Coverage)
|
||||
[](http://godoc.org/github.com/owncloud/ocis)
|
||||
[](http://goreportcard.com/report/github.com/owncloud/ocis)
|
||||
[](http://microbadger.com/images/owncloud/ocis "Get your own image badge on microbadger.com")
|
||||
[](https://goreportcard.com/report/github.com/owncloud/ocis)
|
||||
[](https://hub.docker.com/r/owncloud/ocis "oCIS docker image")
|
||||
|
||||
**This project is under heavy development, it's not in a working state yet!**
|
||||
**ownCloud Infinite Scale is currently in a technical preview state. It will be subject to a lot of changes and is not yet ready for general production deployments.**
|
||||
|
||||
## Install
|
||||
## Run ownCloud Infinite Scale
|
||||
|
||||
You can download prebuilt binaries from the GitHub releases or from our [download mirrors](http://download.owncloud.com/ocis/ocis/). For instructions how to install this on your platform you should take a look at our [documentation](https://owncloud.github.io/ocis/)
|
||||
Please see [Getting Started](https://owncloud.github.io/ocis/getting-started/)
|
||||
|
||||
## Development
|
||||
|
||||
Make sure you have a working Go environment, for further reference or a guide take a look at the [install instructions](http://golang.org/doc/install.html). This project requires Go >= v1.13.
|
||||
|
||||
```console
|
||||
git clone https://github.com/owncloud/ocis.git
|
||||
cd ocis/ocis
|
||||
|
||||
make generate build
|
||||
|
||||
./bin/ocis -h
|
||||
```
|
||||
|
||||
### Folder Structure
|
||||
|
||||
This is a monorepo for multiple microservices. The individual services are located in subfolders like `accounts`. The code in the `ocis` subfolder aggregates all the go modules and implements commands to start the individual services or the full-stack server with a default config. It also builds a single binary and docker images.
|
||||
|
||||
## Prerequisites
|
||||
|
||||
### Redis server
|
||||
|
||||
You will need to start a redis server as a cache. The ownCloud storage driver currently will try to connect to the default port.
|
||||
A quick way to start one for testing is using this docker instance: `docker run -e REDIS_DATABASES=1 -p 6379:6379 -d webhippie/redis:latest`
|
||||
|
||||
### Root storage
|
||||
|
||||
To prepare the root storage you should fill it with two folders. They are necessary for resolving the home and ownCloud storages. This is subject to change.
|
||||
|
||||
```console
|
||||
mkdir -p /var/tmp/reva/root/{home,oc}
|
||||
```
|
||||
|
||||
## Quickstart
|
||||
|
||||
- Make sure that the binary was built with the above steps.
|
||||
- Now start all services with the following command
|
||||
|
||||
```console
|
||||
./bin/ocis server
|
||||
```
|
||||
|
||||
- Open <https://localhost:9200>
|
||||
- Accept the self-signed certificate (it is regenerated every time the server starts)
|
||||
- Login using one of the demo accounts:
|
||||
|
||||
```console
|
||||
einstein:relativity
|
||||
marie:radioactivity
|
||||
richard:superfluidity
|
||||
```
|
||||
|
||||
## Create a local Docker image for testing
|
||||
|
||||
Navigate into the root folder of the repository and execute
|
||||
|
||||
```console
|
||||
docker build -t owncloud/ocis:dev .
|
||||
```
|
||||
|
||||
To run it, execute
|
||||
|
||||
```console
|
||||
docker run --rm -ti owncloud/ocis:dev
|
||||
```
|
||||
|
||||
The image can be tagged however you like, just make sure you run the right one then
|
||||
|
||||
## Running single extensions
|
||||
|
||||
The list of available extensions can be found in the "Extensions" section when running `./bin/ocis`.
|
||||
|
||||
For example to run the "phoenix" extension:
|
||||
|
||||
```console
|
||||
./bin/ocis --log-level debug phoenix
|
||||
```
|
||||
|
||||
⚠ do not use the **run** subcommand for running extensions
|
||||
Please see [Development - Getting Started](https://owncloud.github.io/ocis/development/getting-started/)
|
||||
|
||||
## Security
|
||||
|
||||
If you find a security issue please contact [security@owncloud.com](mailto:security@owncloud.com) first.
|
||||
If you find a security issue please contact [security@owncloud.com](mailto:security@owncloud.com) first
|
||||
|
||||
## Contributing
|
||||
|
||||
|
||||
+8
-4
@@ -3,8 +3,11 @@ module github.com/owncloud/ocis/accounts
|
||||
go 1.13
|
||||
|
||||
require (
|
||||
github.com/cs3org/go-cs3apis v0.0.0-20201007120910-416ed6cf8b00
|
||||
github.com/cs3org/reva v1.3.1-0.20201023144216-cdb3d6688da5
|
||||
contrib.go.opencensus.io/exporter/jaeger v0.2.1
|
||||
contrib.go.opencensus.io/exporter/ocagent v0.6.0
|
||||
contrib.go.opencensus.io/exporter/zipkin v0.1.1
|
||||
github.com/cs3org/go-cs3apis v0.0.0-20201118090759-87929f5bae21
|
||||
github.com/cs3org/reva v1.4.1-0.20201203135805-655c9babdc3f
|
||||
github.com/go-chi/chi v4.1.2+incompatible
|
||||
github.com/go-chi/render v1.0.1
|
||||
github.com/gofrs/uuid v3.3.0+incompatible
|
||||
@@ -14,6 +17,7 @@ require (
|
||||
github.com/micro/go-micro/v2 v2.9.1
|
||||
github.com/oklog/run v1.1.0
|
||||
github.com/olekukonko/tablewriter v0.0.4
|
||||
github.com/openzipkin/zipkin-go v0.2.2
|
||||
github.com/owncloud/ocis/ocis-pkg v0.0.0-20201103111659-46bf133a3c63
|
||||
github.com/owncloud/ocis/settings v0.0.0-20200918114005-1a0ddd2190ee
|
||||
github.com/prometheus/client_golang v1.7.1
|
||||
@@ -21,16 +25,16 @@ require (
|
||||
github.com/rs/zerolog v1.20.0
|
||||
github.com/spf13/viper v1.7.0
|
||||
github.com/stretchr/testify v1.6.1
|
||||
go.opencensus.io v0.22.5
|
||||
golang.org/x/crypto v0.0.0-20200709230013-948cd5f35899
|
||||
golang.org/x/net v0.0.0-20200822124328-c89045814202
|
||||
google.golang.org/genproto v0.0.0-20200624020401-64a14ca9d1ad
|
||||
google.golang.org/grpc v1.33.1
|
||||
google.golang.org/grpc v1.33.2
|
||||
google.golang.org/protobuf v1.25.0
|
||||
)
|
||||
|
||||
replace (
|
||||
github.com/owncloud/ocis/ocis-pkg => ../ocis-pkg
|
||||
github.com/owncloud/ocis/settings => ../settings
|
||||
github.com/owncloud/ocis/storage => ../storage
|
||||
google.golang.org/grpc => google.golang.org/grpc v1.26.0
|
||||
)
|
||||
+22
-6
@@ -24,6 +24,7 @@ cloud.google.com/go/storage v1.6.0/go.mod h1:N7U0C8pVQ/+NIKOBQyamJIeKQKkZ+mxpohl
|
||||
contrib.go.opencensus.io/exporter/jaeger v0.2.1 h1:yGBYzYMewVL0yO9qqJv3Z5+IRhPdU7e9o/2oKpX4YvI=
|
||||
contrib.go.opencensus.io/exporter/jaeger v0.2.1/go.mod h1:Y8IsLgdxqh1QxYxPC5IgXVmBaeLUeQFfBeBi9PbeZd0=
|
||||
contrib.go.opencensus.io/exporter/ocagent v0.4.12/go.mod h1:450APlNTSR6FrvC3CTRqYosuDstRB9un7SOx2k/9ckA=
|
||||
contrib.go.opencensus.io/exporter/ocagent v0.6.0 h1:Z1n6UAyr0QwM284yUuh5Zd8JlvxUGAhFZcgMJkMPrGM=
|
||||
contrib.go.opencensus.io/exporter/ocagent v0.6.0/go.mod h1:zmKjrJcdo0aYcVS7bmEeSEBLPA9YJp5bjrofdU3pIXs=
|
||||
contrib.go.opencensus.io/exporter/prometheus v0.2.0 h1:9PUk0/8V0LGoPqVCrf8fQZJkFGBxudu8jOjQSMwoD6w=
|
||||
contrib.go.opencensus.io/exporter/prometheus v0.2.0/go.mod h1:TYmVAyE8Tn1lyPcltF5IYYfWp2KHu7lQGIZnj8iZMys=
|
||||
@@ -103,8 +104,9 @@ github.com/aws/aws-sdk-go v1.20.1/go.mod h1:KmX6BPdI08NWTb3/sm4ZGu5ShLoqVDhKgpiN
|
||||
github.com/aws/aws-sdk-go v1.23.0/go.mod h1:KmX6BPdI08NWTb3/sm4ZGu5ShLoqVDhKgpiN924inxo=
|
||||
github.com/aws/aws-sdk-go v1.34.12 h1:7UbBEYDUa4uW0YmRnOd806MS1yoJMcaodBWDzvBShAI=
|
||||
github.com/aws/aws-sdk-go v1.34.12/go.mod h1:5zCpMtNQVjRREroY7sYe8lOMRSxkhG6MZveU8YkpAk0=
|
||||
github.com/aws/aws-sdk-go v1.35.9 h1:b1HiUpdkFLJyoOQ7zas36YHzjNHH0ivHx/G5lWBeg+U=
|
||||
github.com/aws/aws-sdk-go v1.35.9/go.mod h1:tlPOdRjfxPBpNIwqDj61rmsnA85v9jc0Ps9+muhnW+k=
|
||||
github.com/aws/aws-sdk-go v1.35.23 h1:SCP0d0XvyJTDmfnHEQPvBaYi3kea1VNUo7uQmkVgFts=
|
||||
github.com/aws/aws-sdk-go v1.35.23/go.mod h1:tlPOdRjfxPBpNIwqDj61rmsnA85v9jc0Ps9+muhnW+k=
|
||||
github.com/aws/aws-sdk-go v1.35.27/go.mod h1:tlPOdRjfxPBpNIwqDj61rmsnA85v9jc0Ps9+muhnW+k=
|
||||
github.com/baiyubin/aliyun-sts-go-sdk v0.0.0-20180326062324-cfa1a18b161f/go.mod h1:AuiFmCCPBSrqvVMvuqFuk0qogytodnVFVSN5CeJB8Gc=
|
||||
github.com/beorn7/perks v0.0.0-20180321164747-3a771d992973/go.mod h1:Dwedo/Wpr24TaqPxmxbtue+5NUziq4I4S80YR8gNf3Q=
|
||||
github.com/beorn7/perks v1.0.0/go.mod h1:KWe93zE9D1o94FZ5RNwFwVgaQK1VOXiVxmqh+CedLV8=
|
||||
@@ -178,12 +180,18 @@ github.com/creack/pty v1.1.9/go.mod h1:oKZEueFk5CKHvIhNR5MUki03XCEU+Q6VDXinZuGJ3
|
||||
github.com/cs3org/cato v0.0.0-20200828125504-e418fc54dd5e/go.mod h1:XJEZ3/EQuI3BXTp/6DUzFr850vlxq11I6satRtz0YQ4=
|
||||
github.com/cs3org/go-cs3apis v0.0.0-20200810113633-b00aca449666 h1:E7VsSSN/2YZLSwrDMJJdAWU11lP7W1qkcXbrslb0PM0=
|
||||
github.com/cs3org/go-cs3apis v0.0.0-20200810113633-b00aca449666/go.mod h1:UXha4TguuB52H14EMoSsCqDj7k8a/t7g4gVP+bgY5LY=
|
||||
github.com/cs3org/go-cs3apis v0.0.0-20201007120910-416ed6cf8b00 h1:LVl25JaflluOchVvaHWtoCynm5OaM+VNai0IYkcCSe0=
|
||||
github.com/cs3org/go-cs3apis v0.0.0-20201007120910-416ed6cf8b00/go.mod h1:UXha4TguuB52H14EMoSsCqDj7k8a/t7g4gVP+bgY5LY=
|
||||
github.com/cs3org/go-cs3apis v0.0.0-20201118090759-87929f5bae21 h1:mZpylrgnCgSeaZ5EznvHIPIKuaQHMHZDi2wkJtk4M8Y=
|
||||
github.com/cs3org/go-cs3apis v0.0.0-20201118090759-87929f5bae21/go.mod h1:UXha4TguuB52H14EMoSsCqDj7k8a/t7g4gVP+bgY5LY=
|
||||
github.com/cs3org/reva v1.2.2-0.20200924071957-e6676516e61e h1:khITGSnfDXtByQsLezoXgocUgGHJBBn0BPsUihGvk7w=
|
||||
github.com/cs3org/reva v1.2.2-0.20200924071957-e6676516e61e/go.mod h1:DOV5SjpOBKN+aWfOHLdA4KiLQkpyC786PQaXEdRAZ0M=
|
||||
github.com/cs3org/reva v1.3.1-0.20201023144216-cdb3d6688da5 h1:nkmk9ywGKpJthWeMYGBiXh4DD6mTCOZLRfGDjp9rsKg=
|
||||
github.com/cs3org/reva v1.3.1-0.20201023144216-cdb3d6688da5/go.mod h1:V50GXMiT524bvxACFkrkZqBzK4BoXLSprxcPshBlSOY=
|
||||
github.com/cs3org/reva v1.4.1-0.20201130061320-ac85e68e0600 h1:4CKU+R4UNvILzsPrcAFwEbk/8Hc6vJqwO7SxK0gAm4I=
|
||||
github.com/cs3org/reva v1.4.1-0.20201130061320-ac85e68e0600/go.mod h1:MTBlfobTE8W2hgXQ9+r+75jpJa1TxD04IZm5TpS9H48=
|
||||
github.com/cs3org/reva v1.4.1-0.20201130150257-7e3efcbd0fc3 h1:H3QnP+eApE2LDJrYjJrIBmJ04KGVdpR2QP+ipdPp3jE=
|
||||
github.com/cs3org/reva v1.4.1-0.20201130150257-7e3efcbd0fc3/go.mod h1:MTBlfobTE8W2hgXQ9+r+75jpJa1TxD04IZm5TpS9H48=
|
||||
github.com/cs3org/reva v1.4.1-0.20201203075131-783e35cbff51 h1:WguydLVNj9tDRAw5cz+TnkY3shiTmbpfBPX2NpDHU2c=
|
||||
github.com/cs3org/reva v1.4.1-0.20201203075131-783e35cbff51/go.mod h1:UUIurLdFYag/W+3YlAqwFuVvfzF3Ps1Elq1NzsE9kvo=
|
||||
github.com/cs3org/reva v1.4.1-0.20201203135805-655c9babdc3f h1:3Y1TbQCN9s8+eWjfnUVlnVA7YlZJdxMTffmMVxZwMP8=
|
||||
github.com/cs3org/reva v1.4.1-0.20201203135805-655c9babdc3f/go.mod h1:3Bz9oExBSgKjDspq3pBso31HlLSD98SlcURV54N3yPs=
|
||||
github.com/davecgh/go-spew v1.1.0/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38=
|
||||
github.com/davecgh/go-spew v1.1.1 h1:vj9j/u1bqnvCEfJOwUhtlOARqs3+rkHYY13jYWTU97c=
|
||||
github.com/davecgh/go-spew v1.1.1/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38=
|
||||
@@ -269,6 +277,7 @@ github.com/go-openapi/errors v0.19.6/go.mod h1:cM//ZKUKyO06HSwqAelJ5NsEMMcpa6VpX
|
||||
github.com/go-openapi/strfmt v0.19.2/go.mod h1:0yX7dbo8mKIvc3XSKp7MNfxw4JytCfCD6+bY1AVL9LU=
|
||||
github.com/go-ozzo/ozzo-validation/v4 v4.2.1 h1:XALUNshPYumA7UShB7iM3ZVlqIBn0jfwjqAMIoyE1N0=
|
||||
github.com/go-ozzo/ozzo-validation/v4 v4.2.1/go.mod h1:2NKgrcHl3z6cJs+3Oo940FPRiTzuqKbvfrL2RxCj6Ew=
|
||||
github.com/go-sql-driver/mysql v1.5.0 h1:ozyZYNQW3x3HtqT1jira07DN2PArx2v7/mN66gGcHOs=
|
||||
github.com/go-sql-driver/mysql v1.5.0/go.mod h1:DCzpHaOWr8IXmIStZouvnhqoel9Qv2LBy8hT2VhHyBg=
|
||||
github.com/go-stack/stack v1.8.0/go.mod h1:v0f6uXyyMGvRgIKkXu+yp6POWl0qKG85gN/melR3HDY=
|
||||
github.com/go-telegram-bot-api/telegram-bot-api v4.6.4+incompatible/go.mod h1:qf9acutJ8cwBUhm1bqgz6Bei9/C/c93FPDljKWwsOgM=
|
||||
@@ -357,6 +366,7 @@ github.com/gorilla/context v1.1.1/go.mod h1:kBGZzfjB9CEq2AlWe17Uuf7NDRt0dE0s8S51
|
||||
github.com/gorilla/handlers v1.4.2 h1:0QniY0USkHQ1RGCLfKxeNHK9bkDHGRYGNDFBCS+YARg=
|
||||
github.com/gorilla/handlers v1.4.2/go.mod h1:Qkdc/uu4tH4g6mTK6auzZ766c4CA0Ng8+o/OAirnOIQ=
|
||||
github.com/gorilla/mux v1.6.2/go.mod h1:1lud6UwP+6orDFRuTfBEV8e9/aOM/c4fVVCaMa2zaAs=
|
||||
github.com/gorilla/mux v1.7.3 h1:gnP5JzjVOuiZD07fKKToCAOjS0yOpj/qPETTXCCS6hw=
|
||||
github.com/gorilla/mux v1.7.3/go.mod h1:1lud6UwP+6orDFRuTfBEV8e9/aOM/c4fVVCaMa2zaAs=
|
||||
github.com/gorilla/websocket v1.2.0/go.mod h1:E7qHFY5m1UJ88s3WnNqhKjPHQ0heANvMoAMk2YaljkQ=
|
||||
github.com/gorilla/websocket v1.4.0/go.mod h1:E7qHFY5m1UJ88s3WnNqhKjPHQ0heANvMoAMk2YaljkQ=
|
||||
@@ -487,6 +497,7 @@ github.com/marten-seemann/qtls v0.4.1/go.mod h1:pxVXcHHw1pNIt8Qo0pwSYQEoZ8yYOOPX
|
||||
github.com/mattn/go-colorable v0.0.9 h1:UVL0vNpWh04HeJXV0KLcaT7r06gOH2l4OW6ddYRUIY4=
|
||||
github.com/mattn/go-colorable v0.0.9/go.mod h1:9vuHe8Xs5qXnSaW/c/ABM9alt+Vo+STaOChaDxuIBZU=
|
||||
github.com/mattn/go-colorable v0.1.4/go.mod h1:U0ppj6V5qS13XJ6of8GYAs25YV2eR4EVcfRqFIhoBtE=
|
||||
github.com/mattn/go-colorable v0.1.7 h1:bQGKb3vps/j0E9GfJQ03JyhRuxsvdAanXlT9BTw3mdw=
|
||||
github.com/mattn/go-colorable v0.1.7/go.mod h1:u6P/XSegPjTcexA+o6vUJrdnUu04hMope9wVRipJSqc=
|
||||
github.com/mattn/go-isatty v0.0.3/go.mod h1:M+lRXTBqGeGNdLjl/ufCoiOlB5xdOkqRJdNxMWT7Zi4=
|
||||
github.com/mattn/go-isatty v0.0.4 h1:bnP0vzxcAdeI1zdubAl5PjU6zsERjGZb7raWodagDYs=
|
||||
@@ -494,6 +505,7 @@ github.com/mattn/go-isatty v0.0.4/go.mod h1:M+lRXTBqGeGNdLjl/ufCoiOlB5xdOkqRJdNx
|
||||
github.com/mattn/go-isatty v0.0.8/go.mod h1:Iq45c/XA43vh69/j3iqttzPXn0bhXyGjM0Hdxcsrc5s=
|
||||
github.com/mattn/go-isatty v0.0.10/go.mod h1:qgIWMr58cqv1PHHyhnkY9lrL7etaEgOFcMEpPG5Rm84=
|
||||
github.com/mattn/go-isatty v0.0.11/go.mod h1:PhnuNfih5lzO57/f3n+odYbM4JtupLOxQOAqxQCu2WE=
|
||||
github.com/mattn/go-isatty v0.0.12 h1:wuysRhFDzyxgEmMf5xjvJ2M9dZoWAXNNr5LSBS7uHXY=
|
||||
github.com/mattn/go-isatty v0.0.12/go.mod h1:cbi8OIDigv2wuxKPP5vlRcQ1OAZbq2CE4Kysco4FUpU=
|
||||
github.com/mattn/go-runewidth v0.0.2/go.mod h1:LwmH8dsx7+W8Uxz3IHJYH5QSwggIsqBzpuz5H//U1FU=
|
||||
github.com/mattn/go-runewidth v0.0.3/go.mod h1:LwmH8dsx7+W8Uxz3IHJYH5QSwggIsqBzpuz5H//U1FU=
|
||||
@@ -645,6 +657,8 @@ github.com/pkg/term v0.0.0-20200520122047-c3ffed290a03/go.mod h1:Z9+Ul5bCbBKnbCv
|
||||
github.com/pkg/term v1.1.0/go.mod h1:E25nymQcrSllhX42Ok8MRm1+hyBdHY0dCeiKZ9jpNGw=
|
||||
github.com/pkg/xattr v0.4.1 h1:dhclzL6EqOXNaPDWqoeb9tIxATfBSmjqL0b4DpSjwRw=
|
||||
github.com/pkg/xattr v0.4.1/go.mod h1:W2cGD0TBEus7MkUgv0tNZ9JutLtVO3cXu+IBRuHqnFs=
|
||||
github.com/pkg/xattr v0.4.2 h1:fbVxr9lvkToTGgPljVszvFsOdcbSv5BmGABneyxRgZM=
|
||||
github.com/pkg/xattr v0.4.2/go.mod h1:sBD3RAqlr8Q+RC3FutZcikpT8nyDrIEEBw2J744gVWs=
|
||||
github.com/pmezard/go-difflib v1.0.0 h1:4DBwDE0NGyQoBHbLQYPwSUPoCMWR5BEzIk/f1lZbAQM=
|
||||
github.com/pmezard/go-difflib v1.0.0/go.mod h1:iKH77koFhYxTK1pcRnkKkqfTogsbg7gZNVY4sRDYZ/4=
|
||||
github.com/posener/complete v1.1.1/go.mod h1:em0nMJCgc9GFtwrmVmEMR/ZL6WyhyjMBndrE9hABlRI=
|
||||
@@ -1004,6 +1018,8 @@ golang.org/x/sys v0.0.0-20200720211630-cb9d2d5c5666/go.mod h1:h1NjWce9XRLGQEsW7w
|
||||
golang.org/x/sys v0.0.0-20200909081042-eff7692f9009/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs=
|
||||
golang.org/x/sys v0.0.0-20200918174421-af09f7315aff h1:1CPUrky56AcgSpxz/KfgzQWzfG09u5YOL8MvPYBlrL8=
|
||||
golang.org/x/sys v0.0.0-20200918174421-af09f7315aff/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs=
|
||||
golang.org/x/sys v0.0.0-20201101102859-da207088b7d1 h1:a/mKvvZr9Jcc8oKfcmgzyp7OwF73JPWsQLvH1z2Kxck=
|
||||
golang.org/x/sys v0.0.0-20201101102859-da207088b7d1/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs=
|
||||
golang.org/x/text v0.0.0-20170915032832-14c0d48ead0c/go.mod h1:NqM8EUOU14njkJ3fqMW+pc6Ldnwhi/IjpwHt7yyuwOQ=
|
||||
golang.org/x/text v0.3.0/go.mod h1:NqM8EUOU14njkJ3fqMW+pc6Ldnwhi/IjpwHt7yyuwOQ=
|
||||
golang.org/x/text v0.3.1-0.20180807135948-17ff2d5776d2/go.mod h1:NqM8EUOU14njkJ3fqMW+pc6Ldnwhi/IjpwHt7yyuwOQ=
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
// Code generated by fileb0x at "2020-10-12 17:37:33.659807 +0200 CEST m=+0.054958104" from config file "embed.yml" DO NOT EDIT.
|
||||
// modification hash(0bc16594fa769da5cdbe7e9cbdefb626.8058aec596c5fb73022d09bb97af796e)
|
||||
// Code generated by fileb0x at "2020-11-20 11:12:19.055864 +0100 CET m=+0.009268058" from config file "embed.yml" DO NOT EDIT.
|
||||
// modification hash(aa63d3a7859474115b12e1e93af346a5.8058aec596c5fb73022d09bb97af796e)
|
||||
|
||||
package assets
|
||||
|
||||
@@ -36,10 +36,7 @@ type HTTPFS struct {
|
||||
}
|
||||
|
||||
// FileAccountsJs is "accounts.js"
|
||||
var FileAccountsJs = []byte("\x1f\x8b\x08\x00\x00\x00\x00\x00\x00\xff\xd4\xbd\xe9\x76\x1b\xb7\xb2\x30\xfa\xfb\x7e\x4f\x41\xf6\xf1\xee\x03\x6c\x96\x68\xd2\x19\xf6\x4e\xd3\x08\xb7\x2d\xcb\x8e\x13\x4f\x91\x6c\x27\x0e\xc3\xa3\xd5\x22\x41\x09\x16\x09\xd0\x68\x50\x83\xc9\xbe\xef\x73\x5f\xe3\x3e\xd9\x5d\x28\x00\x3d\xb1\x65\x67\x9f\x6f\x58\xeb\xfe\x21\xbb\xd1\x18\x0b\x40\x4d\xa8\x2a\xcc\xf9\x42\x48\x4e\xc8\x62\x23\x67\x46\x28\x49\xe8\x36\xda\x64\xbc\x93\x19\x2d\x66\x26\x1a\x5d\xa5\xba\x63\x58\xb4\x91\x2e\xe3\x3c\xea\x32\x73\xbb\xe6\x6a\xd1\x39\x5f\xaa\xb3\x74\xf9\xf6\x42\x64\xe3\xf2\x31\x69\xcb\x79\x2d\xe4\x5c\x5d\x8f\xdd\x5f\x6b\x0e\x57\x81\xaf\xa7\x35\x47\xc6\x97\x8b\xb1\xfd\x49\xb6\xf9\x28\x74\xb6\xc3\x89\x01\x4e\xb7\x9a\x9b\x8d\x96\x1d\x43\x38\xdb\xf2\x9b\xb5\xd2\x26\x4b\xb6\x79\x0e\xbc\xef\xdf\x68\xf9\x98\xdb\x11\x49\x56\x1d\xb2\xa1\x5b\x9b\xc8\xd9\x7e\xca\xeb\xb3\x8f\x7c\x66\xfa\x6b\xad\x8c\xb2\x3d\x01\xc9\x78\xff\x22\xcd\x5e\x5f\xcb\x37\x5a\xad\xb9\x36\xb7\xa0\x59\x14\x0a\x46\x2c\xf4\xf7\xe4\x76\x75\xa6\x96\x63\xf7\x97\x6c\x73\x50\x4c\xf7\x85\xe1\x3a\x35\x4a\xef\x76\xd1\xbf\xfe\x15\x5e\x22\x10\x4c\xf7\xd3\xec\x56\xce\x9e\x57\xbf\xd7\x52\x22\x48\x99\xee\x1b\x75\x62\xb4\x90\xe7\x6f\xd3\x73\xcc\x52\x79\x8f\x4a\xa0\xcc\x2c\x50\x40\x82\x76\x83\x50\x8c\xc7\x31\x2f\x87\xd0\x11\x32\x33\xa9\x9c\xd9\x5e\x2e\xc7\x3c\x59\x82\x08\xc3\x9c\x69\x9e\x1a\x4e\x54\x99\x99\x42\xca\x24\xbf\xee\xdc\x10\xbd\xdb\x4d\xa6\x74\xe4\x41\x2d\xfa\xa7\x42\x5e\xa9\xcb\x2a\xcc\x6c\xa3\xae\x49\xcd\xa2\x6c\x93\xad\xb9\x9c\xf3\xf9\x89\x49\xb5\x89\x42\xb9\x22\xb7\x02\x41\xb7\x62\x41\x22\x7e\xc3\x67\x1b\x23\xe4\x79\xc4\x18\xd3\xd4\x5c\x68\x75\xdd\xb1\x4d\x1e\x69\xad\x34\x89\x9e\x71\xe9\x40\xd0\x11\x59\x27\x5d\x6a\x9e\xce\x6f\x3b\x7a\x23\xa5\x2d\x42\x47\xb6\x8a\x99\x5a\xad\x97\xdc\xf0\xb9\xab\x02\xab\xc5\x7a\xec\xbb\xf2\x55\x8a\xd0\x85\xd7\x84\xe6\x0b\xa5\x89\xec\xaf\xb8\xb9\x50\x73\xa6\x40\xf6\x53\x7d\xce\xc4\x68\xe4\xba\x9f\x32\xd9\x9f\xf3\x25\x3f\x4f\x0d\xb7\x0d\xa4\x2e\x79\xc6\xce\x48\x0a\x12\xdb\x9c\x61\x2b\x33\xc6\xd8\x86\xce\x94\x34\x42\x6e\x78\x68\x60\x96\xe7\xb6\x07\x92\xdf\x18\xdb\x81\xd0\x0e\x95\xfd\x8c\x4b\xc3\x64\xff\xd4\xff\xa7\xfa\x7c\xc4\x97\x19\xef\xd4\x3a\x5c\xe4\xc7\x71\x34\xe0\x58\x81\x91\x66\x95\x81\xbb\x21\x8c\x64\x7f\x2e\xb2\x75\x6a\x66\x17\x47\x37\x33\xbe\x46\x48\xe3\x17\x9a\xdb\x86\x22\xd7\xc3\x6a\x2b\x71\x2c\xfb\xe9\x99\xde\xac\x0d\x09\x5f\x5d\x5d\x74\xa4\x59\x65\x72\x10\x11\x2c\x59\xe6\xa7\x19\xe1\x2e\x95\x5e\xa5\x4b\x5b\xdb\xb2\x8f\x8b\xc5\xf6\x58\x5b\xe0\x29\xc9\xc7\x95\xde\x25\xe5\x30\x3e\x08\xbe\x9c\x47\xb0\x44\x88\xb7\x40\x6f\x7b\x95\x2e\x37\x3c\xc1\xef\x60\xeb\x49\x5c\x75\x79\x5e\x42\xc8\xb5\x16\xc7\xa4\x09\x02\x3f\xa1\x3e\xa7\x9f\xd6\xa5\x1b\x7f\x9e\x13\x03\x12\x52\x0a\x22\x2f\xb6\x4a\x18\xce\xd6\xe8\x5b\x8f\x45\xb6\xb6\xee\x24\x8c\x0d\x52\x7d\x9e\x98\xfe\x2c\x5d\x2e\x89\xcd\x98\xe7\x33\x0b\x5d\x8b\x20\x6a\xd9\x7d\x8b\x98\x3b\xcf\x73\xd3\xbf\xd6\xe9\x9a\xcd\x10\x6a\x1b\x56\x45\x59\x4b\x42\xb7\x65\x07\x16\xb5\xb7\xb9\x7d\xb3\x45\xd6\xb6\xc8\x7a\xa2\xa6\xac\x82\x97\x03\x96\xbb\x10\x59\x8e\x15\x5f\x84\x7d\x7b\xce\xcd\x9b\xb0\x63\x5f\x2f\x60\xc5\x2e\xe2\xf8\x82\x5c\x90\x23\x32\x99\x52\x4a\x47\xab\x38\x5e\x75\x99\xc5\x03\xd2\x0d\x65\x05\x8a\xc6\x31\x59\xb3\x15\xc5\x9a\xae\xd8\xbc\xdc\xf3\x6c\x59\x79\xae\x63\x86\x35\x2d\x07\x72\x6e\x81\x30\x71\xcb\x1c\x02\x00\xc2\x1a\x9a\xf6\x17\x4a\x1f\xa5\xb3\x8b\x0a\x9a\xe5\x74\x6b\x26\x7c\x5a\xc3\xb2\x95\x31\x05\x8c\x42\x38\x18\x9a\xe7\x94\x96\x70\xb9\x75\x68\x1e\x51\xcb\xa8\x9a\x97\xd5\xf1\x49\x51\x20\x2d\xc1\x65\x51\x49\x15\xd9\x6b\x48\xe9\xb6\x5b\xe4\xd4\xb6\x24\xa4\x30\x73\xd5\x6f\xec\x0a\x9f\xa8\x29\x18\x10\x6e\x91\xbb\x81\x75\x19\xdb\xf8\x35\xee\x36\xc2\x06\x17\xe8\x82\x2d\xfb\xb8\x60\x0b\xfc\x16\xc7\x91\x42\x90\x95\xa4\x60\x51\x80\x7d\x01\xd1\xe9\x69\x7a\x9d\x0a\x13\xd1\x31\xef\x6b\x9e\xa9\xe5\x15\x27\x8b\xbe\x4f\xa5\x7d\x73\xc1\x65\x9d\x32\x69\x8f\x49\xc0\x60\x2f\x73\x0a\xcd\xcf\x1e\xf4\xe1\x3b\x4d\x2a\x35\xb7\xd5\xe8\xbb\xcc\x0c\xa4\x64\xb9\x5f\xa1\x1b\x48\x4b\xbd\xf9\x8c\x6c\xdc\x5e\x42\x98\x59\x40\xda\xd4\x50\x80\xe9\xb1\x76\xad\xa5\x90\xd2\x24\x25\x34\x2f\x67\xf0\xac\x9c\x41\xc9\x4c\x41\x08\x27\xdc\xef\xd9\xa9\x85\xf5\x95\x12\xf3\xce\xc0\x22\x27\xc4\x24\xbc\x40\xc2\x4c\x6e\x96\x4b\x28\x11\x00\xaf\xa2\xc8\xb2\xb6\xbe\xeb\x4a\x1c\x13\x5e\xa0\x82\x80\xd3\x38\xe2\x02\xd7\x02\xb8\xde\xb4\x55\x48\xfd\x68\x36\x23\xde\xc4\x26\xae\x06\xbb\x9c\xde\xde\xae\xb9\xa7\x4e\x6f\x2f\x78\x27\x34\xdf\x99\x2b\x9e\x75\xa4\x32\x9d\xb5\x56\x57\x62\xce\x3b\x69\xe7\x3f\xb1\xf0\x7f\x76\x5c\x5d\x51\x01\xad\x4d\xee\xe8\x64\x46\x24\x94\x03\x70\x6d\x54\xd7\x9d\xc5\xf7\x6e\xdd\xf9\x82\x77\x74\x4b\xe3\x72\x6c\x42\x6c\x33\x72\x0c\x00\x7e\x0d\x4b\x54\x8d\x95\x43\xd0\x84\x4f\x8c\x5d\x29\x9b\xa5\x79\x95\xae\xf8\x94\x29\xb7\x30\x80\xf7\xed\x8a\x63\x06\xff\x5e\xa8\x59\xb1\xab\xbb\x25\xa4\x6a\x40\x76\x0b\xb4\x0a\x62\xba\xdf\x17\x9a\xa8\x84\xfc\x35\xa8\x16\x10\x75\xbd\xb3\x94\xdf\x82\x35\x95\x1d\xbf\xb7\xda\xaa\x2f\x17\xdb\x75\xc9\xbf\x59\xc4\xfe\x42\xcd\x12\x33\x19\x4c\xf3\xd1\xb0\x23\x64\xc7\x60\xd7\x11\x8d\xLine truncated
|
||||
|
||||
// FileAccountsJsMap is "accounts.js.map"
|
||||
var FileAccountsJsMap = []byte("\x1f\x8b\x08\x00\x00\x00\x00\x00\x00\xff\xd4\xbd\x8b\x76\x1b\xb9\xb1\x28\xfa\x2b\xb0\x32\xc7\x24\x6d\x3e\xac\xf1\xbc\x42\x45\xa3\x78\x64\xd9\xa3\xc4\xb6\xbc\x2d\x8d\x73\x72\x25\x2d\x19\x64\x83\x24\x46\xcd\x6e\xa6\xd1\x2d\x99\xb1\x75\xfe\xe7\xfe\xc6\xfd\xb2\xbb\x50\x55\x78\xf5\x83\x0f\xd9\xb3\xb3\x8f\xb3\x56\x46\x44\x03\x05\xa0\x50\x28\xd4\x0b\x85\x4f\x3b\x37\x22\x53\x32\x4d\x76\x86\x4f\xbb\x3b\x13\x19\x8b\x9d\xe1\x0e\x1f\x8f\xd3\x22\xc9\x55\xff\x77\xb5\xd3\xdd\x51\x69\x91\x8d\x85\xda\x19\x9e\xef\xf4\xfb\x83\x24\x8d\xc4\xd5\x3c\x8d\x8a\x58\xa8\x41\x26\xa6\x22\x11\x19\xcf\xd3\xac\x97\x15\x49\x2e\xe7\x62\x40\xff\xc5\xb6\xe5\x06\xe3\x34\x13\xbd\xdf\xd5\x40\x26\xb9\xc8\x12\x1e\xab\xc1\x34\x4e\x47\x3c\xde\xb4\xf6\x84\xcb\x58\x6d\x5a\x39\x12\x6a\x9c\xc9\x45\x9e\x66\x1b\x37\x49\x47\xbf\x8b\x71\xde\x5b\x64\xe9\x42\x64\xf9\xb2\x27\x55\x4f\x24\xc5\x5c\x64\x7c\x14\x6f\x3c\xa5\x71\x26\x78\x2e\x1c\x10\x37\x8e\x8d\x21\xc4\x5c\xa9\x74\xd2\xcb\xf8\xed\xa6\x4d\x64\x12\x89\x8f\x22\xea\xe1\x0c\x36\x6d\x95\x89\x7f\x15\x32\x13\xd4\xaa\x37\x4e\x45\x36\x96\x5b\x4c\x35\x4f\x7b\xf7\xeb\x58\xaa\x2d\x1b\xe4\x69\x6f\x91\xc9\xb9\xcc\xe5\xcd\xc6\xa3\x9b\xf1\xcd\x69\x25\x1d\x17\x73\x91\xe4\x3d\x5a\x3c\x11\x0b\xfd\x73\xe3\xe9\x88\x9f\x7a\x51\x3a\xef\x45\x62\x22\x93\x8d\xc7\x47\x58\x9f\x8a\xbc\x97\xde\x26\x5f\x42\x30\x3c\xd9\x12\x9d\xd4\x35\x8e\xd7\xf6\xbc\x25\x85\x27\x69\xe2\x6d\x8f\xad\xa1\x28\x91\xf7\xb6\xdb\xfe\x6a\xc6\x33\x11\xf5\x54\x9e\x66\x1b\x23\x59\x26\x6a\xa1\xa7\x8a\x6c\x6c\xd3\x56\x09\xd7\x84\xd6\xbb\x15\xfc\xba\x37\xe7\x8b\x2d\xc8\x7a\x51\x6c\x3e\x36\x9c\xcf\xa6\xb5\x0b\xb9\x71\x55\x42\xd4\xb5\xd8\x78\x31\x66\x32\x8a\x44\xa2\x5b\x6c\xbc\x67\xcc\x5f\x3d\x95\xf3\x7c\xe3\x39\x67\x62\xbb\x4d\xb2\xe0\xf9\x6c\xe3\xc3\x44\xe4\xbd\x51\x21\xe3\xbc\x27\x93\xad\x58\x58\x2e\xa6\x62\xe3\xcd\x96\xa7\xbd\x58\x24\xd3\xcd\x87\x95\xa7\x3d\x3e\x52\x69\x5c\xe4\x02\xd9\xe5\xc6\xdb\x3a\xcb\xf8\xb2\x27\x93\x71\x5c\x44\x62\xdb\x43\x4c\x2f\x65\xcf\x94\x6e\xda\x56\x6f\xe7\xde\xa8\x98\x6e\x45\x08\x4d\x7c\x2c\xe1\xf3\xad\x47\x5d\x01\xa2\x96\xf3\x51\xba\xf9\xa1\xaf\xdb\x6e\x33\xf6\x71\xba\x58\xf6\xc6\x69\xa2\xf2\xac\x18\x6b\x39\x86\x3a\x96\x9b\x8f\x5c\xaa\xde\x24\xcd\xc6\x9b\x6f\x64\xf1\x71\x91\x66\x1b\xb3\x6a\x62\x45\x88\x87\x8d\x79\x85\x32\x2d\x7a\x5c\xf5\xb6\xe0\x1c\x52\xf5\x80\xea\xb6\xa0\xed\x7b\x9d\x3c\xf7\xa0\xaf\xf0\xb0\xda\x62\x81\x66\xf9\x7c\x63\xc4\x19\x49\x08\x4e\xb8\xaf\xb2\x01\x7a\xe2\xe3\x76\x7b\xf0\x56\xc4\x71\xef\x3a\xd1\x90\xb6\x5b\xf4\x4a\xc3\xde\x6d\xc6\x17\x8b\xcd\x09\x93\x30\x7c\xef\x01\xe8\x13\x3d\x4f\x7b\x2a\xcf\x64\x32\xed\xe5\x7c\xba\x31\xa3\xeb\x4d\x8a\x64\x9c\xcb\x74\x63\xb6\x6d\xea\xf7\x46\x32\x89\xf4\x06\xce\xc5\xc7\x8d\x69\x10\xf9\xaa\x96\x0b\xa4\x50\x5b\xae\x35\xf1\xe4\x5c\xab\x3d\x6b\xc7\x6b\x7e\x0b\xd5\xdf\x0e\x93\x22\x99\xea\x95\x28\x94\xc8\x7a\x7c\xba\x85\x24\x4a\x0d\x6f\x7e\xea\x91\x62\xb7\xdd\xbc\xe6\x22\x9f\xa5\x51\x6f\xc6\x95\x45\x8f\x2a\x16\xdb\xb0\xab\x00\x4e\xa1\x84\xea\x6d\x78\x5e\x7a\xb8\x42\x0e\x34\x91\x71\xbe\xf9\xa9\x1c\xf4\x2b\x15\x10\xe1\xe6\x5c\x09\x5b\x4f\xd2\xac\x27\xf8\x78\xeb\x81\x6e\xdb\x8c\x38\xe6\x57\x10\xfc\x4b\xba\xe6\x57\x1c\xc1\x1a\xee\x5a\x85\xb5\x0d\x47\xd7\xba\x12\x6c\xa1\x51\xbc\x8e\x8d\x9b\xdf\xb7\x62\xd4\xd7\xcd\xc6\x69\x1c\x0b\xd8\xfa\x6a\x0d\xe2\xff\x3a\xe2\x23\x11\x1b\x83\xc4\x60\x26\xe2\x85\xc8\x0c\x93\x7b\xbb\x12\x63\x59\x1a\xc7\xc5\xa2\xb7\x88\x8b\xa9\x4c\x7a\xfa\x13\x69\x2a\x6a\xa0\xb2\xf1\x4a\xa3\xc5\x4d\x21\x3e\x0e\x22\xa9\x72\xf8\xab\x2f\xd4\x7c\x63\x1a\x8c\x22\xbd\x57\x8a\x44\x8d\xd3\xc5\x16\x98\xf1\x36\x4c\xb2\x86\xd5\x57\x9a\x80\x38\xda\x4b\x27\x1b\x61\xd0\x33\xf7\x0c\x56\xc8\xb1\x0d\x78\xe7\x6a\x99\x8c\xcf\xd2\x97\x06\x84\x6d\x5c\x48\x5b\xa7\xc8\x1b\xed\x3b\xfc\xa3\x4c\xd5\x20\x96\x23\x5b\x79\xd4\x38\x5d\x57\x77\x3b\x80\x85\x8c\xa3\xdf\xde\xbd\x5a\x57\x5f\x63\x73\x70\xac\xd7\x6d\x2c\xf4\x56\x79\xcd\x13\xde\xa8\x3f\x94\x9a\xe5\x19\x4f\xd4\x24\xcd\xe6\xcf\x79\xce\xd7\xb6\xe0\xc9\x58\xc4\x03\xa9\x0e\xe1\x8f\xfa\xea\x8b\x2c\x1d\x0b\xa5\x7a\x42\xfd\x30\x18\x65\xe9\xad\x5a\x3f\x12\x33\xe1\x24\xcd\xe6\x3c\x96\xff\x16\xbf\x0a\x1e\x89\xec\x0d\x6f\xb2\xdb\x95\x26\x21\x92\x99\x1e\xd0\x51\x96\x35\x71\xaa\x52\x03\x64\x53\x9b\xd7\x57\x22\xcf\x9b\xac\x50\xd5\x69\x48\xf5\x8c\xd4\xab\x0d\x16\xcf\x34\x1a\xa7\xf3\x91\x4c\x74\x8b\xb5\xf4\x01\x43\x02\xe2\x78\x51\xc4\xf1\xdb\x46\x85\xb4\xda\xc9\x82\x67\x8a\x90\xbb\x31\x15\x4a\xf5\xdb\xbb\x57\xa7\x7c\x2e\x4e\x32\x39\x6d\xd2\x63\xeb\xe6\x93\x5e\x37\xca\xc4\xae\x3a\x8f\xf8\x22\xd7\xf5\x3f\xce\xd6\x2e\x45\x24\x26\xbc\x88\xf3\xcd\xf0\x13\x49\xb5\xe0\xf9\x78\xf6\x4e\xfc\xab\x10\xaa\xe1\xe0\x2d\xb5\x99\x8b\x6c\x2a\x0e\xd3\x64\x22\x1b\x24\xc5\x52\xfd\x67\xfa\xe7\x86\x9b\x66\xd5\x96\x69\xa8\x7c\x96\x5e\x8b\x8d\xf1\xad\x16\x99\xe0\x6b\xf9\x0f\x5f\x37\xe2\x90\x8f\x7a\xac\x90\x17\x5b\x0b\x4c\xbf\xa7\xeb\xcc\x1e\x95\x26\x5b\xd8\xb6\x02\xc1\x7e\x5b\xa9\x90\x2c\xda\x5b\x2a\x54\xb6\xcb\x6d\x65\x91\x0d\x1b\x56\x94\xec\x45\x96\xce\xa5\x12\xbe\x41\x60\x5b\xbb\x56\x8f\xc7\x5b\xe9\x4b\x24\x66\x6f\x61\xe9\x95\x89\xca\x35\xbd\x6e\xac\xdLine truncated
|
||||
var FileAccountsJs = []byte("\x1f\x8b\x08\x00\x00\x00\x00\x00\x00\xff\xd4\xbd\xe9\x76\x1b\xb7\xb2\x30\xfa\xfb\x7e\x4f\x41\xf6\xf1\xee\x03\x6c\x96\x68\xd2\x19\xf6\x4e\xd3\x08\xb7\x2d\xcb\x8e\x13\x4f\x91\x6c\x27\x0e\xc3\xa3\xd5\x22\x41\x09\x16\x09\xd0\x68\x50\x83\xc9\xbe\xef\x73\x5f\xe3\x3e\xd9\x5d\x28\x00\x3d\xb1\x65\x67\x9f\x6f\x58\xeb\xfe\x21\xbb\xd1\x18\x0b\x40\x4d\xa8\x2a\xcc\xf9\x42\x48\x4e\xc8\x62\x23\x67\x46\x28\x49\xe8\x36\xda\x64\xbc\x93\x19\x2d\x66\x26\x1a\x5d\xa5\xba\x63\x58\xb4\x91\x2e\xe3\x3c\xea\x32\x73\xbb\xe6\x6a\xd1\x39\x5f\xaa\xb3\x74\xf9\xf6\x42\x64\xe3\xf2\x31\x69\xcb\x79\x2d\xe4\x5c\x5d\x8f\xdd\x5f\x6b\x0e\x57\x81\xaf\xa7\x35\x47\xc6\x97\x8b\xb1\xfd\x49\xb6\xf9\x28\x74\xb6\xc3\x89\x01\x4e\xb7\x9a\x9b\x8d\x96\x1d\x43\x38\xdb\xf2\x9b\xb5\xd2\x26\x4b\xb6\x79\x0e\xbc\xef\xdf\x68\xf9\x98\xdb\x11\x49\x56\x1d\xb2\xa1\x5b\x9b\xc8\xd9\x7e\xca\xeb\xb3\x8f\x7c\x66\xfa\x6b\xad\x8c\xb2\x3d\x01\xc9\x78\xff\x22\xcd\x5e\x5f\xcb\x37\x5a\xad\xb9\x36\xb7\xa0\x59\x14\x0a\x46\x2c\xf4\xf7\xe4\x76\x75\xa6\x96\x63\xf7\x97\x6c\x73\x50\x4c\xf7\x85\xe1\x3a\x35\x4a\xef\x76\xd1\xbf\xfe\x15\x5e\x22\x10\x4c\xf7\xd3\xec\x56\xce\x9e\x57\xbf\xd7\x52\x22\x48\x99\xee\x1b\x75\x62\xb4\x90\xe7\x6f\xd3\x73\xcc\x52\x79\x8f\x4a\xa0\xcc\x2c\x50\x40\x82\x76\x83\x50\x8c\xc7\x31\x2f\x87\xd0\x11\x32\x33\xa9\x9c\xd9\x5e\x2e\xc7\x3c\x59\x82\x08\xc3\x9c\x69\x9e\x1a\x4e\x54\x99\x99\x42\xca\x24\xbf\xee\xdc\x10\xbd\xdb\x4d\xa6\x74\xe4\x41\x2d\xfa\xa7\x42\x5e\xa9\xcb\x2a\xcc\x6c\xa3\xae\x49\xcd\xa2\x6c\x93\xad\xb9\x9c\xf3\xf9\x89\x49\xb5\x89\x42\xb9\x22\xb7\x02\x41\xb7\x62\x41\x22\x7e\xc3\x67\x1b\x23\xe4\x79\xc4\x18\xd3\xd4\x5c\x68\x75\xdd\xb1\x4d\x1e\x69\xad\x34\x89\x9e\x71\xe9\x40\xd0\x11\x59\x27\x5d\x6a\x9e\xce\x6f\x3b\x7a\x23\xa5\x2d\x42\x47\xb6\x8a\x99\x5a\xad\x97\xdc\xf0\xb9\xab\x02\xab\xc5\x7a\xec\xbb\xf2\x55\x8a\xd0\x85\xd7\x84\xe6\x0b\xa5\x89\xec\xaf\xb8\xb9\x50\x73\xa6\x40\xf6\x53\x7d\xce\xc4\x68\xe4\xba\x9f\x32\xd9\x9f\xf3\x25\x3f\x4f\x0d\xb7\x0d\xa4\x2e\x79\xc6\xce\x48\x0a\x12\xdb\x9c\x61\x2b\x33\xc6\xd8\x86\xce\x94\x34\x42\x6e\x78\x68\x60\x96\xe7\xb6\x07\x92\xdf\x18\xdb\x81\xd0\x0e\x95\xfd\x8c\x4b\xc3\x64\xff\xd4\xff\xa7\xfa\x7c\xc4\x97\x19\xef\xd4\x3a\x5c\xe4\xc7\x71\x34\xe0\x58\x81\x91\x66\x95\x81\xbb\x21\x8c\x64\x7f\x2e\xb2\x75\x6a\x66\x17\x47\x37\x33\xbe\x46\x48\xe3\x17\x9a\xdb\x86\x22\xd7\xc3\x6a\x2b\x71\x2c\xfb\xe9\x99\xde\xac\x0d\x09\x5f\x5d\x5d\x74\xa4\x59\x65\x72\x10\x11\x2c\x59\xe6\xa7\x19\xe1\x2e\x95\x5e\xa5\x4b\x5b\xdb\xb2\x8f\x8b\xc5\xf6\x58\x5b\xe0\x29\xc9\xc7\x95\xde\x25\xe5\x30\x3e\x08\xbe\x9c\x47\xb0\x44\x88\xb7\x40\x6f\x7b\x95\x2e\x37\x3c\xc1\xef\x60\xeb\x49\x5c\x75\x79\x5e\x42\xc8\xb5\x16\xc7\xa4\x09\x02\x3f\xa1\x3e\xa7\x9f\xd6\xa5\x1b\x7f\x9e\x13\x03\x12\x52\x0a\x22\x2f\xb6\x4a\x18\xce\xd6\xe8\x5b\x8f\x45\xb6\xb6\xee\x24\x8c\x0d\x52\x7d\x9e\x98\xfe\x2c\x5d\x2e\x89\xcd\x98\xe7\x33\x0b\x5d\x8b\x20\x6a\xd9\x7d\x8b\x98\x3b\xcf\x73\xd3\xbf\xd6\xe9\x9a\xcd\x10\x6a\x1b\x56\x45\x59\x4b\x42\xb7\x65\x07\x16\xb5\xb7\xb9\x7d\xb3\x45\xd6\xb6\xc8\x7a\xa2\xa6\xac\x82\x97\x03\x96\xbb\x10\x59\x8e\x15\x5f\x84\x7d\x7b\xce\xcd\x9b\xb0\x63\x5f\x2f\x60\xc5\x2e\xe2\xf8\x82\x5c\x90\x23\x32\x99\x52\x4a\x47\xab\x38\x5e\x75\x99\xc5\x03\xd2\x0d\x65\x05\x8a\xc6\x31\x59\xb3\x15\xc5\x9a\xae\xd8\xbc\xdc\xf3\x6c\x59\x79\xae\x63\x86\x35\x2d\x07\x72\x6e\x81\x30\x71\xcb\x1c\x02\x00\xc2\x1a\x9a\xf6\x17\x4a\x1f\xa5\xb3\x8b\x0a\x9a\xe5\x74\x6b\x26\x7c\x5a\xc3\xb2\x95\x31\x05\x8c\x42\x38\x18\x9a\xe7\x94\x96\x70\xb9\x75\x68\x1e\x51\xcb\xa8\x9a\x97\xd5\xf1\x49\x51\x20\x2d\xc1\x65\x51\x49\x15\xd9\x6b\x48\xe9\xb6\x5b\xe4\xd4\xb6\x24\xa4\x30\x73\xd5\x6f\xec\x0a\x9f\xa8\x29\x18\x10\x6e\x91\xbb\x81\x75\x19\xdb\xf8\x35\xee\x36\xc2\x06\x17\xe8\x82\x2d\xfb\xb8\x60\x0b\xfc\x16\xc7\x91\x42\x90\x95\xa4\x60\x51\x80\x7d\x01\xd1\xe9\x69\x7a\x9d\x0a\x13\xd1\x31\xef\x6b\x9e\xa9\xe5\x15\x27\x8b\xbe\x4f\xa5\x7d\x73\xc1\x65\x9d\x32\x69\x8f\x49\xc0\x60\x2f\x73\x0a\xcd\xcf\x1e\xf4\xe1\x3b\x4d\x2a\x35\xb7\xd5\xe8\xbb\xcc\x0c\xa4\x64\xb9\x5f\xa1\x1b\x48\x4b\xbd\xf9\x8c\x6c\xdc\x5e\x42\x98\x59\x40\xda\xd4\x50\x80\xe9\xb1\x76\xad\xa5\x90\xd2\x24\x25\x34\x2f\x67\xf0\xac\x9c\x41\xc9\x4c\x41\x08\x27\xdc\xef\xd9\xa9\x85\xf5\x95\x12\xf3\xce\xc0\x22\x27\xc4\x24\xbc\x40\xc2\x4c\x6e\x96\x4b\x28\x11\x00\xaf\xa2\xc8\xb2\xb6\xbe\xeb\x4a\x1c\x13\x5e\xa0\x82\x80\xd3\x38\xe2\x02\xd7\x02\xb8\xde\xb4\x55\x48\xfd\x68\x36\x23\xde\xc4\x26\xae\x06\xbb\x9c\xde\xde\xae\xb9\xa7\x4e\x6f\x2f\x78\x27\x34\xdf\x99\x2b\x9e\x75\xa4\x32\x9d\xb5\x56\x57\x62\xce\x3b\x69\xe7\x3f\xb1\xf0\x7f\x76\x5c\x5d\x51\x01\xad\x4d\xee\xe8\x64\x46\x24\x94\x03\x70\x6d\x54\xd7\x9d\xc5\xf7\x6e\xdd\xf9\x82\x77\x74\x4b\xe3\x72\x6c\x42\x6c\x33\x72\x0c\x00\x7e\x0d\x4b\x54\x8d\x95\x43\xd0\x84\x4f\x8c\x5d\x29\x9b\xa5\x79\x95\xae\xf8\x94\x29\xb7\x30\x80\xf7\xed\x8a\x63\x06\xff\x5e\xa8\x59\xb1\xab\xbb\x25\xa4\x6a\x40\x76\x0b\xb4\x0a\x62\xba\xdf\x17\x9a\xa8\x84\xfc\x35\xa8\x16\x10\x75\xbd\xb3\x94\xdf\x82\x35\x95\x1d\xbf\xb7\xda\xaa\x2f\x17\xdb\x75\xc9\xbf\x59\xc4\xfe\x42\xcd\x12\x33\x19\x4c\xf3\xd1\xb0\x23\x64\xc7\x60\xd7\x11\x8d\xLine truncated
|
||||
|
||||
func init() {
|
||||
err := CTX.Err()
|
||||
@@ -78,32 +75,6 @@ func init() {
|
||||
panic(err)
|
||||
}
|
||||
|
||||
rb = bytes.NewReader(FileAccountsJsMap)
|
||||
r, err = gzip.NewReader(rb)
|
||||
if err != nil {
|
||||
panic(err)
|
||||
}
|
||||
|
||||
err = r.Close()
|
||||
if err != nil {
|
||||
panic(err)
|
||||
}
|
||||
|
||||
f, err = FS.OpenFile(CTX, "accounts.js.map", os.O_RDWR|os.O_CREATE|os.O_TRUNC, 0777)
|
||||
if err != nil {
|
||||
panic(err)
|
||||
}
|
||||
|
||||
_, err = io.Copy(f, r)
|
||||
if err != nil {
|
||||
panic(err)
|
||||
}
|
||||
|
||||
err = f.Close()
|
||||
if err != nil {
|
||||
panic(err)
|
||||
}
|
||||
|
||||
Handler = &webdav.Handler{
|
||||
FileSystem: FS,
|
||||
LockSystem: webdav.NewMemLS(),
|
||||
|
||||
@@ -2,6 +2,7 @@ package command
|
||||
|
||||
import (
|
||||
"fmt"
|
||||
|
||||
"github.com/micro/cli/v2"
|
||||
"github.com/micro/go-micro/v2/client/grpc"
|
||||
"github.com/owncloud/ocis/accounts/pkg/config"
|
||||
|
||||
@@ -5,15 +5,23 @@ import (
|
||||
"os"
|
||||
"os/signal"
|
||||
"strings"
|
||||
"time"
|
||||
|
||||
"contrib.go.opencensus.io/exporter/jaeger"
|
||||
"contrib.go.opencensus.io/exporter/ocagent"
|
||||
"contrib.go.opencensus.io/exporter/zipkin"
|
||||
"github.com/micro/cli/v2"
|
||||
"github.com/oklog/run"
|
||||
openzipkin "github.com/openzipkin/zipkin-go"
|
||||
zipkinhttp "github.com/openzipkin/zipkin-go/reporter/http"
|
||||
"github.com/owncloud/ocis/accounts/pkg/config"
|
||||
"github.com/owncloud/ocis/accounts/pkg/flagset"
|
||||
"github.com/owncloud/ocis/accounts/pkg/metrics"
|
||||
"github.com/owncloud/ocis/accounts/pkg/server/grpc"
|
||||
"github.com/owncloud/ocis/accounts/pkg/server/http"
|
||||
svc "github.com/owncloud/ocis/accounts/pkg/service/v0"
|
||||
"go.opencensus.io/stats/view"
|
||||
"go.opencensus.io/trace"
|
||||
)
|
||||
|
||||
// Server is the entry point for the server command.
|
||||
@@ -34,7 +42,77 @@ func Server(cfg *config.Config) *cli.Command {
|
||||
},
|
||||
Action: func(c *cli.Context) error {
|
||||
logger := NewLogger(cfg)
|
||||
|
||||
if cfg.Tracing.Enabled {
|
||||
switch t := cfg.Tracing.Type; t {
|
||||
case "agent":
|
||||
exporter, err := ocagent.NewExporter(
|
||||
ocagent.WithReconnectionPeriod(5*time.Second),
|
||||
ocagent.WithAddress(cfg.Tracing.Endpoint),
|
||||
ocagent.WithServiceName(cfg.Tracing.Service),
|
||||
)
|
||||
if err != nil {
|
||||
logger.Error().
|
||||
Err(err).
|
||||
Str("endpoint", cfg.Tracing.Endpoint).
|
||||
Str("collector", cfg.Tracing.Collector).
|
||||
Msg("Failed to create agent tracing")
|
||||
return err
|
||||
}
|
||||
trace.RegisterExporter(exporter)
|
||||
view.RegisterExporter(exporter)
|
||||
case "jaeger":
|
||||
exporter, err := jaeger.NewExporter(
|
||||
jaeger.Options{
|
||||
AgentEndpoint: cfg.Tracing.Endpoint,
|
||||
CollectorEndpoint: cfg.Tracing.Collector,
|
||||
Process: jaeger.Process{
|
||||
ServiceName: cfg.Tracing.Service,
|
||||
},
|
||||
},
|
||||
)
|
||||
if err != nil {
|
||||
logger.Error().
|
||||
Err(err).
|
||||
Str("endpoint", cfg.Tracing.Endpoint).
|
||||
Str("collector", cfg.Tracing.Collector).
|
||||
Msg("Failed to create jaeger tracing")
|
||||
return err
|
||||
}
|
||||
trace.RegisterExporter(exporter)
|
||||
case "zipkin":
|
||||
endpoint, err := openzipkin.NewEndpoint(
|
||||
cfg.Tracing.Service,
|
||||
cfg.Tracing.Endpoint,
|
||||
)
|
||||
if err != nil {
|
||||
logger.Error().
|
||||
Err(err).
|
||||
Str("endpoint", cfg.Tracing.Endpoint).
|
||||
Str("collector", cfg.Tracing.Collector).
|
||||
Msg("Failed to create zipkin tracing")
|
||||
return err
|
||||
}
|
||||
exporter := zipkin.NewExporter(
|
||||
zipkinhttp.NewReporter(
|
||||
cfg.Tracing.Collector,
|
||||
),
|
||||
endpoint,
|
||||
)
|
||||
trace.RegisterExporter(exporter)
|
||||
default:
|
||||
logger.Warn().
|
||||
Str("type", t).
|
||||
Msg("Unknown tracing backend")
|
||||
}
|
||||
trace.ApplyConfig(
|
||||
trace.Config{
|
||||
DefaultSampler: trace.AlwaysSample(),
|
||||
},
|
||||
)
|
||||
} else {
|
||||
logger.Debug().
|
||||
Msg("Tracing is not enabled")
|
||||
}
|
||||
var (
|
||||
gr = run.Group{}
|
||||
ctx, cancel = context.WithCancel(context.Background())
|
||||
|
||||
@@ -100,6 +100,15 @@ type Bound struct {
|
||||
Lower, Upper int64
|
||||
}
|
||||
|
||||
// Tracing defines the available tracing configuration.
|
||||
type Tracing struct {
|
||||
Enabled bool
|
||||
Type string
|
||||
Endpoint string
|
||||
Collector string
|
||||
Service string
|
||||
}
|
||||
|
||||
// Config merges all Account config parameters.
|
||||
type Config struct {
|
||||
LDAP LDAP
|
||||
@@ -112,6 +121,7 @@ type Config struct {
|
||||
Repo Repo
|
||||
Index Index
|
||||
ServiceUser ServiceUser
|
||||
Tracing Tracing
|
||||
}
|
||||
|
||||
// New returns a new config.
|
||||
|
||||
@@ -36,6 +36,40 @@ func RootWithConfig(cfg *config.Config) []cli.Flag {
|
||||
// ServerWithConfig applies cfg to the root flagset
|
||||
func ServerWithConfig(cfg *config.Config) []cli.Flag {
|
||||
return []cli.Flag{
|
||||
&cli.BoolFlag{
|
||||
Name: "tracing-enabled",
|
||||
Usage: "Enable sending traces",
|
||||
EnvVars: []string{"ACCOUNTS_TRACING_ENABLED"},
|
||||
Destination: &cfg.Tracing.Enabled,
|
||||
},
|
||||
&cli.StringFlag{
|
||||
Name: "tracing-type",
|
||||
Value: "jaeger",
|
||||
Usage: "Tracing backend type",
|
||||
EnvVars: []string{"ACCOUNTS_TRACING_TYPE"},
|
||||
Destination: &cfg.Tracing.Type,
|
||||
},
|
||||
&cli.StringFlag{
|
||||
Name: "tracing-endpoint",
|
||||
Value: "",
|
||||
Usage: "Endpoint for the agent",
|
||||
EnvVars: []string{"ACCOUNTS_TRACING_ENDPOINT"},
|
||||
Destination: &cfg.Tracing.Endpoint,
|
||||
},
|
||||
&cli.StringFlag{
|
||||
Name: "tracing-collector",
|
||||
Value: "",
|
||||
Usage: "Endpoint for the collector",
|
||||
EnvVars: []string{"ACCOUNTS_TRACING_COLLECTOR"},
|
||||
Destination: &cfg.Tracing.Collector,
|
||||
},
|
||||
&cli.StringFlag{
|
||||
Name: "tracing-service",
|
||||
Value: "accounts",
|
||||
Usage: "Service name for tracing",
|
||||
EnvVars: []string{"ACCOUNTS_TRACING_SERVICE"},
|
||||
Destination: &cfg.Tracing.Service,
|
||||
},
|
||||
&cli.StringFlag{
|
||||
Name: "http-namespace",
|
||||
Value: "com.owncloud.web",
|
||||
|
||||
@@ -1,8 +1,12 @@
|
||||
package service
|
||||
|
||||
import (
|
||||
"bytes"
|
||||
"context"
|
||||
"crypto/sha256"
|
||||
"encoding/hex"
|
||||
"fmt"
|
||||
"github.com/owncloud/ocis/ocis-pkg/cache"
|
||||
"golang.org/x/crypto/bcrypt"
|
||||
"path"
|
||||
"regexp"
|
||||
@@ -32,6 +36,12 @@ import (
|
||||
// accLock mutually exclude readers from writers on account files
|
||||
var accLock sync.Mutex
|
||||
|
||||
// passwordValidCache caches basic auth password validations
|
||||
var passwordValidCache = cache.NewCache(cache.Size(1024))
|
||||
|
||||
// passwordValidCacheExpiration defines the entry lifetime
|
||||
const passwordValidCacheExpiration = 10 * time.Minute
|
||||
|
||||
// an auth request is currently hardcoded and has to match this regex
|
||||
// login eq \"teddy\" and password eq \"F&1!b90t111!\"
|
||||
var authQuery = regexp.MustCompile(`^login eq '(.*)' and password eq '(.*)'$`) // TODO how is ' escaped in the password?
|
||||
@@ -128,7 +138,6 @@ func (s Service) ListAccounts(ctx context.Context, in *proto.ListAccountsRequest
|
||||
|
||||
teardownServiceUser := s.serviceUserToIndex()
|
||||
defer teardownServiceUser()
|
||||
|
||||
match, authRequest := getAuthQueryMatch(in.Query)
|
||||
if authRequest {
|
||||
password := match[2]
|
||||
@@ -152,11 +161,54 @@ func (s Service) ListAccounts(ctx context.Context, in *proto.ListAccountsRequest
|
||||
if err != nil || a.PasswordProfile == nil || len(a.PasswordProfile.Password) == 0 {
|
||||
return merrors.Unauthorized(s.id, "account not found or invalid credentials")
|
||||
}
|
||||
if !isPasswordValid(s.log, a.PasswordProfile.Password, password) {
|
||||
return merrors.Unauthorized(s.id, "account not found or invalid credentials")
|
||||
|
||||
// isPasswordValid uses bcrypt.CompareHashAndPassword which is slow by design.
|
||||
// if every request that matches authQuery regex needs to do this step over and over again,
|
||||
// this is secure but also slow. In this implementation we keep it same secure but increase the speed.
|
||||
//
|
||||
// flow:
|
||||
// - request comes in
|
||||
// - it creates a sha256 based on found account PasswordProfile.LastPasswordChangeDateTime and requested password (v)
|
||||
// - it checks if the cache already contains an entry that matches found account Id // account PasswordProfile.LastPasswordChangeDateTime (k)
|
||||
// - if no entry exists it runs the bcrypt.CompareHashAndPassword as before and if everything is ok it stores the
|
||||
// result by the (k) as key and (v) as value. If not it errors
|
||||
// - if a entry is found it checks if the given value matches (v). If it doesnt match the cache entry gets removed
|
||||
// and it errors.
|
||||
//
|
||||
// if many concurrent requests from the same user come in within a short period of time, it's possible that e is still nil.
|
||||
// This is why all this needs to be wrapped within a sync.Mutex locking to prevent calling bcrypt.CompareHashAndPassword unnecessarily too often.
|
||||
{
|
||||
var suspicious bool
|
||||
|
||||
kh := sha256.New()
|
||||
kh.Write([]byte(a.Id))
|
||||
k := hex.EncodeToString(kh.Sum([]byte(a.PasswordProfile.LastPasswordChangeDateTime.String())))
|
||||
|
||||
vh := sha256.New()
|
||||
vh.Write([]byte(a.PasswordProfile.Password))
|
||||
v := vh.Sum([]byte(password))
|
||||
|
||||
e := passwordValidCache.Get(k)
|
||||
|
||||
if e == nil {
|
||||
suspicious = !isPasswordValid(s.log, a.PasswordProfile.Password, password)
|
||||
} else if !bytes.Equal(e.V.([]byte), v) {
|
||||
suspicious = true
|
||||
}
|
||||
|
||||
if suspicious {
|
||||
passwordValidCache.Unset(k)
|
||||
return merrors.Unauthorized(s.id, "account not found or invalid credentials")
|
||||
}
|
||||
|
||||
if e == nil {
|
||||
passwordValidCache.Set(k, v, time.Now().Add(passwordValidCacheExpiration))
|
||||
}
|
||||
}
|
||||
|
||||
a.PasswordProfile.Password = ""
|
||||
out.Accounts = []*proto.Account{a}
|
||||
|
||||
return nil
|
||||
}
|
||||
|
||||
|
||||
@@ -0,0 +1,76 @@
|
||||
package service
|
||||
|
||||
import (
|
||||
"context"
|
||||
|
||||
"github.com/golang/protobuf/ptypes/empty"
|
||||
v0proto "github.com/owncloud/ocis/accounts/pkg/proto/v0"
|
||||
"go.opencensus.io/trace"
|
||||
)
|
||||
|
||||
// NewTracing returns a service that instruments traces.
|
||||
func NewTracing(next v0proto.AccountsServiceHandler) v0proto.AccountsServiceHandler {
|
||||
return tracing{
|
||||
next: next,
|
||||
}
|
||||
}
|
||||
|
||||
type tracing struct {
|
||||
next v0proto.AccountsServiceHandler
|
||||
}
|
||||
|
||||
func (t tracing) ListAccounts(ctx context.Context, req *v0proto.ListAccountsRequest, rsp *v0proto.ListAccountsResponse) error {
|
||||
ctx, span := trace.StartSpan(ctx, "Accounts.ListAccounts")
|
||||
defer span.End()
|
||||
|
||||
span.Annotate([]trace.Attribute{
|
||||
trace.Int64Attribute("page_size", int64(req.PageSize)),
|
||||
trace.StringAttribute("page_token", req.PageToken),
|
||||
trace.StringAttribute("field_mask", req.FieldMask.String()),
|
||||
}, "Execute Accounts.ListAccount handler")
|
||||
|
||||
return t.next.ListAccounts(ctx, req, rsp)
|
||||
}
|
||||
|
||||
func (t tracing) GetAccount(ctx context.Context, req *v0proto.GetAccountRequest, acc *v0proto.Account) error {
|
||||
ctx, span := trace.StartSpan(ctx, "Accounts.GetAccount")
|
||||
defer span.End()
|
||||
|
||||
span.Annotate([]trace.Attribute{
|
||||
trace.StringAttribute("id", req.Id),
|
||||
}, "Execute Accounts.GetAccount handler")
|
||||
|
||||
return t.next.GetAccount(ctx, req, acc)
|
||||
}
|
||||
|
||||
func (t tracing) CreateAccount(ctx context.Context, req *v0proto.CreateAccountRequest, acc *v0proto.Account) error {
|
||||
ctx, span := trace.StartSpan(ctx, "Accounts.CreateAccount")
|
||||
defer span.End()
|
||||
|
||||
span.Annotate([]trace.Attribute{
|
||||
trace.StringAttribute("account", req.Account.String()),
|
||||
}, "Execute Accounts.CreateAccount handler")
|
||||
|
||||
return t.next.CreateAccount(ctx, req, acc)
|
||||
}
|
||||
|
||||
func (t tracing) UpdateAccount(ctx context.Context, req *v0proto.UpdateAccountRequest, acc *v0proto.Account) error {
|
||||
ctx, span := trace.StartSpan(ctx, "Accounts.UpdateAccount")
|
||||
defer span.End()
|
||||
|
||||
span.Annotate([]trace.Attribute{
|
||||
trace.StringAttribute("account", req.Account.String()),
|
||||
}, "Execute Accounts.UpdateAccount handler")
|
||||
|
||||
return t.next.UpdateAccount(ctx, req, acc)
|
||||
}
|
||||
|
||||
func (t tracing) DeleteAccount(ctx context.Context, req *v0proto.DeleteAccountRequest, e *empty.Empty) error {
|
||||
ctx, span := trace.StartSpan(ctx, "Accounts.DeleteAccount")
|
||||
defer span.End()
|
||||
|
||||
span.Annotate([]trace.Attribute{
|
||||
trace.StringAttribute("id", req.Id),
|
||||
}, "Execute Accounts.DeleteAccout handler")
|
||||
return t.next.DeleteAccount(ctx, req, e)
|
||||
}
|
||||
@@ -3,8 +3,8 @@ title: "Configuration"
|
||||
date: "{{ date "2006-01-02T15:04:05-0700" now }}"
|
||||
weight: 20
|
||||
geekdocRepo: https://github.com/owncloud/ocis
|
||||
geekdocEditPath: edit/master/docs/extensions/accounts
|
||||
geekdocFilePath: configuration.md
|
||||
geekdocEditPath: edit/master/accounts/templates
|
||||
geekdocFilePath: CONFIGURATION.tmpl
|
||||
---
|
||||
{{- define "options"}}
|
||||
{{ $fnName := (last . ).Flags -}}
|
||||
@@ -23,10 +23,6 @@ geekdocFilePath: configuration.md
|
||||
|
||||
## Configuration
|
||||
|
||||
oCIS Single Binary is not responsible for configuring extensions. Instead, each extension could either be configured by environment variables, cli flags or config files.
|
||||
|
||||
Each extension has its dedicated documentation page (e.g. https://owncloud.github.io/extensions/ocis_accounts/configuration) which lists all possible configurations. Config files and environment variables are picked up if you use the `./bin/ocis server` command within the oCIS single binary. Command line flags must be set explicitly on the extensions subcommands.
|
||||
|
||||
### Configuration using config files
|
||||
|
||||
Out of the box extensions will attempt to read configuration details from:
|
||||
@@ -41,7 +37,7 @@ For this configuration to be picked up, have a look at your extension `root` com
|
||||
|
||||
So far we support the file formats `JSON` and `YAML`, if you want to get a full example configuration just take a look at [our repository](https://github.com/owncloud/ocis/tree/master/config), there you can always see the latest configuration format. These example configurations include all available options and the default values. The configuration file will be automatically loaded if it's placed at `/etc/ocis/ocis.yml`, `${HOME}/.ocis/ocis.yml` or `$(pwd)/config/ocis.yml`.
|
||||
|
||||
### Envrionment variables
|
||||
### Environment variables
|
||||
|
||||
If you prefer to configure the service with environment variables you can see the available variables below.
|
||||
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
<template>
|
||||
<div>
|
||||
<div class="uk-flex uk-flex-column" id="accounts-app">
|
||||
<div class="uk-flex uk-flex-column uk-height-1-1" id="accounts-app">
|
||||
<template v-if="isInitialized">
|
||||
<div class="oc-app-bar">
|
||||
<accounts-batch-actions
|
||||
@@ -10,7 +10,7 @@
|
||||
/>
|
||||
<accounts-create v-else />
|
||||
</div>
|
||||
<oc-grid class="uk-height-1-1 uk-flex-1 uk-overflow-auto">
|
||||
<oc-grid class="uk-flex-1 uk-overflow-auto">
|
||||
<div class="uk-width-expand">
|
||||
<accounts-list :accounts="accounts" />
|
||||
</div>
|
||||
|
||||
@@ -0,0 +1,6 @@
|
||||
Enhancement: Update reva to v1.4.1-0.20201125172625-a5ab834a565d
|
||||
|
||||
Mostly to bring fixes to pressing changes.
|
||||
|
||||
https://github.com/cs3org/reva/pull/1320
|
||||
https://github.com/cs3org/reva/pull/1338
|
||||
@@ -0,0 +1,8 @@
|
||||
Change: Cache password validation
|
||||
|
||||
Tags: accounts
|
||||
|
||||
The password validity check for requests like `login eq '%s' and password eq '%s'` is now cached for 10 minutes.
|
||||
This improves the performance for basic auth requests.
|
||||
|
||||
https://github.com/owncloud/ocis/pull/958
|
||||
@@ -0,0 +1,7 @@
|
||||
Bugfix: Enable scrolling in accounts list
|
||||
|
||||
Tags: accounts
|
||||
|
||||
We've fixed the accounts list to enable scrolling.
|
||||
|
||||
https://github.com/owncloud/ocis/pull/909
|
||||
@@ -0,0 +1,5 @@
|
||||
Enhancement: add tracing to the accounts service
|
||||
|
||||
Added tracing to the accounts service.
|
||||
|
||||
https://github.com/owncloud/ocis/issues/1016
|
||||
@@ -0,0 +1,8 @@
|
||||
Enhancement: Add k6
|
||||
|
||||
Tags: tests
|
||||
|
||||
add k6 as a performance testing framework
|
||||
|
||||
https://github.com/owncloud/ocis/pull/941
|
||||
https://github.com/owncloud/ocis/pull/983
|
||||
@@ -0,0 +1,6 @@
|
||||
Change: replace the library which scales the images
|
||||
|
||||
The library went out of support.
|
||||
Also did some refactoring of the thumbnails service code.
|
||||
|
||||
https://github.com/owncloud/ocis/pull/910
|
||||
@@ -0,0 +1,7 @@
|
||||
Enhancement: add permission check when assigning and removing roles
|
||||
|
||||
Everyone could add and remove roles from users.
|
||||
Added a new permission and a check so that only users with the role management permissions can assign and unassign roles.
|
||||
|
||||
|
||||
https://github.com/owncloud/ocis/issues/879
|
||||
@@ -0,0 +1,7 @@
|
||||
Enhancement: Create OnlyOffice extension
|
||||
|
||||
Tags: OnlyOffice
|
||||
|
||||
We've created an OnlyOffice extension which enables users to create and edit docx documents and open spreadsheets and presentations.
|
||||
|
||||
https://github.com/owncloud/ocis/pull/857
|
||||
@@ -0,0 +1,6 @@
|
||||
Enhancement: Show basic-auth warning only once
|
||||
|
||||
Show basic-auth warning only on startup instead on every request.
|
||||
|
||||
|
||||
https://github.com/owncloud/ocis/pull/886
|
||||
@@ -0,0 +1,6 @@
|
||||
Change: Enable OpenID dynamic client registration
|
||||
|
||||
Enable OpenID dynamic client registration
|
||||
|
||||
https://github.com/owncloud/ocis/issues/811
|
||||
https://github.com/owncloud/ocis/pull/813
|
||||
@@ -0,0 +1,6 @@
|
||||
Bugfix: Fix path of files shared with me in ocs api
|
||||
|
||||
The path of files shared with me using the ocs api was pointing to an incorrect location.
|
||||
|
||||
https://github.com/owncloud/product/issues/204
|
||||
https://github.com/owncloud/ocis/pull/994
|
||||
@@ -0,0 +1,6 @@
|
||||
Enhancement: add a version command to ocis
|
||||
|
||||
The version command was only implemented in the extensions.
|
||||
This adds the version command to ocis to list all services in the ocis namespace.
|
||||
|
||||
https://github.com/owncloud/ocis/pull/915
|
||||
@@ -0,0 +1,6 @@
|
||||
Bugfix: Serve index.html for directories
|
||||
|
||||
The static middleware in ocis-pkg now serves index.html instead of returning 404 on paths with a trailing `/`.
|
||||
|
||||
https://github.com/owncloud/ocis/pull/912
|
||||
https://github.com/owncloud/ocis-pkg/issues/63
|
||||
@@ -0,0 +1,5 @@
|
||||
Enhancement: Create a proxy access-log
|
||||
|
||||
Logs client access at the proxy
|
||||
|
||||
https://github.com/owncloud/ocis/pull/889
|
||||
@@ -0,0 +1,8 @@
|
||||
Change: Proxy allow insecure upstreams
|
||||
|
||||
Tags: proxy
|
||||
|
||||
We can now configure the proxy if insecure upstream servers are allowed.
|
||||
This was added since you need to disable certificate checks fore some situations like testing.
|
||||
|
||||
https://github.com/owncloud/ocis/pull/1007
|
||||
@@ -0,0 +1,7 @@
|
||||
Enhancement: Cache userinfo in proxy
|
||||
|
||||
Tags: proxy
|
||||
|
||||
We introduced caching for the userinfo response. The token expiration is used for cache invalidation if available. Otherwise we fall back to a preconfigured TTL (default 10 seconds).
|
||||
|
||||
https://github.com/owncloud/ocis/pull/877
|
||||
@@ -0,0 +1,6 @@
|
||||
Enhancement: Update reva to v1.4.1-0.20201125144025-57da0c27434c
|
||||
|
||||
Mostly to bring fixes to pressing changes.
|
||||
|
||||
https://github.com/cs3org/reva/pull/1320
|
||||
https://github.com/cs3org/reva/pull/1338
|
||||
@@ -0,0 +1,8 @@
|
||||
Change: Theme welcome and choose account pages
|
||||
|
||||
Tags: konnectd
|
||||
|
||||
We've themed the konnectd pages Welcome and Choose account.
|
||||
All text has a white color now to be easily readable on the dark background.
|
||||
|
||||
https://github.com/owncloud/ocis/pull/887
|
||||
@@ -0,0 +1,8 @@
|
||||
Change: Update phoenix to v0.25.0
|
||||
|
||||
Tags: web
|
||||
|
||||
We updated phoenix to v0.25.0. Please refer to the changelog (linked) for details on the phoenix release.
|
||||
|
||||
https://github.com/owncloud/ocis/pull/868
|
||||
https://github.com/owncloud/phoenix/releases/tag/v0.25.0
|
||||
@@ -0,0 +1,8 @@
|
||||
Change: Update phoenix to v0.26.0
|
||||
|
||||
Tags: web
|
||||
|
||||
We updated phoenix to v0.26.0. Please refer to the changelog (linked) for details on the phoenix release.
|
||||
|
||||
https://github.com/owncloud/phoenix/releases/tag/v0.26.0
|
||||
https://github.com/owncloud/ocis/pull/935
|
||||
@@ -0,0 +1,8 @@
|
||||
Change: Update phoenix to v0.27.0
|
||||
|
||||
Tags: web
|
||||
|
||||
We updated phoenix to v0.27.0. Please refer to the changelog (linked) for details on the phoenix release.
|
||||
|
||||
https://github.com/owncloud/ocis/pull/943
|
||||
https://github.com/owncloud/phoenix/releases/tag/v0.27.0
|
||||
@@ -0,0 +1,8 @@
|
||||
Change: Update phoenix to v0.28.0
|
||||
|
||||
Tags: web
|
||||
|
||||
We updated phoenix to v0.28.0. Please refer to the changelog (linked) for details on the phoenix release.
|
||||
|
||||
https://github.com/owncloud/ocis/pull/1027
|
||||
https://github.com/owncloud/phoenix/releases/tag/v0.28.0
|
||||
@@ -0,0 +1,8 @@
|
||||
Change: Update phoenix to v0.29.0
|
||||
|
||||
Tags: web
|
||||
|
||||
We updated phoenix to v0.29.0. Please refer to the changelog (linked) for details on the phoenix release.
|
||||
|
||||
https://github.com/owncloud/ocis/pull/1034
|
||||
https://github.com/owncloud/phoenix/releases/tag/v0.29.0
|
||||
@@ -0,0 +1,22 @@
|
||||
Enhancement: Update reva to v1.4.1-0.20201123062044-b2c4af4e897d
|
||||
|
||||
* Refactor the uploading files workflow from various clients [cs3org/reva#1285](https://github.com/cs3org/reva/pull/1285), [cs3org/reva#1314](https://github.com/cs3org/reva/pull/1314)
|
||||
* [OCS] filter share with me requests [cs3org/reva#1302](https://github.com/cs3org/reva/pull/1302)
|
||||
* Fix listing shares for nonexisting path [cs3org/reva#1316](https://github.com/cs3org/reva/pull/1316)
|
||||
* prevent nil pointer when listing shares [cs3org/reva#1317](https://github.com/cs3org/reva/pull/1317)
|
||||
* Sharee retrieves the information about a share -but gets response containing all the shares [owncloud/ocis-reva#260](https://github.com/owncloud/ocis-reva/issues/260)
|
||||
* Deleting a public link after renaming a file [owncloud/ocis-reva#311](https://github.com/owncloud/ocis-reva/issues/311)
|
||||
* Avoid log spam [cs3org/reva#1323](https://github.com/cs3org/reva/pull/1323), [cs3org/reva#1324](https://github.com/cs3org/reva/pull/1324)
|
||||
* Fix trashbin [cs3org/reva#1326](https://github.com/cs3org/reva/pull/1326)
|
||||
|
||||
https://github.com/owncloud/ocis/pull/823
|
||||
https://github.com/cs3org/reva/pull/1285
|
||||
https://github.com/cs3org/reva/pull/1302
|
||||
https://github.com/cs3org/reva/pull/1314
|
||||
https://github.com/cs3org/reva/pull/1316
|
||||
https://github.com/cs3org/reva/pull/1317
|
||||
https://github.com/cs3org/reva/pull/1323
|
||||
https://github.com/cs3org/reva/pull/1324
|
||||
https://github.com/cs3org/reva/pull/1326
|
||||
https://github.com/owncloud/ocis-reva/issues/260
|
||||
https://github.com/owncloud/ocis-reva/issues/311
|
||||
@@ -0,0 +1,7 @@
|
||||
Enhancement: Update reva to v1.4.1-0.20201130061320-ac85e68e0600
|
||||
|
||||
* Fix move operation in ocis storage driver [csorg/reva#1343](https://github.com/cs3org/reva/pull/1343)
|
||||
|
||||
https://github.com/owncloud/ocis/pull/980
|
||||
https://github.com/owncloud/ocis/issues/975
|
||||
https://github.com/cs3org/reva/pull/1343
|
||||
@@ -0,0 +1,10 @@
|
||||
Enhancement: Update reva to v1.4.1-0.20201127111856-e6a6212c1b7b
|
||||
|
||||
Tags: reva
|
||||
|
||||
* Fix capabilities response for multiple client versions #1331 [cs3org/reva#1331](https://github.com/cs3org/reva/pull/1331)
|
||||
* Fix home storage redirect for remote.php/dav/files [cs3org/reva#1342](https://github.com/cs3org/reva/pull/1342)
|
||||
|
||||
https://github.com/owncloud/ocis/pull/971
|
||||
https://github.com/cs3org/reva/pull/1331
|
||||
https://github.com/cs3org/reva/pull/1342
|
||||
@@ -0,0 +1,20 @@
|
||||
Enhancement: Add www-authenticate based on user agent
|
||||
|
||||
Tags: reva, proxy
|
||||
|
||||
We now comply with HTTP spec by adding Www-Authenticate headers on every `401` request. Furthermore, we not only take care of such a thing at the Proxy but also Reva will take care of it. In addition, we now are able to lock-in a set of User-Agent to specific challenges.
|
||||
|
||||
Admins can use this feature by configuring OCIS + Reva following this approach:
|
||||
|
||||
```
|
||||
STORAGE_FRONTEND_MIDDLEWARE_AUTH_CREDENTIALS_BY_USER_AGENT="mirall:basic, Mozilla/5.0 (Macintosh; Intel Mac OS X 10.15; rv:83.0) Gecko/20100101 Firefox/83.0:bearer" \
|
||||
PROXY_MIDDLEWARE_AUTH_CREDENTIALS_BY_USER_AGENT="mirall:basic, Mozilla/5.0 (Macintosh; Intel Mac OS X 10.15; rv:83.0) Gecko/20100101 Firefox/83.0:bearer" \
|
||||
PROXY_ENABLE_BASIC_AUTH=true \
|
||||
go run cmd/ocis/main.go server
|
||||
```
|
||||
|
||||
We introduced two new environment variables:
|
||||
|
||||
`STORAGE_FRONTEND_MIDDLEWARE_AUTH_CREDENTIALS_BY_USER_AGENT` as well as `PROXY_MIDDLEWARE_AUTH_CREDENTIALS_BY_USER_AGENT`, The reason they have the same value is not to rely on the os env on a distributed environment, so in redundancy we trust. They both configure the same on the backend storage and OCIS Proxy.
|
||||
|
||||
https://github.com/owncloud/ocis/pull/1009
|
||||
@@ -5,3 +5,4 @@ Tags: accounts, settings, web
|
||||
We now set http caching headers for static web assets, so that they don't get force-reloaded on each request. The max-age for the caching is configurable and defaults to 7 days. The last modified date of the assets is set to the service start date, so that a service restart results in cache invalidation.
|
||||
|
||||
https://github.com/owncloud/ocis/pull/866
|
||||
https://github.com/owncloud/ocis/pull/934
|
||||
File renamed without changes.
@@ -1,2 +0,0 @@
|
||||
Please refer to [our documentation](https://owncloud.github.io/ocis/deployment/ocis_external_konnectd/)
|
||||
for instructions on how to deploy this scenario.
|
||||
@@ -1,2 +0,0 @@
|
||||
OCIS_DOMAIN=ocis.domain.com
|
||||
IDP_DOMAIN=idp.domain.com
|
||||
-18
@@ -1,18 +0,0 @@
|
||||
---
|
||||
# OpenID Connect client registry.
|
||||
clients:
|
||||
- id: phoenix
|
||||
name: OCIS
|
||||
application_type: web
|
||||
insecure: yes
|
||||
trusted: yes
|
||||
redirect_uris:
|
||||
- http://ocis.domain.com/
|
||||
- https://ocis.domain.com/
|
||||
- http://ocis.domain.com/oidc-callback.html
|
||||
- https://ocis.domain.com/oidc-callback.html
|
||||
- http://ocis.domain.com/oidc-silent-redirect.html
|
||||
- https://ocis.domain.com/oidc-silent-redirect.html
|
||||
origins:
|
||||
- http://ocis.domain.com
|
||||
- https://ocis.domain.com
|
||||
@@ -1,67 +0,0 @@
|
||||
version: '3.7'
|
||||
|
||||
services:
|
||||
|
||||
traefik:
|
||||
image: "traefik:v2.2"
|
||||
container_name: "traefik"
|
||||
networks:
|
||||
- idpnet
|
||||
command:
|
||||
- "--providers.docker=true"
|
||||
- "--providers.docker.exposedbydefault=false"
|
||||
- "--entrypoints.web.address=:80"
|
||||
- "--entrypoints.websecure.address=:443"
|
||||
- "--certificatesresolvers.idp.acme.tlschallenge=true"
|
||||
- "--certificatesresolvers.idp.acme.caserver=https://acme-v02.api.letsencrypt.org/directory"
|
||||
- "--certificatesresolvers.idp.acme.email=postmaster@${IDP_DOMAIN}"
|
||||
- "--certificatesresolvers.idp.acme.storage=/letsencrypt/acme.json"
|
||||
ports:
|
||||
- "80:80"
|
||||
- "443:443"
|
||||
- "8080:8080"
|
||||
volumes:
|
||||
- "letsencrypt:/letsencrypt"
|
||||
- "/var/run/docker.sock:/var/run/docker.sock:ro"
|
||||
|
||||
konnectd:
|
||||
container_name: konnectd
|
||||
image: owncloud/ocis-konnectd:latest
|
||||
networks:
|
||||
- idpnet
|
||||
ports:
|
||||
- "9130:9130"
|
||||
volumes:
|
||||
- ./config:/etc/ocis
|
||||
environment:
|
||||
OCIS_LOG_LEVEL: debug
|
||||
KONNECTD_ISS: https://${IDP_DOMAIN}
|
||||
KONNECTD_IDENTIFIER_REGISTRATION_CONF: "/etc/ocis/identifier-registration.yml"
|
||||
KONNECTD_LOG_LEVEL: debug
|
||||
KONNECTD_TLS: '0'
|
||||
LDAP_URI: ldap://${OCIS_DOMAIN}:9125
|
||||
LDAP_BINDDN: cn=konnectd,ou=sysusers,dc=example,dc=org
|
||||
LDAP_BINDPW: konnectd
|
||||
LDAP_BASEDN: ou=users,dc=example,dc=org
|
||||
LDAP_SCOPE: sub
|
||||
LDAP_LOGIN_ATTRIBUTE: cn
|
||||
LDAP_EMAIL_ATTRIBUTE: mail
|
||||
LDAP_NAME_ATTRIBUTE=: n
|
||||
LDAP_UUID_ATTRIBUTE: uid
|
||||
LDAP_UUID_ATTRIBUTE_TYPE: text
|
||||
LDAP_FILTER: (objectClass=posixaccount)
|
||||
labels:
|
||||
- "traefik.enable=true"
|
||||
- "traefik.http.services.idp.loadbalancer.server.port=9200"
|
||||
- "traefik.docker.network=idpnet"
|
||||
- "traefik.port=9130"
|
||||
- "traefik.protocol=https"
|
||||
# ssl config
|
||||
- "traefik.http.routers.idp.rule=Host(`${IDP_DOMAIN}`)"
|
||||
- "traefik.http.routers.idp.entrypoints=websecure"
|
||||
- "traefik.http.routers.idp.tls.certresolver=idp"
|
||||
# http -> https forwarding
|
||||
- "traefik.http.middlewares.redirect-to-https.redirectscheme.scheme=https"
|
||||
- "traefik.http.routers.idp-redirs.rule=Host(`${IDP_DOMAIN}`)"
|
||||
- "traefik.http.routers.idp-redirs.entrypoints=web"
|
||||
- "traefik.http.routers.idp-redirs.middlewares=redirect-to-https"
|
||||
@@ -1,2 +0,0 @@
|
||||
OCIS_DOMAIN=ocis.domain.com
|
||||
IDP_DOMAIN=idp.domain.com
|
||||
@@ -1,68 +0,0 @@
|
||||
version: '3.7'
|
||||
|
||||
services:
|
||||
|
||||
traefik:
|
||||
image: "traefik:v2.2"
|
||||
container_name: "traefik"
|
||||
networks:
|
||||
- ocisnet
|
||||
command:
|
||||
- "--api.insecure=true"
|
||||
- "--providers.docker=true"
|
||||
- "--providers.docker.exposedbydefault=false"
|
||||
- "--entrypoints.web.address=:80"
|
||||
- "--entrypoints.websecure.address=:443"
|
||||
- "--certificatesresolvers.ocis.acme.tlschallenge=true"
|
||||
- "--certificatesresolvers.ocis.acme.caserver=https://acme-v02.api.letsencrypt.org/directory"
|
||||
- "--certificatesresolvers.ocis.acme.email=postmaster@${OCIS_DOMAIN}"
|
||||
- "--certificatesresolvers.ocis.acme.storage=/letsencrypt/acme.json"
|
||||
ports:
|
||||
- "80:80"
|
||||
- "443:443"
|
||||
- "8080:8080"
|
||||
volumes:
|
||||
- "letsencrypt:/letsencrypt"
|
||||
- "/var/run/docker.sock:/var/run/docker.sock:ro"
|
||||
|
||||
ocis:
|
||||
container_name: ocis
|
||||
image: owncloud/ocis:latest
|
||||
tty: true
|
||||
privileged: true
|
||||
stdin_open: true
|
||||
ports:
|
||||
- 9200:9200
|
||||
- 9125:9125
|
||||
hostname: ocis
|
||||
networks:
|
||||
- ocisnet
|
||||
environment:
|
||||
OCIS_DOMAIN: ${OCIS_DOMAIN}
|
||||
PROXY_OIDC_ISSUER: https://${IDP_DOMAIN}
|
||||
PROXY_OIDC_INSECURE: "true"
|
||||
PROXY_TLS: "false"
|
||||
GRAPH_OIDC_ENDPOINT: https://${IDP_DOMAIN}
|
||||
REVA_OIDC_ISSUER: https://${IDP_DOMAIN}
|
||||
REVA_LDAP_IDP: https://${IDP_DOMAIN}
|
||||
PHOENIX_OIDC_AUTHORITY: https://${IDP_DOMAIN}
|
||||
PHOENIX_OIDC_METADATA_URL: https://${IDP_DOMAIN}/.well-known/openid-configuration
|
||||
PHOENIX_WEB_CONFIG_SERVER: https://${OCIS_DOMAIN}
|
||||
OCIS_LOG_LEVEL: debug
|
||||
REVA_TRANSFER_EXPIRES: 86400
|
||||
REVA_FRONTEND_URL: https://${OCIS_DOMAIN}
|
||||
REVA_DATAGATEWAY_URL: https://${OCIS_DOMAIN}/data
|
||||
labels:
|
||||
- "traefik.enable=true"
|
||||
- "traefik.http.services.ocis.loadbalancer.server.port=9200"
|
||||
- "traefik.docker.network=ocisnet"
|
||||
- "traefik.protocol=https"
|
||||
# ssl config
|
||||
- "traefik.http.routers.idp.rule=Host(`${OCIS_DOMAIN}`)"
|
||||
- "traefik.http.routers.ocis.entrypoints=websecure"
|
||||
- "traefik.http.routers.ocis.tls.certresolver=idp"
|
||||
# http -> https forwarding
|
||||
- "traefik.http.middlewares.redirect-to-https.redirectscheme.scheme=https"
|
||||
- "traefik.http.routers.ocis-redirs.rule=Host(`${OCIS_DOMAIN}`)"
|
||||
- "traefik.http.routers.ocis-redirs.entrypoints=web"
|
||||
- "traefik.http.routers.ocis-redirs.middlewares=redirect-to-https"
|
||||
@@ -0,0 +1,29 @@
|
||||
# If you're on a internet facing server please comment out following line.
|
||||
# It skips certificate validation for various parts of oCIS and is needed if you use self signed certificates.
|
||||
INSECURE=true
|
||||
|
||||
### Traefik settings ###
|
||||
# Domain of Traefik, where you can find the dashboard. Defaults to "traefik.owncloud.test"
|
||||
TRAEFIK_DOMAIN=
|
||||
# Basic authentication for the dashboard. Defaults to user "admin" and password "admin"
|
||||
TRAEFIK_BASIC_AUTH_USERS=
|
||||
# Email address for obtaining LetsEncrypt certificates, needs only be changed if this is a public facing server
|
||||
TRAEFIK_ACME_MAIL=
|
||||
|
||||
### oCIS settings ###
|
||||
# oCIS version. Defaults to "latest"
|
||||
OCIS_DOCKER_TAG=
|
||||
# Domain of oCIS, where you can find the frontend. Defaults to "ocis.owncloud.test"
|
||||
OCIS_DOMAIN=
|
||||
# owncloud Web openid connect client id. Defaults to "ocis-phoenix"
|
||||
OCIS_OIDC_CLIENT_ID=
|
||||
|
||||
### Keycloak ###
|
||||
# Domain of Keycloak, where you can find the managment and authentication frontend. Defaults to "keycloak.owncloud.test"
|
||||
KEYCLOAK_DOMAIN=
|
||||
# Realm which to be used with oCIS. Defaults to "master"
|
||||
KEYCLOAK_REALM=
|
||||
# Admin user login name. Defaults to "admin"
|
||||
KEYCLOAK_ADMIN_USER=
|
||||
# Admin user login password. Defaults to "admin"
|
||||
KEYCLOAK_ADMIN_PASSWORD=
|
||||
@@ -0,0 +1,6 @@
|
||||
---
|
||||
document this deployment example in docs/ocis/deployment/ocis_keycloak.md
|
||||
---
|
||||
|
||||
Please refer to [our documentation](https://owncloud.github.io/ocis/deployment/ocis_keycloak/)
|
||||
for instructions on how to deploy this scenario.
|
||||
@@ -0,0 +1,136 @@
|
||||
---
|
||||
version: "3.7"
|
||||
|
||||
services:
|
||||
traefik:
|
||||
image: "traefik:v2.3"
|
||||
networks:
|
||||
default:
|
||||
aliases:
|
||||
- ${OCIS_DOMAIN:-ocis.owncloud.test}
|
||||
- ${KEYCLOAK_DOMAIN:-keycloak.owncloud.test}
|
||||
command:
|
||||
#- "--log.level=DEBUG"
|
||||
- "--certificatesResolvers.http.acme.email=${TRAEFIK_ACME_MAIL:-'example@example.org'}"
|
||||
- "--certificatesResolvers.http.acme.storage=/certs/acme.json"
|
||||
- "--certificatesResolvers.http.acme.httpChallenge.entryPoint=http"
|
||||
- "--api.dashboard=true"
|
||||
- "--entryPoints.http.address=:80"
|
||||
- "--entryPoints.https.address=:443"
|
||||
- "--providers.docker.endpoint=unix:///var/run/docker.sock"
|
||||
- "--providers.docker.exposedByDefault=false"
|
||||
ports:
|
||||
- "80:80"
|
||||
- "443:443"
|
||||
volumes:
|
||||
- "/var/run/docker.sock:/var/run/docker.sock:ro"
|
||||
- "certs:/certs"
|
||||
labels:
|
||||
- "traefik.enable=true"
|
||||
- "traefik.http.routers.traefik.entrypoints=http"
|
||||
- "traefik.http.routers.traefik.rule=Host(`${TRAEFIK_DOMAIN:-traefik.owncloud.test}`)"
|
||||
- "traefik.http.middlewares.traefik-auth.basicauth.users=${TRAEFIK_BASIC_AUTH_USERS:-admin:$apr1$4vqie50r$YQAmQdtmz5n9rEALhxJ4l.}" # defaults to admin:admin
|
||||
- "traefik.http.middlewares.traefik-https-redirect.redirectscheme.scheme=https"
|
||||
- "traefik.http.routers.traefik.middlewares=traefik-https-redirect"
|
||||
- "traefik.http.routers.traefik-secure.entrypoints=https"
|
||||
- "traefik.http.routers.traefik-secure.rule=Host(`${TRAEFIK_DOMAIN:-traefik.owncloud.test}`)"
|
||||
- "traefik.http.routers.traefik-secure.middlewares=traefik-auth"
|
||||
- "traefik.http.routers.traefik-secure.tls=true"
|
||||
- "traefik.http.routers.traefik-secure.tls.certresolver=http"
|
||||
- "traefik.http.routers.traefik-secure.service=api@internal"
|
||||
restart: always
|
||||
|
||||
ocis:
|
||||
image: owncloud/ocis:${OCIS_DOCKER_TAG:-latest}
|
||||
networks:
|
||||
default:
|
||||
environment:
|
||||
# general config
|
||||
OCIS_DOMAIN: ${OCIS_DOMAIN:-ocis.owncloud.test}
|
||||
OCIS_LOG_LEVEL: error
|
||||
# proxy config
|
||||
PROXY_AUTOPROVISION_ACCOUNTS: "true"
|
||||
PROXY_OIDC_INSECURE: "${INSECURE:-false}"
|
||||
PROXY_OIDC_ISSUER: https://${KEYCLOAK_DOMAIN:-keycloak.owncloud.test}/auth/realms/${KEYCLOAK_REALM:-master}
|
||||
PROXY_TLS: "false"
|
||||
# phoenix config
|
||||
PHOENIX_OIDC_AUTHORITY: https://${KEYCLOAK_DOMAIN:-keycloak.owncloud.test}/auth/realms/${KEYCLOAK_REALM:-master}
|
||||
PHOENIX_OIDC_CLIENT_ID: ${OCIS_OIDC_CLIENT_ID:-ocis-phoenix}
|
||||
PHOENIX_OIDC_METADATA_URL: https://${KEYCLOAK_DOMAIN:-keycloak.owncloud.test}/auth/realms/${KEYCLOAK_REALM:-master}/.well-known/openid-configuration
|
||||
PHOENIX_WEB_CONFIG_APPS: files,draw-io,markdown-editor,media-viewer
|
||||
PHOENIX_WEB_CONFIG_SERVER: https://${OCIS_DOMAIN:-ocis.owncloud.test}
|
||||
# storage config
|
||||
STORAGE_DATAGATEWAY_PUBLIC_URL: https://${OCIS_DOMAIN:-ocis.owncloud.test}/data
|
||||
STORAGE_FRONTEND_PUBLIC_URL: https://${OCIS_DOMAIN:-ocis.owncloud.test}/
|
||||
STORAGE_OIDC_ISSUER: https://${KEYCLOAK_DOMAIN:-keycloak.owncloud.test}
|
||||
STORAGE_METADATA_ROOT: /opt/ocis-metadata
|
||||
STORAGE_DRIVER_OCIS_ROOT: /opt/ocis-storage
|
||||
# store config
|
||||
STORE_DATA_PATH: /opt/ocis-store
|
||||
# settings config
|
||||
SETTINGS_DATA_PATH: /opt/ocis-settings
|
||||
volumes:
|
||||
- ocis-storage:/opt/ocis-storage
|
||||
- ocis-metadata:/opt/ocis-metadata
|
||||
- ocis-store:/opt/ocis-store
|
||||
- ocis-settings:/opt/ocis-settings
|
||||
labels:
|
||||
- "traefik.enable=true"
|
||||
- "traefik.http.routers.ocis.entrypoints=http"
|
||||
- "traefik.http.routers.ocis.rule=Host(`${OCIS_DOMAIN:-ocis.owncloud.test}`)"
|
||||
- "traefik.http.middlewares.ocis-https-redirect.redirectscheme.scheme=https"
|
||||
- "traefik.http.routers.ocis.middlewares=ocis-https-redirect"
|
||||
- "traefik.http.routers.ocis-secure.entrypoints=https"
|
||||
- "traefik.http.routers.ocis-secure.rule=Host(`${OCIS_DOMAIN:-ocis.owncloud.test}`)"
|
||||
- "traefik.http.routers.ocis-secure.tls=true"
|
||||
- "traefik.http.routers.ocis-secure.tls.certresolver=http"
|
||||
- "traefik.http.routers.ocis-secure.service=ocis"
|
||||
- "traefik.http.services.ocis.loadbalancer.server.port=9200"
|
||||
restart: always
|
||||
|
||||
postgres:
|
||||
image: postgres:alpine
|
||||
volumes:
|
||||
- keycloak_postgres_data:/var/lib/postgresql/data
|
||||
environment:
|
||||
POSTGRES_DB: keycloak
|
||||
POSTGRES_USER: keycloak
|
||||
POSTGRES_PASSWORD: keycloak
|
||||
restart: always
|
||||
|
||||
keycloak:
|
||||
image: quay.io/keycloak/keycloak:latest
|
||||
environment:
|
||||
DB_VENDOR: POSTGRES
|
||||
DB_ADDR: postgres
|
||||
DB_DATABASE: keycloak
|
||||
DB_USER: keycloak
|
||||
DB_SCHEMA: public
|
||||
DB_PASSWORD: keycloak
|
||||
KEYCLOAK_USER: ${KEYCLOAK_ADMIN_USER:-admin}
|
||||
KEYCLOAK_PASSWORD: ${KEYCLOAK_ADMIN_PASSWORD:-admin}
|
||||
PROXY_ADDRESS_FORWARDING: "true"
|
||||
labels:
|
||||
- "traefik.enable=true"
|
||||
- "traefik.http.routers.keycloak.entrypoints=http"
|
||||
- "traefik.http.routers.keycloak.rule=Host(`${KEYCLOAK_DOMAIN:-keycloak.owncloud.test}`)"
|
||||
- "traefik.http.middlewares.keycloak-https-redirect.redirectscheme.scheme=https"
|
||||
- "traefik.http.routers.keycloak.middlewares=keycloak-https-redirect"
|
||||
- "traefik.http.routers.keycloak-secure.entrypoints=https"
|
||||
- "traefik.http.routers.keycloak-secure.rule=Host(`${KEYCLOAK_DOMAIN:-keycloak.owncloud.test}`)"
|
||||
- "traefik.http.routers.keycloak-secure.tls=true"
|
||||
- "traefik.http.routers.keycloak-secure.tls.certresolver=http"
|
||||
- "traefik.http.routers.keycloak-secure.service=keycloak"
|
||||
- "traefik.http.services.keycloak.loadbalancer.server.port=8080"
|
||||
- "traefik.http.services.keycloak.loadbalancer.server.scheme=http"
|
||||
depends_on:
|
||||
- postgres
|
||||
restart: always
|
||||
|
||||
volumes:
|
||||
certs:
|
||||
ocis-storage:
|
||||
ocis-metadata:
|
||||
ocis-store:
|
||||
ocis-settings:
|
||||
keycloak_postgres_data:
|
||||
@@ -1,4 +0,0 @@
|
||||
COMPOSE_PROJECT_NAME=bridge
|
||||
OCIS_DOMAIN=ocis.example.org
|
||||
OC10_DOMAIN=oc10.example.org
|
||||
INSECURE=false
|
||||
@@ -1,2 +0,0 @@
|
||||
Please refer to [our documentation](https://owncloud.github.io/ocis/deployment/ocis_oc10_backend/)
|
||||
for instructions on how to deploy this scenario.
|
||||
@@ -1,186 +0,0 @@
|
||||
version: '3.7'
|
||||
|
||||
volumes:
|
||||
files:
|
||||
driver: local
|
||||
mysql:
|
||||
driver: local
|
||||
backup:
|
||||
driver: local
|
||||
redis:
|
||||
driver: local
|
||||
tmp:
|
||||
driver: local
|
||||
letsencrypt:
|
||||
driver: local
|
||||
|
||||
services:
|
||||
traefik:
|
||||
image: "traefik:v2.2"
|
||||
container_name: "traefik"
|
||||
command:
|
||||
- "--providers.docker=true"
|
||||
- "--providers.docker.exposedbydefault=false"
|
||||
- "--entrypoints.web.address=:80"
|
||||
- "--entrypoints.websecure.address=:443"
|
||||
- "--serverstransport.insecureskipverify=true"
|
||||
# Ocis certificate resolver
|
||||
- "--certificatesresolvers.ocis.acme.tlschallenge=true"
|
||||
- "--certificatesresolvers.ocis.acme.caserver=https://acme-v02.api.letsencrypt.org/directory"
|
||||
- "--certificatesresolvers.ocis.acme.email=user@${OCIS_DOMAIN}"
|
||||
- "--certificatesresolvers.ocis.acme.storage=/letsencrypt/acme-ocis.json"
|
||||
# OC10 certificate resolver
|
||||
- "--certificatesresolvers.oc10.acme.tlschallenge=true"
|
||||
- "--certificatesresolvers.oc10.acme.caserver=https://acme-v02.api.letsencrypt.org/directory"
|
||||
- "--certificatesresolvers.oc10.acme.email=user@${OCIS_DOMAIN}"
|
||||
- "--certificatesresolvers.oc10.acme.storage=/letsencrypt/acme-oc10.json"
|
||||
ports:
|
||||
- "80:80"
|
||||
- "443:443"
|
||||
- "8080:8080"
|
||||
volumes:
|
||||
- "letsencrypt:/letsencrypt"
|
||||
- "/var/run/docker.sock:/var/run/docker.sock:ro"
|
||||
networks:
|
||||
default:
|
||||
aliases:
|
||||
- ${OC10_DOMAIN}
|
||||
- ${OCIS_DOMAIN}
|
||||
|
||||
owncloud:
|
||||
build:
|
||||
context: ./oc10
|
||||
dockerfile: Dockerfile
|
||||
expose:
|
||||
- "8080"
|
||||
depends_on:
|
||||
- db
|
||||
- redis
|
||||
environment:
|
||||
OCIS_DOMAIN: ${OCIS_DOMAIN}
|
||||
PROXY_LOG_LEVEL: debug
|
||||
OWNCLOUD_DOMAIN: ${OC10_DOMAIN}
|
||||
OWNCLOUD_DB_TYPE: mysql
|
||||
OWNCLOUD_DB_NAME: owncloud
|
||||
OWNCLOUD_DB_USERNAME: owncloud
|
||||
OWNCLOUD_DB_PASSWORD: owncloud
|
||||
OWNCLOUD_DB_HOST: db
|
||||
OWNCLOUD_ADMIN_USERNAME: admin
|
||||
OWNCLOUD_ADMIN_PASSWORD: admin
|
||||
OWNCLOUD_MYSQL_UTF8MB4: "true"
|
||||
OWNCLOUD_REDIS_ENABLED: "true"
|
||||
OWNCLOUD_REDIS_HOST: redis
|
||||
OWNCLOUD_DEBUG: "true"
|
||||
OWNCLOUD_TRUSTED_PROXIES: ${OC10_DOMAIN}
|
||||
OWNCLOUD_OVERWRITE_PROTOCOL: https
|
||||
OWNCLOUD_OVERWRITE_HOST: ${OC10_DOMAIN}
|
||||
OWNCLOUD_APPS_ENABLE: "openidconnect,oauth2,user_ldap,graphapi"
|
||||
OWNCLOUD_LOG_LEVEL: 0
|
||||
volumes:
|
||||
- files:/mnt/data
|
||||
- tmp:/tmp/shared
|
||||
labels:
|
||||
- "traefik.enable=true"
|
||||
- "traefik.http.services.oc10.loadbalancer.server.port=8080"
|
||||
- "traefik.docker.network=ocisnet"
|
||||
- "traefik.protocol=https"
|
||||
# ssl config
|
||||
- "traefik.http.routers.oc10.rule=Host(`${OC10_DOMAIN}`)"
|
||||
- "traefik.http.routers.oc10.entrypoints=websecure"
|
||||
- "traefik.http.routers.oc10.tls.certresolver=oc10"
|
||||
# http -> https forwarding
|
||||
- "traefik.http.middlewares.redirect-to-https.redirectscheme.scheme=https"
|
||||
- "traefik.http.routers.oc10-redirs.rule=Host(`${OC10_DOMAIN}`)"
|
||||
- "traefik.http.routers.oc10-redirs.entrypoints=web"
|
||||
- "traefik.http.routers.oc10-redirs.middlewares=redirect-to-https"
|
||||
|
||||
ocis:
|
||||
build:
|
||||
context: ./ocis
|
||||
dockerfile: Dockerfile
|
||||
args:
|
||||
OCIS_DOMAIN: ${OCIS_DOMAIN}
|
||||
OC10_DOMAIN: ${OC10_DOMAIN}
|
||||
ports:
|
||||
- 9200:9200
|
||||
environment:
|
||||
OCIS_LOG_LEVEL: debug
|
||||
# proxy
|
||||
PROXY_CONFIG_FILE: "/config/proxy-config.json"
|
||||
PROXY_TLS: "false"
|
||||
PROXY_OIDC_ISSUER: https://${OCIS_DOMAIN}
|
||||
PROXY_AUTOPROVISION_ACCOUNTS: "true"
|
||||
PROXY_OIDC_INSECURE: "${INSECURE}"
|
||||
# konnectd - binddn must exist as oc10 admin user
|
||||
KONNECTD_ISS: https://${OCIS_DOMAIN}
|
||||
KONNECTD_IDENTIFIER_REGISTRATION_CONF: "/config/identifier-registration.yaml"
|
||||
KONNECTD_TLS: 0
|
||||
KONNECTD_SIGNING_KID: super
|
||||
KONNECTD_INSECURE: "${INSECURE}"
|
||||
LDAP_URI: ldap://localhost:9125
|
||||
LDAP_BINDDN: "cn=admin,dc=example,dc=org"
|
||||
LDAP_BINDPW: "admin"
|
||||
LDAP_BASEDN: "dc=example,dc=org"
|
||||
LDAP_SCOPE: sub
|
||||
LDAP_LOGIN_ATTRIBUTE: uid
|
||||
LDAP_EMAIL_ATTRIBUTE: mail
|
||||
LDAP_NAME_ATTRIBUTE: givenName
|
||||
LDAP_UUID_ATTRIBUTE: uid
|
||||
LDAP_UUID_ATTRIBUTE_TYPE: text
|
||||
LDAP_FILTER: "(objectClass=posixaccount)"
|
||||
# glauth
|
||||
GLAUTH_BACKEND_DATASTORE: owncloud
|
||||
GLAUTH_BACKEND_SERVERS: https://${OC10_DOMAIN}/apps/graphapi/v1.0
|
||||
GLAUTH_BACKEND_INSECURE: "${INSECURE}"
|
||||
# graph
|
||||
GRAPH_OIDC_ENDPOINT: https://${OC10_DOMAIN}/apps/graphapi/v1.0
|
||||
# web ui
|
||||
PHOENIX_WEB_CONFIG: "/config/web/config.json"
|
||||
# storage - although not used, yet
|
||||
STORAGE_OIDC_ISSUER: https://${OCIS_DOMAIN}
|
||||
STORAGE_OIDC_INSECURE: "${INSECURE}"
|
||||
STORAGE_TRANSFER_EXPIRES: 86400
|
||||
STORAGE_FRONTEND_PUBLIC_URL: https://${OCIS_DOMAIN}
|
||||
STORAGE_DATAGATEWAY_PUBLIC_URL: https://${OCIS_DOMAIN}/data
|
||||
STORAGE_LDAP_IDP: https://${OCIS_DOMAIN}
|
||||
volumes:
|
||||
- ./ocis/config/proxy-config.json:/etc/ocis/proxy.json
|
||||
labels:
|
||||
- "traefik.enable=true"
|
||||
- "traefik.http.services.ocis.loadbalancer.server.port=9200"
|
||||
- "traefik.docker.network=ocisnet"
|
||||
- "traefik.protocol=https"
|
||||
# ssl config
|
||||
- "traefik.http.routers.ocis.rule=Host(`${OCIS_DOMAIN}`)"
|
||||
- "traefik.http.routers.ocis.entrypoints=websecure"
|
||||
- "traefik.http.routers.ocis.tls.certresolver=ocis"
|
||||
# http -> https forwarding
|
||||
- "traefik.http.middlewares.redirect-to-https.redirectscheme.scheme=https"
|
||||
- "traefik.http.routers.ocis-redirs.rule=Host(`${OCIS_DOMAIN}`)"
|
||||
- "traefik.http.routers.ocis-redirs.entrypoints=web"
|
||||
- "traefik.http.routers.ocis-redirs.middlewares=redirect-to-https"
|
||||
db:
|
||||
image: webhippie/mariadb:latest
|
||||
restart: always
|
||||
environment:
|
||||
MARIADB_ROOT_PASSWORD: owncloud
|
||||
MARIADB_USERNAME: owncloud
|
||||
MARIADB_PASSWORD: owncloud
|
||||
MARIADB_DATABASE: owncloud
|
||||
MARIADB_MAX_ALLOWED_PACKET: 128M
|
||||
MARIADB_INNODB_LOG_FILE_SIZE: 256M
|
||||
healthcheck:
|
||||
test: ["CMD", "/usr/bin/healthcheck"]
|
||||
interval: 30s
|
||||
timeout: 10s
|
||||
retries: 5
|
||||
volumes:
|
||||
- mysql:/var/lib/mysql
|
||||
- backup:/var/lib/backup
|
||||
|
||||
redis:
|
||||
image: webhippie/redis:latest
|
||||
environment:
|
||||
- REDIS_DATABASES=1
|
||||
volumes:
|
||||
- redis:/var/lib/redis
|
||||
@@ -1,3 +0,0 @@
|
||||
FROM owncloud/server:10.6.0-beta1
|
||||
ADD apps/graphapi-0.1.0.tar.gz /var/www/owncloud/apps/
|
||||
COPY overlay /
|
||||
Binary file not shown.
@@ -1,11 +0,0 @@
|
||||
FROM owncloud/ocis:latest
|
||||
|
||||
ARG OCIS_DOMAIN
|
||||
ENV OCIS_DOMAIN $OCIS_DOMAIN
|
||||
ARG OC10_DOMAIN
|
||||
ENV OC10_DOMAIN $OC10_DOMAIN
|
||||
|
||||
ADD config /config
|
||||
RUN sed -i "s/ocis.example.org/${OCIS_DOMAIN}/g" /config/web/config.json \
|
||||
&& sed -i "s/ocis.example.org/${OCIS_DOMAIN}/g" /config/identifier-registration.yaml \
|
||||
&& sed -i "s/oc10.example.org/${OC10_DOMAIN}/g" /config/identifier-registration.yaml \
|
||||
@@ -1,121 +0,0 @@
|
||||
---
|
||||
# OpenID Connect client registry.
|
||||
clients:
|
||||
- id: phoenix
|
||||
name: OCIS
|
||||
application_type: web
|
||||
insecure: yes
|
||||
trusted: yes
|
||||
redirect_uris:
|
||||
- https://ocis.example.org/
|
||||
- https://ocis.example.org/oidc-callback.html
|
||||
- https://ocis.example.org/oidc-silent-redirect.html
|
||||
origins:
|
||||
- https://ocis.example.org
|
||||
|
||||
- id: oc10
|
||||
name: OC10
|
||||
application_type: web
|
||||
secret: super
|
||||
insecure: yes
|
||||
trusted: yes
|
||||
redirect_uris:
|
||||
- https://oc10.example.org/apps/openidconnect/redirect
|
||||
origins:
|
||||
- https://oc10.example.org
|
||||
|
||||
- id: ocis-explorer.js
|
||||
name: OCIS Graph Explorer
|
||||
trusted: yes
|
||||
application_type: web
|
||||
insecure: yes
|
||||
|
||||
- id: xdXOt13JKxym1B1QcEncf2XDkLAexMBFwiT9j6EfhhHFJhs2KM9jbjTmf8JBXE69
|
||||
secret: UBntmLjC2yYCeHwsyj73Uwo9TAaecAetRwMw0xYcvNL9yRdLSUi0hUAHfvCHFeFh
|
||||
application_type: native
|
||||
insecure: true
|
||||
|
||||
- id: e4rAsNUSIUs0lF4nbv9FmCeUkTlV9GdgTLDH1b5uie7syb90SzEVrbN7HIpmWJeD
|
||||
secret: dInFYGV33xKzhbRmpqQltYNdfLdJIfJ9L5ISoKhNoT9qZftpdWSP71VrpGR9pmoD
|
||||
application_type: native
|
||||
redirect_uris:
|
||||
- oc://android.owncloud.com
|
||||
|
||||
- id: mxd5OQDk6es5LzOzRvidJNfXLUZS2oN3oUFeXPP8LpPrhx3UroJFduGEYIBOxkY1
|
||||
secret: KFeFWWEZO9TkisIQzR3fo7hfiMXlOpaqP8CFuTbSHzV1TUuGECglPxpiVKJfOXIx
|
||||
application_type: native
|
||||
redirect_uris:
|
||||
- oc://ios.owncloud.com
|
||||
- oc.ios://ios.owncloud.com
|
||||
|
||||
|
||||
# - id: playground-trusted.js
|
||||
# name: Trusted OIDC Playground
|
||||
# trusted: yes
|
||||
# application_type: web
|
||||
# redirect_uris:
|
||||
# - https://my-host:8509/
|
||||
# origins:
|
||||
# - https://my-host:8509
|
||||
|
||||
# - id: playground-trusted.js
|
||||
# name: Trusted Insecure OIDC Playground
|
||||
# trusted: yes
|
||||
# application_type: web
|
||||
# insecure: yes
|
||||
|
||||
# - id: client-with-keys
|
||||
# secret: super
|
||||
# application_type: native
|
||||
# redirect_uris:
|
||||
# - http://localhost
|
||||
# trusted_scopes:
|
||||
# - konnect/guestok
|
||||
# - kopano/kwm
|
||||
# jwks:
|
||||
# keys:
|
||||
# - kty: EC
|
||||
# use: sig
|
||||
# kid: client-with-keys-key-1
|
||||
# crv: P-256
|
||||
# x: RTZpWoRbjwX1YavmSHVBj6Cy3Yzdkkp6QLvTGB22D0c
|
||||
# y: jeavjwcX0xlDSchFcBMzXSU7wGs2VPpNxWCwmxFvmF0
|
||||
# request_object_signing_alg: ES256
|
||||
|
||||
# - id: first
|
||||
# secret: lala
|
||||
# application_type: native
|
||||
# redirect_uris:
|
||||
# - my://app
|
||||
|
||||
# - id: second
|
||||
# secret: lulu
|
||||
# application_type: native
|
||||
# redirect_uris:
|
||||
# - http://localhost
|
||||
|
||||
# External authority registry.
|
||||
authorities:
|
||||
# - id: my-univention
|
||||
# name: Univention
|
||||
# client_id: kopano-konnect
|
||||
# authority_type: oidc
|
||||
# jwks:
|
||||
# keys:
|
||||
# - kty: EC
|
||||
# use: sig
|
||||
# kid: example-key-1
|
||||
# crv: P-256
|
||||
# x: RTZpWoRbjwX1YavmSHVBj6Cy3Yzdkkp6QLvTGB22D0c
|
||||
# y: jeavjwcX0xlDSchFcBMzXSU7wGs2VPpNxWCwmxFvmF0
|
||||
# default: yes
|
||||
# authorization_endpoint: https://my-univention/signin/v1/identifier/_/authorize
|
||||
# response_type: id_token
|
||||
# scopes:
|
||||
# - openid
|
||||
# - profile
|
||||
# identity_claim_name: preferred_username
|
||||
# identity_aliases:
|
||||
# external-user-a: local-user-a
|
||||
# external-user-b: local-user-b
|
||||
# identity_alias_required: true
|
||||
@@ -1 +1,17 @@
|
||||
OCIS_DOMAIN=ocis.domain.com
|
||||
# If you're on a internet facing server please comment out following line.
|
||||
# It skips certificate validation for various parts of oCIS and is needed if you use self signed certificates.
|
||||
INSECURE=true
|
||||
|
||||
### Traefik settings ###
|
||||
# Domain of Traefik, where you can find the dashboard. Defaults to "traefik.owncloud.test"
|
||||
TRAEFIK_DOMAIN=
|
||||
# Basic authentication for the dashboard. Defaults to user "admin" and password "admin"
|
||||
TRAEFIK_BASIC_AUTH_USERS=
|
||||
# Email address for obtaining LetsEncrypt certificates, needs only be changed if this is a public facing server
|
||||
TRAEFIK_ACME_MAIL=
|
||||
|
||||
### oCIS settings ###
|
||||
# oCIS version. Defaults to "latest"
|
||||
OCIS_DOCKER_TAG=
|
||||
# Domain of oCIS, where you can find the frontend. Defaults to "ocis.owncloud.test"
|
||||
OCIS_DOMAIN=
|
||||
@@ -1,2 +1,6 @@
|
||||
Please refer to [our documentation](https://owncloud.github.io/ocis/deployment/ocis_traefik/)
|
||||
---
|
||||
document this deployment example in docs/ocis/deployment/owncloud10_with_ocis_web.md
|
||||
---
|
||||
|
||||
Please refer to [our documentation](https://owncloud.github.io/ocis/deployment/owncloud10_with_ocis_web/)
|
||||
for instructions on how to deploy this scenario.
|
||||
@@ -0,0 +1 @@
|
||||
identifier-registration.yaml
|
||||
@@ -0,0 +1,41 @@
|
||||
---
|
||||
|
||||
# OpenID Connect client registry.
|
||||
clients:
|
||||
- id: phoenix
|
||||
name: OCIS
|
||||
application_type: web
|
||||
insecure: yes
|
||||
trusted: yes
|
||||
redirect_uris:
|
||||
- https://ocis.owncloud.test/
|
||||
- https://ocis.owncloud.test/oidc-callback.html
|
||||
- https://ocis.owncloud.test/oidc-silent-redirect.html
|
||||
origins:
|
||||
- https://ocis.owncloud.test
|
||||
|
||||
- id: ocis-explorer.js
|
||||
name: oCIS Graph Explorer
|
||||
trusted: yes
|
||||
insecure: yes
|
||||
|
||||
- id: xdXOt13JKxym1B1QcEncf2XDkLAexMBFwiT9j6EfhhHFJhs2KM9jbjTmf8JBXE69
|
||||
secret: UBntmLjC2yYCeHwsyj73Uwo9TAaecAetRwMw0xYcvNL9yRdLSUi0hUAHfvCHFeFh
|
||||
name: ownCloud desktop app
|
||||
application_type: native
|
||||
insecure: true
|
||||
|
||||
- id: e4rAsNUSIUs0lF4nbv9FmCeUkTlV9GdgTLDH1b5uie7syb90SzEVrbN7HIpmWJeD
|
||||
secret: dInFYGV33xKzhbRmpqQltYNdfLdJIfJ9L5ISoKhNoT9qZftpdWSP71VrpGR9pmoD
|
||||
name: ownCloud Android app
|
||||
application_type: native
|
||||
redirect_uris:
|
||||
- oc://android.owncloud.com
|
||||
|
||||
- id: mxd5OQDk6es5LzOzRvidJNfXLUZS2oN3oUFeXPP8LpPrhx3UroJFduGEYIBOxkY1
|
||||
secret: KFeFWWEZO9TkisIQzR3fo7hfiMXlOpaqP8CFuTbSHzV1TUuGECglPxpiVKJfOXIx
|
||||
name: ownCloud iOS app
|
||||
application_type: native
|
||||
redirect_uris:
|
||||
- oc://ios.owncloud.com
|
||||
- oc.ios://ios.owncloud.com
|
||||
@@ -1,18 +0,0 @@
|
||||
---
|
||||
# OpenID Connect client registry.
|
||||
clients:
|
||||
- id: phoenix
|
||||
name: OCIS
|
||||
application_type: web
|
||||
insecure: yes
|
||||
trusted: yes
|
||||
redirect_uris:
|
||||
- http://ocis.domain.com/
|
||||
- https://ocis.domain.com/
|
||||
- http://ocis.domain.com/oidc-callback.html
|
||||
- https://ocis.domain.com/oidc-callback.html
|
||||
- http://ocis.domain.com/oidc-silent-redirect.html
|
||||
- https://ocis.domain.com/oidc-silent-redirect.html
|
||||
origins:
|
||||
- http://ocis.domain.com
|
||||
- https://ocis.domain.com
|
||||
@@ -1,73 +1,105 @@
|
||||
---
|
||||
version: "3.7"
|
||||
|
||||
services:
|
||||
|
||||
traefik:
|
||||
image: "traefik:v2.2"
|
||||
container_name: "traefik"
|
||||
image: "traefik:v2.3"
|
||||
networks:
|
||||
- ocisnet
|
||||
default:
|
||||
aliases:
|
||||
- ${OCIS_DOMAIN:-ocis.owncloud.test}
|
||||
command:
|
||||
- "--providers.docker=true"
|
||||
- "--providers.docker.exposedbydefault=false"
|
||||
- "--entrypoints.web.address=:80"
|
||||
- "--entrypoints.websecure.address=:443"
|
||||
- "--serverstransport.insecureskipverify=true"
|
||||
# Ocis certificate resolver
|
||||
- "--certificatesresolvers.ocis.acme.tlschallenge=true"
|
||||
- "--certificatesresolvers.ocis.acme.caserver=https://acme-v02.api.letsencrypt.org/directory"
|
||||
- "--certificatesresolvers.ocis.acme.email=user@${OCIS_DOMAIN}"
|
||||
- "--certificatesresolvers.ocis.acme.storage=/letsencrypt/acme-ocis.json"
|
||||
#- "--log.level=DEBUG"
|
||||
- "--certificatesResolvers.http.acme.email=${TRAEFIK_ACME_MAIL:-'example@example.org'}"
|
||||
- "--certificatesResolvers.http.acme.storage=/certs/acme.json"
|
||||
- "--certificatesResolvers.http.acme.httpChallenge.entryPoint=http"
|
||||
- "--api.dashboard=true"
|
||||
- "--entryPoints.http.address=:80"
|
||||
- "--entryPoints.https.address=:443"
|
||||
- "--providers.docker.endpoint=unix:///var/run/docker.sock"
|
||||
- "--providers.docker.exposedByDefault=false"
|
||||
ports:
|
||||
- "80:80"
|
||||
- "443:443"
|
||||
- "8080:8080"
|
||||
volumes:
|
||||
- "letsencrypt:/letsencrypt"
|
||||
- "/var/run/docker.sock:/var/run/docker.sock:ro"
|
||||
|
||||
ocis:
|
||||
container_name: ocis
|
||||
image: owncloud/ocis:latest
|
||||
ports:
|
||||
- 9200:9200
|
||||
hostname: ocis
|
||||
networks:
|
||||
- ocisnet
|
||||
volumes:
|
||||
- ./config:/etc/ocis
|
||||
environment:
|
||||
OCIS_DOMAIN: ${OCIS_DOMAIN}
|
||||
PROXY_TLS: "false"
|
||||
PROXY_HTTP_ADDR: 0.0.0.0:9200
|
||||
PROXY_OIDC_ISSUER: https://${OCIS_DOMAIN}
|
||||
PROXY_OIDC_INSECURE: "true"
|
||||
KONNECTD_ISS: https://${OCIS_DOMAIN}
|
||||
KONNECTD_IDENTIFIER_REGISTRATION_CONF: "/etc/ocis/identifier-registration.yml"
|
||||
KONNECTD_TLS: 1
|
||||
GRAPH_OIDC_ENDPOINT: https://${OCIS_DOMAIN}
|
||||
PHOENIX_OIDC_AUTHORITY: https://${OCIS_DOMAIN}
|
||||
PHOENIX_OIDC_METADATA_URL: https://${OCIS_DOMAIN}/.well-known/openid-configuration
|
||||
PHOENIX_WEB_CONFIG_SERVER: https://${OCIS_DOMAIN}
|
||||
STORAGE_OIDC_ISSUER: https://${OCIS_DOMAIN}
|
||||
STORAGE_TRANSFER_EXPIRES: 86400
|
||||
STORAGE_FRONTEND_PUBLIC_URL: https://${OCIS_DOMAIN}
|
||||
STORAGE_DATAGATEWAY_PUBLIC_URL: https://${OCIS_DOMAIN}/data
|
||||
STORAGE_LDAP_IDP: https://${OCIS_DOMAIN}
|
||||
- "certs:/certs"
|
||||
labels:
|
||||
- "traefik.enable=true"
|
||||
- "traefik.http.services.ocis.loadbalancer.server.port=9200"
|
||||
- "traefik.docker.network=ocisnet"
|
||||
- "traefik.protocol=https"
|
||||
# ssl config
|
||||
- "traefik.http.routers.ocis.rule=Host(`${OCIS_DOMAIN}`)"
|
||||
- "traefik.http.routers.ocis.entrypoints=websecure"
|
||||
- "traefik.http.routers.ocis.tls.certresolver=ocis"
|
||||
# http -> https forwarding
|
||||
- "traefik.http.middlewares.redirect-to-https.redirectscheme.scheme=https"
|
||||
- "traefik.http.routers.ocis-redirs.rule=Host(`${OCIS_DOMAIN}`)"
|
||||
- "traefik.http.routers.ocis-redirs.entrypoints=web"
|
||||
- "traefik.http.routers.ocis-redirs.middlewares=redirect-to-https"
|
||||
- "traefik.http.routers.traefik.entrypoints=http"
|
||||
- "traefik.http.routers.traefik.rule=Host(`${TRAEFIK_DOMAIN:-traefik.owncloud.test}`)"
|
||||
- "traefik.http.middlewares.traefik-auth.basicauth.users=${TRAEFIK_BASIC_AUTH_USERS:-admin:$apr1$4vqie50r$YQAmQdtmz5n9rEALhxJ4l.}" # defaults to admin:admin
|
||||
- "traefik.http.middlewares.traefik-https-redirect.redirectscheme.scheme=https"
|
||||
- "traefik.http.routers.traefik.middlewares=traefik-https-redirect"
|
||||
- "traefik.http.routers.traefik-secure.entrypoints=https"
|
||||
- "traefik.http.routers.traefik-secure.rule=Host(`${TRAEFIK_DOMAIN:-traefik.owncloud.test}`)"
|
||||
- "traefik.http.routers.traefik-secure.middlewares=traefik-auth"
|
||||
- "traefik.http.routers.traefik-secure.tls=true"
|
||||
- "traefik.http.routers.traefik-secure.tls.certresolver=http"
|
||||
- "traefik.http.routers.traefik-secure.service=api@internal"
|
||||
restart: always
|
||||
|
||||
networks:
|
||||
ocisnet:
|
||||
ocis:
|
||||
image: owncloud/ocis:${OCIS_DOCKER_TAG:-latest}
|
||||
entrypoint:
|
||||
- /bin/sh
|
||||
- -c
|
||||
- | # as long as https://github.com/owncloud/product/issues/15 is open we need this step to template konnectd config
|
||||
cp /config/identifier-registration.dist.yaml /config/identifier-registration.yaml
|
||||
sed -i 's/ocis.owncloud.test/${OCIS_DOMAIN:-ocis.owncloud.test}/g' /config/identifier-registration.yaml
|
||||
ocis server
|
||||
networks:
|
||||
default:
|
||||
environment:
|
||||
# general config
|
||||
OCIS_DOMAIN: ${OCIS_DOMAIN:-ocis.owncloud.test}
|
||||
OCIS_LOG_LEVEL: error
|
||||
# proxy config
|
||||
PROXY_AUTOPROVISION_ACCOUNTS: "true"
|
||||
PROXY_OIDC_INSECURE: "${INSECURE:-false}"
|
||||
PROXY_OIDC_ISSUER: https://${OCIS_DOMAIN:-ocis.owncloud.test}
|
||||
PROXY_TLS: "false"
|
||||
# phoenix config
|
||||
PHOENIX_OIDC_AUTHORITY: https://${OCIS_DOMAIN:-ocis.owncloud.test}
|
||||
PHOENIX_OIDC_METADATA_URL: https://${OCIS_DOMAIN:-ocis.owncloud.test}/.well-known/openid-configuration
|
||||
PHOENIX_WEB_CONFIG_APPS: files,draw-io,markdown-editor,media-viewer
|
||||
PHOENIX_WEB_CONFIG_SERVER: https://${OCIS_DOMAIN:-ocis.owncloud.test}
|
||||
# storage config
|
||||
STORAGE_DATAGATEWAY_PUBLIC_URL: https://${OCIS_DOMAIN:-ocis.owncloud.test}/data
|
||||
STORAGE_FRONTEND_PUBLIC_URL: https://${OCIS_DOMAIN:-ocis.owncloud.test}/
|
||||
STORAGE_OIDC_ISSUER: https://${OCIS_DOMAIN:-ocis.owncloud.test}
|
||||
STORAGE_METADATA_ROOT: /opt/ocis-metadata
|
||||
STORAGE_DRIVER_OCIS_ROOT: /opt/ocis-storage
|
||||
# store config
|
||||
STORE_DATA_PATH: /opt/ocis-store
|
||||
# settings config
|
||||
SETTINGS_DATA_PATH: /opt/ocis-settings
|
||||
# idp config
|
||||
KONNECTD_ISS: https://${OCIS_DOMAIN:-ocis.owncloud.test}
|
||||
KONNECTD_TLS: 'false'
|
||||
volumes:
|
||||
- ./config:/config
|
||||
- ocis-storage:/opt/ocis-storage
|
||||
- ocis-metadata:/opt/ocis-metadata
|
||||
- ocis-store:/opt/ocis-store
|
||||
- ocis-settings:/opt/ocis-settings
|
||||
labels:
|
||||
- "traefik.enable=true"
|
||||
- "traefik.http.routers.ocis.entrypoints=http"
|
||||
- "traefik.http.routers.ocis.rule=Host(`${OCIS_DOMAIN:-ocis.owncloud.test}`)"
|
||||
- "traefik.http.middlewares.ocis-https-redirect.redirectscheme.scheme=https"
|
||||
- "traefik.http.routers.ocis.middlewares=ocis-https-redirect"
|
||||
- "traefik.http.routers.ocis-secure.entrypoints=https"
|
||||
- "traefik.http.routers.ocis-secure.rule=Host(`${OCIS_DOMAIN:-ocis.owncloud.test}`)"
|
||||
- "traefik.http.routers.ocis-secure.tls=true"
|
||||
- "traefik.http.routers.ocis-secure.tls.certresolver=http"
|
||||
- "traefik.http.routers.ocis-secure.service=ocis"
|
||||
- "traefik.http.services.ocis.loadbalancer.server.port=9200"
|
||||
restart: always
|
||||
|
||||
volumes:
|
||||
certs:
|
||||
ocis-storage:
|
||||
ocis-metadata:
|
||||
ocis-store:
|
||||
ocis-settings:
|
||||
@@ -0,0 +1,21 @@
|
||||
# If you're on a internet facing server please comment out following line.
|
||||
# It skips certificate validation for various parts of oCIS and is needed if you use self signed certificates.
|
||||
INSECURE=true
|
||||
|
||||
### Traefik settings ###
|
||||
# Domain of Traefik, where you can find the dashboard. Defaults to "traefik.owncloud.test"
|
||||
TRAEFIK_DOMAIN=
|
||||
# Basic authentication for the dashboard. Defaults to user "admin" and password "admin"
|
||||
TRAEFIK_BASIC_AUTH_USERS=
|
||||
# Email address for obtaining LetsEncrypt certificates, needs only be changed if this is a public facing server
|
||||
TRAEFIK_ACME_MAIL=
|
||||
|
||||
### oCIS settings ###
|
||||
# oCIS version. Defaults to "latest"
|
||||
OCIS_DOCKER_TAG=
|
||||
# Domain of oCIS, where you can find the frontend. Defaults to "ocis.owncloud.test"
|
||||
OCIS_DOMAIN=
|
||||
|
||||
### oC10 ###
|
||||
# Domain of ownCloud 10, where you can find the frontend. Defaults to "oc10.owncloud.test"
|
||||
#OC10_DOMAIN=
|
||||
@@ -0,0 +1,6 @@
|
||||
---
|
||||
document this deployment example in docs/ocis/deployment/ocis_oc10_backend.md
|
||||
---
|
||||
|
||||
Please refer to [our documentation](https://owncloud.github.io/ocis/deployment/owncloud10_with_oc_web/)
|
||||
for instructions on how to deploy this scenario.
|
||||
+4
-3
@@ -32,7 +32,7 @@ function getConfigFromEnv() {
|
||||
0 => $domain
|
||||
],
|
||||
'openid-connect' => [
|
||||
'provider-url' => 'https://' . getenv('OCIS_DOMAIN'),
|
||||
'provider-url' => getenv('OCIS_DOMAIN'),
|
||||
'client-id' => 'oc10',
|
||||
'client-secret' => 'super',
|
||||
'loginButtonName' => 'OpenId Connect',
|
||||
@@ -40,6 +40,7 @@ function getConfigFromEnv() {
|
||||
'mode' => 'userid',
|
||||
'autoRedirectOnLoginPage' => true,
|
||||
'insecure' => true,
|
||||
'post_logout_redirect_uri' => getenv('OWNCLOUD_DOMAIN') . '/',
|
||||
],
|
||||
'datadirectory' => getenv('OWNCLOUD_VOLUME_FILES'),
|
||||
'dbtype' => getenv('OWNCLOUD_DB_TYPE'),
|
||||
@@ -49,8 +50,8 @@ function getConfigFromEnv() {
|
||||
'dbpassword' => getenv('OWNCLOUD_DB_PASSWORD'),
|
||||
'dbtableprefix' => getenv('OWNCLOUD_DB_PREFIX'),
|
||||
|
||||
'phoenix.baseUrl' => 'https://'. getenv('OCIS_DOMAIN'),
|
||||
'cors.allowed-domains' => ['https://'. getenv('OCIS_DOMAIN')],
|
||||
'phoenix.baseUrl' => getenv('OCIS_DOMAIN'),
|
||||
'cors.allowed-domains' => [getenv('OCIS_DOMAIN')],
|
||||
|
||||
'log_type' => 'owncloud',
|
||||
|
||||
@@ -0,0 +1,3 @@
|
||||
config.json
|
||||
identifier-registration.yaml
|
||||
proxy-config.json
|
||||
+6
-11
@@ -1,10 +1,10 @@
|
||||
{
|
||||
"server": "https://ocis.example.org",
|
||||
"server": "https://ocis.owncloud.test",
|
||||
"theme": "owncloud",
|
||||
"version": "0.1.0",
|
||||
"openIdConnect": {
|
||||
"metadata_url": "https://ocis.example.org/.well-known/openid-configuration",
|
||||
"authority": "https://ocis.example.org",
|
||||
"metadata_url": "https://ocis.owncloud.test/.well-known/openid-configuration",
|
||||
"authority": "https://ocis.owncloud.test",
|
||||
"client_id": "phoenix",
|
||||
"response_type": "code",
|
||||
"scope": "openid profile email"
|
||||
@@ -16,7 +16,7 @@
|
||||
"de": "Klassisches ownCloud"
|
||||
},
|
||||
"icon": "switch_ui",
|
||||
"url": "https://oc10.example.org",
|
||||
"url": "https://oc10.owncloud.test",
|
||||
"target": "_self"
|
||||
},
|
||||
{
|
||||
@@ -25,15 +25,10 @@
|
||||
"de": "Einstellungen"
|
||||
},
|
||||
"icon": "application",
|
||||
"url": "https://oc10.example.org/index.php/settings/personal",
|
||||
"url": "https://oc10.owncloud.test/index.php/settings/personal",
|
||||
"target": "_self",
|
||||
"menu": "user"
|
||||
}
|
||||
],
|
||||
"apps": [
|
||||
"files",
|
||||
"draw-io",
|
||||
"markdown-editor",
|
||||
"media-viewer"
|
||||
]
|
||||
"apps": ["files", "draw-io", "markdown-editor", "media-viewer"]
|
||||
}
|
||||
+50
@@ -0,0 +1,50 @@
|
||||
---
|
||||
# OpenID Connect client registry.
|
||||
clients:
|
||||
- id: phoenix
|
||||
name: OCIS
|
||||
application_type: web
|
||||
insecure: yes
|
||||
trusted: yes
|
||||
redirect_uris:
|
||||
- https://ocis.owncloud.test/
|
||||
- https://ocis.owncloud.test/oidc-callback.html
|
||||
- https://ocis.owncloud.test/oidc-silent-redirect.html
|
||||
origins:
|
||||
- https://ocis.owncloud.test
|
||||
|
||||
- id: oc10
|
||||
name: OC10
|
||||
application_type: web
|
||||
secret: super
|
||||
insecure: yes
|
||||
trusted: yes
|
||||
redirect_uris:
|
||||
- https://oc10.owncloud.test/
|
||||
- https://oc10.owncloud.test/apps/openidconnect/redirect
|
||||
origins:
|
||||
- https://oc10.owncloud.test
|
||||
|
||||
- id: ocis-explorer.js
|
||||
name: OCIS Graph Explorer
|
||||
trusted: yes
|
||||
application_type: web
|
||||
insecure: yes
|
||||
|
||||
- id: xdXOt13JKxym1B1QcEncf2XDkLAexMBFwiT9j6EfhhHFJhs2KM9jbjTmf8JBXE69
|
||||
secret: UBntmLjC2yYCeHwsyj73Uwo9TAaecAetRwMw0xYcvNL9yRdLSUi0hUAHfvCHFeFh
|
||||
application_type: native
|
||||
insecure: true
|
||||
|
||||
- id: e4rAsNUSIUs0lF4nbv9FmCeUkTlV9GdgTLDH1b5uie7syb90SzEVrbN7HIpmWJeD
|
||||
secret: dInFYGV33xKzhbRmpqQltYNdfLdJIfJ9L5ISoKhNoT9qZftpdWSP71VrpGR9pmoD
|
||||
application_type: native
|
||||
redirect_uris:
|
||||
- oc://android.owncloud.com
|
||||
|
||||
- id: mxd5OQDk6es5LzOzRvidJNfXLUZS2oN3oUFeXPP8LpPrhx3UroJFduGEYIBOxkY1
|
||||
secret: KFeFWWEZO9TkisIQzR3fo7hfiMXlOpaqP8CFuTbSHzV1TUuGECglPxpiVKJfOXIx
|
||||
application_type: native
|
||||
redirect_uris:
|
||||
- oc://ios.owncloud.com
|
||||
- oc.ios://ios.owncloud.com
|
||||
+11
-9
@@ -1,15 +1,15 @@
|
||||
{
|
||||
"HTTP": {
|
||||
"Namespace": "works.owncloud"
|
||||
"Namespace": "ocis_oc10_backend"
|
||||
},
|
||||
"policy_selector": {
|
||||
"static": {
|
||||
"policy": "oc10"
|
||||
"policy": "ocis_oc10_backend"
|
||||
}
|
||||
},
|
||||
"policies": [
|
||||
{
|
||||
"name": "oc10",
|
||||
"name": "ocis_oc10_backend",
|
||||
"routes": [
|
||||
{
|
||||
"endpoint": "/",
|
||||
@@ -29,31 +29,33 @@
|
||||
},
|
||||
{
|
||||
"endpoint": "/ocs/",
|
||||
"backend": "http://owncloud:8080",
|
||||
"backend": "https://oc10.owncloud.test",
|
||||
"apache-vhost": true
|
||||
},
|
||||
{
|
||||
"endpoint": "/remote.php/",
|
||||
"backend": "http://owncloud:8080",
|
||||
"backend": "https://oc10.owncloud.test",
|
||||
"apache-vhost": true
|
||||
},
|
||||
{
|
||||
"endpoint": "/dav/",
|
||||
"backend": "http://owncloud:8080",
|
||||
"backend": "https://oc10.owncloud.test",
|
||||
"apache-vhost": true
|
||||
},
|
||||
{
|
||||
"endpoint": "/webdav/",
|
||||
"backend": "http://owncloud:8080",
|
||||
"backend": "https://oc10.owncloud.test",
|
||||
"apache-vhost": true
|
||||
},
|
||||
{
|
||||
"endpoint": "/status.php",
|
||||
"backend": "http://owncloud:8080"
|
||||
"backend": "https://oc10.owncloud.test",
|
||||
"apache-vhost": true
|
||||
},
|
||||
{
|
||||
"endpoint": "/index.php/",
|
||||
"backend": "http://owncloud:8080"
|
||||
"backend": "https://oc10.owncloud.test",
|
||||
"apache-vhost": true
|
||||
}
|
||||
]
|
||||
}
|
||||
@@ -0,0 +1,220 @@
|
||||
---
|
||||
version: "3.7"
|
||||
|
||||
services:
|
||||
traefik:
|
||||
image: "traefik:v2.3"
|
||||
networks:
|
||||
default:
|
||||
aliases:
|
||||
- ${OCIS_DOMAIN:-ocis.owncloud.test}
|
||||
- ${OC10_DOMAIN:-oc10.owncloud.test}
|
||||
command:
|
||||
#- "--log.level=DEBUG"
|
||||
- "--certificatesResolvers.http.acme.email=${TRAEFIK_ACME_MAIL:-'example@example.org'}"
|
||||
- "--certificatesResolvers.http.acme.storage=/certs/acme.json"
|
||||
- "--certificatesResolvers.http.acme.httpChallenge.entryPoint=http"
|
||||
- "--api.dashboard=true"
|
||||
- "--entryPoints.http.address=:80"
|
||||
- "--entryPoints.https.address=:443"
|
||||
- "--providers.docker.endpoint=unix:///var/run/docker.sock"
|
||||
- "--providers.docker.exposedByDefault=false"
|
||||
ports:
|
||||
- "80:80"
|
||||
- "443:443"
|
||||
volumes:
|
||||
- "/var/run/docker.sock:/var/run/docker.sock:ro"
|
||||
- "certs:/certs"
|
||||
labels:
|
||||
- "traefik.enable=true"
|
||||
- "traefik.http.routers.traefik.entrypoints=http"
|
||||
- "traefik.http.routers.traefik.rule=Host(`${TRAEFIK_DOMAIN:-traefik.owncloud.test}`)"
|
||||
- "traefik.http.middlewares.traefik-auth.basicauth.users=${TRAEFIK_BASIC_AUTH_USERS:-admin:$apr1$4vqie50r$YQAmQdtmz5n9rEALhxJ4l.}" # defaults to admin:admin
|
||||
- "traefik.http.middlewares.traefik-https-redirect.redirectscheme.scheme=https"
|
||||
- "traefik.http.routers.traefik.middlewares=traefik-https-redirect"
|
||||
- "traefik.http.routers.traefik-secure.entrypoints=https"
|
||||
- "traefik.http.routers.traefik-secure.rule=Host(`${TRAEFIK_DOMAIN:-traefik.owncloud.test}`)"
|
||||
- "traefik.http.routers.traefik-secure.middlewares=traefik-auth"
|
||||
- "traefik.http.routers.traefik-secure.tls=true"
|
||||
- "traefik.http.routers.traefik-secure.tls.certresolver=http"
|
||||
- "traefik.http.routers.traefik-secure.service=api@internal"
|
||||
restart: always
|
||||
|
||||
ocis:
|
||||
image: owncloud/ocis:${OCIS_DOCKER_TAG:-latest}
|
||||
entrypoint:
|
||||
- /bin/sh
|
||||
- -c
|
||||
- |
|
||||
cp /config/identifier-registration.dist.yaml /config/identifier-registration.yaml
|
||||
sed -i 's/ocis.owncloud.test/${OCIS_DOMAIN:-ocis.owncloud.test}/g' /config/identifier-registration.yaml
|
||||
sed -i 's/oc10.owncloud.test/${OC10_DOMAIN:-oc10.owncloud.test}/g' /config/identifier-registration.yaml
|
||||
|
||||
cp /config/config.dist.json /config/config.json
|
||||
sed -i 's/ocis.owncloud.test/${OCIS_DOMAIN:-ocis.owncloud.test}/g' /config/config.json
|
||||
sed -i 's/oc10.owncloud.test/${OC10_DOMAIN:-oc10.owncloud.test}/g' /config/config.json
|
||||
|
||||
cp /config/proxy-config.dist.json /config/proxy-config.json
|
||||
sed -i 's/ocis.owncloud.test/${OCIS_DOMAIN:-ocis.owncloud.test}/g' /config/proxy-config.json
|
||||
sed -i 's/oc10.owncloud.test/${OC10_DOMAIN:-oc10.owncloud.test}/g' /config/proxy-config.json
|
||||
|
||||
ocis server
|
||||
networks:
|
||||
default:
|
||||
environment:
|
||||
# general config
|
||||
OCIS_DOMAIN: ${OCIS_DOMAIN:-ocis.owncloud.test}
|
||||
OCIS_LOG_LEVEL: error
|
||||
# proxy
|
||||
PROXY_AUTOPROVISION_ACCOUNTS: "true"
|
||||
PROXY_INSECURE_BACKENDS: "${INSECURE:-false}"
|
||||
PROXY_OIDC_INSECURE: "${INSECURE:-false}"
|
||||
PROXY_CONFIG_FILE: "/config/proxy-config.json"
|
||||
PROXY_ENABLE_PRESIGNEDURLS: "false"
|
||||
PROXY_OIDC_ISSUER: https://${OCIS_DOMAIN:-ocis.owncloud.test}
|
||||
PROXY_TLS: "false"
|
||||
# konnectd - binddn must exist as oc10 admin user
|
||||
KONNECTD_IDENTIFIER_REGISTRATION_CONF: "/config/identifier-registration.yaml"
|
||||
KONNECTD_INSECURE: "${INSECURE:-false}"
|
||||
KONNECTD_ISS: https://${OCIS_DOMAIN:-ocis.owncloud.test}
|
||||
KONNECTD_SIGNING_KID: super
|
||||
KONNECTD_TLS: 0
|
||||
LDAP_BASEDN: "dc=example,dc=org"
|
||||
LDAP_BINDDN: "cn=admin,dc=example,dc=org"
|
||||
LDAP_BINDPW: "admin"
|
||||
LDAP_EMAIL_ATTRIBUTE: mail
|
||||
LDAP_FILTER: "(objectClass=posixaccount)"
|
||||
LDAP_LOGIN_ATTRIBUTE: uid
|
||||
LDAP_NAME_ATTRIBUTE: givenName
|
||||
LDAP_SCOPE: sub
|
||||
LDAP_URI: ldap://localhost:9125
|
||||
LDAP_UUID_ATTRIBUTE_TYPE: text
|
||||
LDAP_UUID_ATTRIBUTE: uid
|
||||
# glauth
|
||||
GLAUTH_BACKEND_DATASTORE: owncloud
|
||||
GLAUTH_BACKEND_SERVERS: https://${OC10_DOMAIN:-oc10.owncloud.test}/apps/graphapi/v1.0
|
||||
GLAUTH_BACKEND_INSECURE: "${INSECURE:-false}"
|
||||
# graph
|
||||
GRAPH_OIDC_ENDPOINT: https://${OC10_DOMAIN:-oc10.owncloud.test}/apps/graphapi/v1.0
|
||||
# web ui
|
||||
PHOENIX_WEB_CONFIG: "/config/config.json"
|
||||
# storage - although not used, yet
|
||||
STORAGE_OIDC_ISSUER: https://${OCIS_DOMAIN:-ocis.owncloud.test}
|
||||
STORAGE_OIDC_INSECURE: "${INSECURE:-false}"
|
||||
STORAGE_TRANSFER_EXPIRES: 86400
|
||||
STORAGE_FRONTEND_PUBLIC_URL: https://${OCIS_DOMAIN:-ocis.owncloud.test}
|
||||
STORAGE_DATAGATEWAY_PUBLIC_URL: https://${OCIS_DOMAIN:-ocis.owncloud.test}/data
|
||||
STORAGE_LDAP_IDP: https://${OCIS_DOMAIN:-ocis.owncloud.test}
|
||||
STORAGE_METADATA_ROOT: /opt/ocis-metadata
|
||||
STORAGE_DRIVER_OCIS_ROOT: /opt/ocis-storage
|
||||
# store config
|
||||
STORE_DATA_PATH: /opt/ocis-store
|
||||
# settings config
|
||||
SETTINGS_DATA_PATH: /opt/ocis-settings
|
||||
volumes:
|
||||
- ./config/ocis:/config
|
||||
- ocis-storage:/opt/ocis-storage
|
||||
- ocis-metadata:/opt/ocis-metadata
|
||||
- ocis-store:/opt/ocis-store
|
||||
- ocis-settings:/opt/ocis-settings
|
||||
labels:
|
||||
- "traefik.enable=true"
|
||||
- "traefik.http.routers.ocis.entrypoints=http"
|
||||
- "traefik.http.routers.ocis.rule=Host(`${OCIS_DOMAIN:-ocis.owncloud.test}`)"
|
||||
- "traefik.http.middlewares.ocis-https-redirect.redirectscheme.scheme=https"
|
||||
- "traefik.http.routers.ocis.middlewares=ocis-https-redirect"
|
||||
- "traefik.http.routers.ocis-secure.entrypoints=https"
|
||||
- "traefik.http.routers.ocis-secure.rule=Host(`${OCIS_DOMAIN:-ocis.owncloud.test}`)"
|
||||
- "traefik.http.routers.ocis-secure.tls=true"
|
||||
- "traefik.http.routers.ocis-secure.tls.certresolver=http"
|
||||
- "traefik.http.routers.ocis-secure.service=ocis"
|
||||
- "traefik.http.services.ocis.loadbalancer.server.port=9200"
|
||||
restart: always
|
||||
|
||||
oc10:
|
||||
image: owncloud/server:10.6.0-rc1
|
||||
depends_on:
|
||||
- db
|
||||
- redis
|
||||
environment:
|
||||
PROXY_LOG_LEVEL: debug
|
||||
OCIS_DOMAIN: https://${OCIS_DOMAIN:-ocis.owncloud.test}
|
||||
OWNCLOUD_DOMAIN: ${OC10_DOMAIN:-oc10.owncloud.test}
|
||||
OWNCLOUD_DB_TYPE: mysql
|
||||
OWNCLOUD_DB_NAME: owncloud
|
||||
OWNCLOUD_DB_USERNAME: owncloud
|
||||
OWNCLOUD_DB_PASSWORD: owncloud
|
||||
OWNCLOUD_DB_HOST: db
|
||||
OWNCLOUD_ADMIN_USERNAME: admin
|
||||
OWNCLOUD_ADMIN_PASSWORD: admin
|
||||
OWNCLOUD_MYSQL_UTF8MB4: "true"
|
||||
OWNCLOUD_REDIS_ENABLED: "true"
|
||||
OWNCLOUD_REDIS_HOST: redis
|
||||
OWNCLOUD_TRUSTED_PROXIES: ${OC10_DOMAIN:-oc10.owncloud.test}
|
||||
OWNCLOUD_OVERWRITE_PROTOCOL: https
|
||||
OWNCLOUD_OVERWRITE_HOST: ${OC10_DOMAIN:-oc10.owncloud.test}
|
||||
OWNCLOUD_APPS_ENABLE: "openidconnect,oauth2,user_ldap,graphapi"
|
||||
OWNCLOUD_LOG_LEVEL: 0
|
||||
volumes:
|
||||
- ./config/oc10/config.php:/etc/templates/config.php
|
||||
- files:/mnt/data
|
||||
- tmp:/tmp/shared
|
||||
labels:
|
||||
- "traefik.enable=true"
|
||||
- "traefik.http.routers.oc10.entrypoints=http"
|
||||
- "traefik.http.routers.oc10.rule=Host(`${OC10_DOMAIN:-oc10.owncloud.test}`)"
|
||||
- "traefik.http.middlewares.oc10-https-redirect.redirectscheme.scheme=https"
|
||||
- "traefik.http.routers.oc10.middlewares=oc10-https-redirect"
|
||||
- "traefik.http.routers.oc10-secure.entrypoints=https"
|
||||
- "traefik.http.routers.oc10-secure.rule=Host(`${OC10_DOMAIN:-oc10.owncloud.test}`)"
|
||||
- "traefik.http.routers.oc10-secure.tls=true"
|
||||
- "traefik.http.routers.oc10-secure.tls.certresolver=http"
|
||||
- "traefik.http.routers.oc10-secure.service=oc10"
|
||||
- "traefik.http.services.oc10.loadbalancer.server.port=8080"
|
||||
restart: always
|
||||
|
||||
db:
|
||||
image: webhippie/mariadb:latest
|
||||
environment:
|
||||
MARIADB_ROOT_PASSWORD: owncloud
|
||||
MARIADB_USERNAME: owncloud
|
||||
MARIADB_PASSWORD: owncloud
|
||||
MARIADB_DATABASE: owncloud
|
||||
MARIADB_MAX_ALLOWED_PACKET: 128M
|
||||
MARIADB_INNODB_LOG_FILE_SIZE: 256M
|
||||
healthcheck:
|
||||
test: ["CMD", "/usr/bin/healthcheck"]
|
||||
interval: 30s
|
||||
timeout: 10s
|
||||
retries: 5
|
||||
volumes:
|
||||
- mysql:/var/lib/mysql
|
||||
- backup:/var/lib/backup
|
||||
restart: always
|
||||
|
||||
redis:
|
||||
image: webhippie/redis:latest
|
||||
environment:
|
||||
- REDIS_DATABASES=1
|
||||
volumes:
|
||||
- redis:/var/lib/redis
|
||||
restart: always
|
||||
|
||||
|
||||
|
||||
volumes:
|
||||
certs:
|
||||
ocis-storage:
|
||||
ocis-metadata:
|
||||
ocis-store:
|
||||
ocis-settings:
|
||||
files:
|
||||
driver: local
|
||||
mysql:
|
||||
driver: local
|
||||
backup:
|
||||
driver: local
|
||||
redis:
|
||||
driver: local
|
||||
tmp:
|
||||
driver: local
|
||||
@@ -0,0 +1 @@
|
||||
hugo/
|
||||
@@ -0,0 +1,34 @@
|
||||
config-docs-generate:
|
||||
make -C ../accounts config-docs-generate
|
||||
make -C ../glauth config-docs-generate
|
||||
make -C ../konnectd config-docs-generate
|
||||
make -C ../ocis config-docs-generate
|
||||
make -C ../ocis-phoenix config-docs-generate
|
||||
make -C ../ocis-pkg config-docs-generate
|
||||
make -C ../ocs config-docs-generate
|
||||
make -C ../proxy config-docs-generate
|
||||
make -C ../settings config-docs-generate
|
||||
make -C ../storage config-docs-generate
|
||||
make -C ../store config-docs-generate
|
||||
make -C ../thumbnails config-docs-generate
|
||||
make -C ../webdav config-docs-generate
|
||||
|
||||
.PHONY: docs-copy
|
||||
docs-copy:
|
||||
mkdir -p hugo/content/
|
||||
cd hugo; \
|
||||
git init; \
|
||||
git config advice.detachedHead false; \
|
||||
git remote rm origin; \
|
||||
git remote add origin https://github.com/owncloud/owncloud.github.io; \
|
||||
git fetch --depth=1; \
|
||||
git checkout origin/source -f; \
|
||||
rsync -ax --delete --exclude hugo/ --exclude Makefile --exclude .gitignore --exclude README.md ../. content/; \
|
||||
|
||||
.PHONY: docs-serve
|
||||
docs-serve: config-docs-generate docs-copy
|
||||
docker run --rm --network host -v $(shell pwd)/hugo:/src owncloudci/hugo:0 server
|
||||
|
||||
.PHONY: clean
|
||||
clean:
|
||||
rm -rf hugo
|
||||
@@ -0,0 +1,3 @@
|
||||
# documentation
|
||||
|
||||
To contribute to documentation please see also: [Documentation](http://owncloud.github.io/ocis/development/build-docs/)
|
||||
+13
-7
@@ -2,12 +2,19 @@
|
||||
title: ownCloud
|
||||
---
|
||||
|
||||
{{< toc >}}
|
||||
|
||||
## Developer Documentation
|
||||
|
||||
Welcome to our developer documentation. Here you can find documentation for developers on
|
||||
- The oCIS server
|
||||
Welcome to our developer documentation. Here you can find developer documentation on:
|
||||
|
||||
- [oCIS](https://owncloud.github.io/ocis/) server
|
||||
- oCIS extensions
|
||||
- All Client, like Android, iOS, and the Desktop Client
|
||||
- Clients, like:
|
||||
- [Phoenix](https://github.com/owncloud/phoenix) - the new web frontend for oCIS and ownCloud
|
||||
- [ownCloud Android app](https://github.com/owncloud/android)
|
||||
- [ownCloud iOS app](https://github.com/owncloud/ios-app)
|
||||
- [ownCloud Desktop Syncing Client](https://github.com/owncloud/client)
|
||||
- Integrations
|
||||
|
||||
## We love open source
|
||||
@@ -19,11 +26,10 @@ You can also find all client sources on github.
|
||||
|
||||
## Join us
|
||||
|
||||
The oCIS server repository on github is a good entrypoint for you to join the project. But we also develop clients for iOS, Android, Desktop and Web.
|
||||
The oCIS server repository on github is a good entry point for you to join the project. But we also develop clients for iOS, Android, Desktop and Web.
|
||||
|
||||
For communication on development you can join our public chat https://talk.owncloud.com
|
||||
For communication on development you can join our public chat [talk.owncloud.com](https://talk.owncloud.com)
|
||||
|
||||
If you want to help and improve ownCloud, start coding or open issues on github in the related repositiory.
|
||||
If you want to help and improve ownCloud or oCIS, start coding or open issues on github in the related repository.
|
||||
|
||||
We are very happy to hear your feedback and ideas!
|
||||
|
||||
@@ -1,20 +1,18 @@
|
||||
---
|
||||
title: Accounts
|
||||
date: 2018-05-02T00:00:00+00:00
|
||||
weight: 10
|
||||
weight: 20
|
||||
geekdocRepo: https://github.com/owncloud/ocis
|
||||
geekdocEditPath: edit/master/docs/extensions/accounts
|
||||
geekdocFilePath: _index.md
|
||||
---
|
||||
|
||||
[](https://github.com/owncloud/ocis-hello/blob/master/LICENSE)
|
||||
|
||||
## Abstract
|
||||
OCIS needs to be able to identify users. Whithout a non reassignable and persistend account ID share metadata cannot be reliably persisted. `ocis-accounts` allows exchanging oidc claims for a uuid. Using a uuid allows users to change the login, mail or even openid connect provider without breaking any persisted metadata that might have been attached to it.
|
||||
oCIS needs to be able to identify users. Without a non reassignable and persistent account ID share metadata cannot be reliably persisted. `accounts` allows exchanging oidc claims for a uuid. Using a uuid allows users to change the login, mail or even openid connect provider without breaking any persisted metadata that might have been attached to it.
|
||||
|
||||
- persists accounts
|
||||
- uses graph api properties
|
||||
-ldap can be synced using the onpremise* attributes
|
||||
- ldap can be synced using the onpremise* attributes
|
||||
|
||||
## Table of Contents
|
||||
|
||||
|
||||
@@ -1,28 +0,0 @@
|
||||
---
|
||||
title: "Building"
|
||||
date: 2018-05-02T00:00:00+00:00
|
||||
weight: 30
|
||||
geekdocRepo: https://github.com/owncloud/ocis
|
||||
geekdocEditPath: edit/master/docs/extensions/accounts
|
||||
geekdocFilePath: building.md
|
||||
---
|
||||
|
||||
{{< toc >}}
|
||||
|
||||
As this project is built with Go, so you need to install that first. The installation of Go is out of the scope of this document, please follow the official documentation for [Go](https://golang.org/doc/install), to build this project you have to install Go >= v1.13. After the installation of the required tools you need to get the sources:
|
||||
|
||||
{{< highlight txt >}}
|
||||
git clone https://github.com/owncloud/ocis-accounts.git
|
||||
cd ocis-accounts
|
||||
{{< / highlight >}}
|
||||
|
||||
All required tool besides Go itself and make are bundled or getting automatically installed within the `GOPATH`. All commands to build this project are part of our `Makefile`.
|
||||
|
||||
## Backend
|
||||
|
||||
{{< highlight txt >}}
|
||||
make generate
|
||||
make build
|
||||
{{< / highlight >}}
|
||||
|
||||
Finally you should have the binary within the `bin/` folder now, give it a try with `./bin/ocis-accounts -h` to see all available options and subcommands.
|
||||
@@ -1,68 +0,0 @@
|
||||
---
|
||||
title: "Getting Started"
|
||||
date: 2018-05-02T00:00:00+00:00
|
||||
weight: 20
|
||||
geekdocRepo: https://github.com/owncloud/ocis
|
||||
geekdocEditPath: edit/master/docs/extensions/accounts
|
||||
geekdocFilePath: getting-started.md
|
||||
---
|
||||
|
||||
{{< toc >}}
|
||||
|
||||
## Installation
|
||||
|
||||
So far we are offering two different variants for the installation. You can choose between [Docker](https://www.docker.com/) or pre-built binaries which are stored on our download mirrors and GitHub releases. Maybe we will also provide system packages for the major distributions later if we see the need for it.
|
||||
|
||||
### Docker
|
||||
|
||||
TBD
|
||||
|
||||
### Binaries
|
||||
|
||||
TBD
|
||||
|
||||
## Configuration
|
||||
|
||||
We provide overall three different variants of configuration. The variant based on environment variables and commandline flags are split up into global values and command-specific values.
|
||||
|
||||
### Envrionment variables
|
||||
|
||||
If you prefer to configure the service with environment variables you can see the available variables below.
|
||||
|
||||
#### Server
|
||||
|
||||
OCIS_ACCOUNTS_NAME
|
||||
: Name of the accounts service. It will be part of the namespace.
|
||||
|
||||
OCIS_ACCOUNTS_NAMESPACE
|
||||
: Namespace of the accounts service.
|
||||
|
||||
OCIS_ACCOUNTS_ADDRESS
|
||||
: Endpoint for the grpc service endpoint.
|
||||
|
||||
### Commandline flags
|
||||
|
||||
If you prefer to configure the service with commandline flags you can see the available variables below.
|
||||
|
||||
### Configuration file
|
||||
|
||||
So far we support the file formats `JSON` and `YAML`, if you want to get a full example configuration just take a look at [our repository](https://github.com/owncloud/ocis/accounts/tree/master/pkg/config), there you can always see the latest configuration format. These example configurations include all available options and the default values. The configuration file will be automatically loaded if it's placed at `/etc/ocis/accounts.yml`, `${HOME}/.ocis/accounts.yml` or `$(pwd)/config/accounts.yml`.
|
||||
|
||||
## Usage
|
||||
|
||||
The program provides a few sub-commands on execution. The available configuration methods have already been mentioned above. Generally you can always see a formated help output if you execute the binary via `ocis-accounts --help`.
|
||||
|
||||
### Server
|
||||
|
||||
The server command is used to start the grpc server. For further help please execute:
|
||||
|
||||
{{< highlight txt >}}
|
||||
accounts server --help
|
||||
{{< / highlight >}}
|
||||
|
||||
### Version
|
||||
The version command lists the versions of all running instances. For further help please execute:
|
||||
|
||||
{{< highlight txt >}}
|
||||
accounts version --help
|
||||
{{< /highlight >}}
|
||||
@@ -1,7 +1,7 @@
|
||||
---
|
||||
title: "GLAuth"
|
||||
date: 2018-05-02T00:00:00+00:00
|
||||
weight: 10
|
||||
weight: 20
|
||||
geekdocRepo: https://github.com/owncloud/ocis
|
||||
geekdocEditPath: edit/master/docs/extensions/glauth
|
||||
geekdocFilePath: _index.md
|
||||
|
||||
@@ -1,28 +0,0 @@
|
||||
---
|
||||
title: "Building"
|
||||
date: 2018-05-02T00:00:00+00:00
|
||||
weight: 30
|
||||
geekdocRepo: https://github.com/owncloud/ocis
|
||||
geekdocEditPath: edit/master/docs/extensions/glauth
|
||||
geekdocFilePath: building.md
|
||||
---
|
||||
|
||||
{{< toc >}}
|
||||
|
||||
As this project is built with Go, so you need to install that first. The installation of Go is out of the scope of this document, please follow the official documentation for [Go](https://golang.org/doc/install), to build this project you have to install Go >= v1.13. After the installation of the required tools you need to get the sources:
|
||||
|
||||
{{< highlight txt >}}
|
||||
git clone https://github.com/owncloud/ocis-glauth.git
|
||||
cd ocis-glauth
|
||||
{{< / highlight >}}
|
||||
|
||||
All required tool besides Go itself and make are bundled or getting automatically installed within the `GOPATH`. All commands to build this project are part of our `Makefile`.
|
||||
|
||||
## Backend
|
||||
|
||||
{{< highlight txt >}}
|
||||
make generate
|
||||
make build
|
||||
{{< / highlight >}}
|
||||
|
||||
Finally you should have the binary within the `bin/` folder now, give it a try with `./bin/ocis-glauth -h` to see all available options.
|
||||
@@ -0,0 +1,16 @@
|
||||
---
|
||||
title: "Configuration Hints"
|
||||
date: 2018-05-02T00:00:00+00:00
|
||||
weight: 20
|
||||
geekdocRepo: https://github.com/owncloud/ocis
|
||||
geekdocEditPath: edit/master/docs/extensions/glauth
|
||||
geekdocFilePath: configuration-hints.md
|
||||
---
|
||||
|
||||
{{< toc >}}
|
||||
|
||||
## Configuration hints
|
||||
|
||||
The default setup does not use a fallback backend. It can be enabled by setting the `GLAUTH_FALLBACK_DATASTORE` environment variable.
|
||||
|
||||
When using `owncloud` make sure to use the full URL to the [ownCloud 10 graph api app](https://github.com/owncloud/graphapi) endpoint, eg.: `GLAUTH_FALLBACK_SERVERS="https://demo.owncloud.com/apps/graphapi/v1.0"`
|
||||
@@ -1,14 +0,0 @@
|
||||
---
|
||||
title: "Getting Started"
|
||||
date: 2018-05-02T00:00:00+00:00
|
||||
weight: 20
|
||||
geekdocRepo: https://github.com/owncloud/ocis
|
||||
geekdocEditPath: edit/master/docs/extensions/glauth
|
||||
geekdocFilePath: getting-started.md
|
||||
---
|
||||
|
||||
{{< toc >}}
|
||||
|
||||
## Configuration Tips
|
||||
|
||||
The default setup does not use a fallback backend. It can be enabled by setting the `GLAUTH_FALLBACK_DATASTORE` environment variable. When using `owncloud` make sure to use the full URL to the [ownCloud 10 graph api app](https://github.com/owncloud/graphapi) endpoint, eg.: `GLAUTH_FALLBACK_SERVERS="https://demo.owncloud.com/apps/graphapi/v1.0"`
|
||||
@@ -1,10 +0,0 @@
|
||||
---
|
||||
title: "License"
|
||||
date: 2018-05-02T00:00:00+00:00
|
||||
weight: 40
|
||||
geekdocRepo: https://github.com/owncloud/ocis
|
||||
geekdocEditPath: edit/master/docs/extensions/glauth
|
||||
geekdocFilePath: license.md
|
||||
---
|
||||
|
||||
This project is licensed under the [Apache 2.0](https://github.com/owncloud/ocis/glauth/blob/master/LICENSE) license. For the license of the used libraries you have to check the respective sources.
|
||||
@@ -1,5 +1,6 @@
|
||||
---
|
||||
title: Konnectd
|
||||
weight: 20
|
||||
geekdocRepo: https://github.com/owncloud/ocis
|
||||
geekdocEditPath: edit/master/docs/extensions/konnectd
|
||||
geekdocFilePath: _index.md
|
||||
|
||||
@@ -1,28 +0,0 @@
|
||||
---
|
||||
title: "Building"
|
||||
date: 2020-02-21T00:00:00+00:00
|
||||
weight: 30
|
||||
geekdocRepo: https://github.com/owncloud/ocis
|
||||
geekdocEditPath: edit/master/docs/extensions/konnectd
|
||||
geekdocFilePath: building.md
|
||||
---
|
||||
|
||||
{{< toc >}}
|
||||
|
||||
As this project is built with Go, so you need to install that first. The installation of Go is out of the scope of this document, please follow the official documentation for [Go](https://golang.org/doc/install), to build this project you have to install Go >= v1.13. After the installation of the required tools you need to get the sources:
|
||||
|
||||
{{< highlight txt >}}
|
||||
git clone https://github.com/owncloud/ocis-konnectd.git
|
||||
cd ocis-konnectd
|
||||
{{< / highlight >}}
|
||||
|
||||
All required tool besides Go itself and make are bundled or getting automatically installed within the `GOPATH`. All commands to build this project are part of our `Makefile`.
|
||||
|
||||
## Backend
|
||||
|
||||
{{< highlight txt >}}
|
||||
make generate
|
||||
make build
|
||||
{{< / highlight >}}
|
||||
|
||||
Finally you should have the binary within the `bin/` folder now, give it a try with `./bin/ocis-konnectd -h` to see all available options and subcommands.
|
||||
@@ -1,161 +0,0 @@
|
||||
---
|
||||
title: "Getting Started"
|
||||
date: 2018-05-02T00:00:00+00:00
|
||||
weight: 10
|
||||
geekdocRepo: https://github.com/owncloud/ocis
|
||||
geekdocEditPath: edit/master/docs/extensions/konnectd
|
||||
geekdocFilePath: getting-started.md
|
||||
---
|
||||
|
||||
{{< toc >}}
|
||||
|
||||
## Installation
|
||||
|
||||
So far we are offering two different variants for the installation. You can choose between [Docker](https://www.docker.com/) or pre-built binaries which are stored on our download mirrors and GitHub releases. Maybe we will also provide system packages for the major distributions later if we see the need for it.
|
||||
|
||||
### Docker
|
||||
|
||||
Docker images for ocis-reva are hosted on https://hub.docker.com/r/owncloud/ocis-konnectd.
|
||||
|
||||
The `latest` tag always reflects the current master branch.
|
||||
|
||||
```console
|
||||
docker pull owncloud/ocis-konnectd
|
||||
```
|
||||
|
||||
### Binaries
|
||||
|
||||
The pre-built binaries for different platforms are downloadable at https://download.owncloud.com/ocis/ocis-konnectd/ . Specific releases are organized in separate folders. They are in sync which every release tag on GitHub. The binaries from the current master branch can be found in https://download.owncloud.com/ocis/ocis-konnectd/testing/
|
||||
|
||||
```console
|
||||
curl https://download.owncloud.com/ocis/ocis-konnectd/1.0.0-beta1/ocis-konnectd-1.0.0-beta1-darwin-amd64 --output ocis-konnectd
|
||||
chmod +x ocis-konnectd
|
||||
./ocis-konnectd server
|
||||
```
|
||||
|
||||
## Usage
|
||||
|
||||
The program provides a few sub-commands on execution. The available configuration methods have already been mentioned above. Generally you can always see a formated help output if you execute the binary via `ocis-konnectd --help`.
|
||||
|
||||
### Server
|
||||
|
||||
The server command is used to start the http and debug server on two addresses within a single process. The http server is serving the general webservice while the debug server is used for health check, readiness check and to server the metrics mentioned below. For further help please execute:
|
||||
|
||||
{{< highlight txt >}}
|
||||
konnectd server --help
|
||||
{{< / highlight >}}
|
||||
|
||||
### Health
|
||||
|
||||
The health command is used to execute a health check, if the exit code equals zero the service should be up and running, if the exist code is greater than zero the service is not in a healthy state. Generally this command is used within our Docker containers, it could also be used within Kubernetes.
|
||||
|
||||
{{< highlight txt >}}
|
||||
konnectd health --help
|
||||
{{< / highlight >}}
|
||||
|
||||
### Version
|
||||
The version command lists the versions of all running instances. For further help please execute:
|
||||
|
||||
{{< highlight txt >}}
|
||||
konnectd version --help
|
||||
{{< /highlight >}}
|
||||
|
||||
## Metrics
|
||||
|
||||
This service provides some [Prometheus](https://prometheus.io/) metrics through the debug endpoint, you can optionally secure the metrics endpoint by some random token, which got to be configured through one of the flag `--debug-token` or the environment variable `KONNECTD_DEBUG_TOKEN` mentioned above. By default the metrics endpoint is bound to `http://0.0.0.0:9134/metrics`.
|
||||
|
||||
go_gc_duration_seconds
|
||||
: A summary of the GC invocation durations
|
||||
|
||||
go_gc_duration_seconds_sum
|
||||
: A summary of the GC invocation durations
|
||||
|
||||
go_gc_duration_seconds_count
|
||||
: A summary of the GC invocation durations
|
||||
|
||||
go_goroutines
|
||||
: Number of goroutines that currently exist
|
||||
|
||||
go_info
|
||||
: Information about the Go environment
|
||||
|
||||
go_memstats_alloc_bytes
|
||||
: Number of bytes allocated and still in use
|
||||
|
||||
go_memstats_alloc_bytes_total
|
||||
: Total number of bytes allocated, even if freed
|
||||
|
||||
go_memstats_buck_hash_sys_bytes
|
||||
: Number of bytes used by the profiling bucket hash table
|
||||
|
||||
go_memstats_frees_total
|
||||
: Total number of frees
|
||||
|
||||
go_memstats_gc_cpu_fraction
|
||||
: The fraction of this program's available CPU time used by the GC since the program started
|
||||
|
||||
go_memstats_gc_sys_bytes
|
||||
: Number of bytes used for garbage collection system metadata
|
||||
|
||||
go_memstats_heap_alloc_bytes
|
||||
: Number of heap bytes allocated and still in use
|
||||
|
||||
go_memstats_heap_idle_bytes
|
||||
: Number of heap bytes waiting to be used
|
||||
|
||||
go_memstats_heap_inuse_bytes
|
||||
: Number of heap bytes that are in use
|
||||
|
||||
go_memstats_heap_objects
|
||||
: Number of allocated objects
|
||||
|
||||
go_memstats_heap_released_bytes
|
||||
: Number of heap bytes released to OS
|
||||
|
||||
go_memstats_heap_sys_bytes
|
||||
: Number of heap bytes obtained from system
|
||||
|
||||
go_memstats_last_gc_time_seconds
|
||||
: Number of seconds since 1970 of last garbage collection
|
||||
|
||||
go_memstats_lookups_total
|
||||
: Total number of pointer lookups
|
||||
|
||||
go_memstats_mallocs_total
|
||||
: Total number of mallocs
|
||||
|
||||
go_memstats_mcache_inuse_bytes
|
||||
: Number of bytes in use by mcache structures
|
||||
|
||||
go_memstats_mcache_sys_bytes
|
||||
: Number of bytes used for mcache structures obtained from system
|
||||
|
||||
go_memstats_mspan_inuse_bytes
|
||||
: Number of bytes in use by mspan structures
|
||||
|
||||
go_memstats_mspan_sys_bytes
|
||||
: Number of bytes used for mspan structures obtained from system
|
||||
|
||||
go_memstats_next_gc_bytes
|
||||
: Number of heap bytes when next garbage collection will take place
|
||||
|
||||
go_memstats_other_sys_bytes
|
||||
: Number of bytes used for other system allocations
|
||||
|
||||
go_memstats_stack_inuse_bytes
|
||||
: Number of bytes in use by the stack allocator
|
||||
|
||||
go_memstats_stack_sys_bytes
|
||||
: Number of bytes obtained from system for stack allocator
|
||||
|
||||
go_memstats_sys_bytes
|
||||
: Number of bytes obtained from system
|
||||
|
||||
go_threads
|
||||
: Number of OS threads created
|
||||
|
||||
promhttp_metric_handler_requests_in_flight
|
||||
: Current number of scrapes being served
|
||||
|
||||
promhttp_metric_handler_requests_total
|
||||
: Total number of scrapes by HTTP status code
|
||||
@@ -1,12 +1,12 @@
|
||||
---
|
||||
title: "oCIS Web"
|
||||
title: "ownCloud Web"
|
||||
date: 2018-05-02T00:00:00+00:00
|
||||
weight: 10
|
||||
weight: 20
|
||||
geekdocRepo: https://github.com/owncloud/ocis
|
||||
geekdocEditPath: edit/master/docs/extensions/ocis-phoenix
|
||||
geekdocFilePath: _index.md
|
||||
---
|
||||
|
||||
Note: Work in progress to rename Phoenix to oCIS Web.
|
||||
Note: Work in progress to rename Phoenix to ownCloud Web.
|
||||
|
||||
This service embeds [Phoenix](https://github.com/owncloud/phoenix) to provide a UI for ownCloud Infinite Scale.
|
||||
@@ -1,18 +0,0 @@
|
||||
---
|
||||
title: "Building"
|
||||
date: 2018-05-02T00:00:00+00:00
|
||||
weight: 30
|
||||
geekdocRepo: https://github.com/owncloud/ocis
|
||||
geekdocEditPath: edit/master/docs/extensions/ocis-phoenix
|
||||
geekdocFilePath: building.md
|
||||
---
|
||||
|
||||
## Backend
|
||||
|
||||
{{< highlight txt >}}
|
||||
cd ocis-phoenix
|
||||
make generate
|
||||
make build
|
||||
{{< / highlight >}}
|
||||
|
||||
The above commands will download a [Phoenix](https://github.com/owncloud/phoenix) release and embed it into the binary. Finally you should have the binary within the `bin/` folder now, give it a try with `./bin/ocis-phoenix -h` to see all available options.
|
||||
@@ -1,339 +0,0 @@
|
||||
---
|
||||
title: "Getting Started"
|
||||
date: 2018-05-02T00:00:00+00:00
|
||||
weight: 20
|
||||
geekdocRepo: https://github.com/owncloud/ocis
|
||||
geekdocEditPath: edit/master/docs/extensions/ocis-phoenix
|
||||
geekdocFilePath: getting-started.md
|
||||
---
|
||||
|
||||
{{< toc >}}
|
||||
|
||||
## Installation
|
||||
|
||||
So far we are offering two different variants for the installation. You can choose between [Docker](https://www.docker.com/) or pre-built binaries which are stored on our download mirrors and GitHub releases. Maybe we will also provide system packages for the major distributions later if we see the need for it.
|
||||
|
||||
### Docker
|
||||
|
||||
TBD
|
||||
|
||||
### Binaries
|
||||
|
||||
TBD
|
||||
|
||||
## Configuration
|
||||
|
||||
We provide overall three different variants of configuration. The variant based on environment variables and commandline flags are split up into global values and command-specific values.
|
||||
|
||||
### Envrionment variables
|
||||
|
||||
If you prefer to configure the service with environment variables you can see the available variables below.
|
||||
|
||||
#### Global
|
||||
|
||||
PHOENIX_CONFIG_FILE
|
||||
: Path to config file, empty default value
|
||||
|
||||
PHOENIX_LOG_LEVEL
|
||||
: Set logging level, defaults to `info`
|
||||
|
||||
PHOENIX_LOG_COLOR
|
||||
: Enable colored logging, defaults to `true`
|
||||
|
||||
PHOENIX_LOG_PRETTY
|
||||
: Enable pretty logging, defaults to `true`
|
||||
|
||||
#### Server
|
||||
|
||||
PHOENIX_TRACING_ENABLED
|
||||
: Enable sending traces, defaults to `false`
|
||||
|
||||
PHOENIX_TRACING_TYPE
|
||||
: Tracing backend type, defaults to `jaeger`
|
||||
|
||||
PHOENIX_TRACING_ENDPOINT
|
||||
: Endpoint for the agent, empty default value
|
||||
|
||||
PHOENIX_TRACING_COLLECTOR
|
||||
: Endpoint for the collector, empty default value
|
||||
|
||||
PHOENIX_TRACING_SERVICE
|
||||
: Service name for tracing, defaults to `phoenix`
|
||||
|
||||
PHOENIX_DEBUG_ADDR
|
||||
: Address to bind debug server, defaults to `0.0.0.0:9104`
|
||||
|
||||
PHOENIX_DEBUG_TOKEN
|
||||
: Token to grant metrics access, empty default value
|
||||
|
||||
PHOENIX_DEBUG_PPROF
|
||||
: Enable pprof debugging, defaults to `false`
|
||||
|
||||
PHOENIX_DEBUG_ZPAGES
|
||||
: Enable zpages debugging, defaults to `false`
|
||||
|
||||
PHOENIX_HTTP_ADDR
|
||||
: Address to bind http server, defaults to `0.0.0.0:9100`
|
||||
|
||||
PHOENIX_HTTP_ROOT
|
||||
: Root path of http server, defaults to `/`
|
||||
|
||||
PHOENIX_ASSET_PATH
|
||||
: Path to custom assets, empty default value
|
||||
|
||||
PHOENIX_WEB_CONFIG
|
||||
: Path to phoenix config, empty default value
|
||||
|
||||
PHOENIX_WEB_CONFIG_SERVER
|
||||
: Server URL, defaults to `http://localhost:9135`
|
||||
|
||||
PHOENIX_WEB_CONFIG_THEME
|
||||
: Theme, defaults to `owncloud`
|
||||
|
||||
PHOENIX_WEB_CONFIG_VERSION
|
||||
: Version, defaults to `0.1.0`
|
||||
|
||||
PHOENIX_APPS
|
||||
: Use multiple times to provide multiple apps
|
||||
|
||||
PHOENIX_EXTERNAL_APPS
|
||||
: Not supported yet, specify a config.json file via `PHOENIX_WEB_CONFIG`
|
||||
|
||||
PHOENIX_OIDC_METADATA_URL
|
||||
: OpenID Connect metadata URL, defaults to `http://localhost:9130/.well-known/openid-configuration`
|
||||
|
||||
PHOENIX_OIDC_AUTHORITY
|
||||
: OpenID Connect authority, defaults to `http://localhost:9130`
|
||||
|
||||
PHOENIX_OIDC_CLIENT_ID
|
||||
: OpenID Connect client ID, defaults to `phoenix`
|
||||
|
||||
PHOENIX_OIDC_RESPONSE_TYPE
|
||||
: OpenID Connect response type, defaults to `code`
|
||||
|
||||
PHOENIX_OIDC_SCOPE
|
||||
: OpenID Connect scope, defaults to `openid profile email`
|
||||
|
||||
In case you want to render any additional properties in the config.json you can provide a custom config.json using eg. `PHOENIX_WEB_CONFIG=/path/to/config.json ocis-phoenix server`
|
||||
|
||||
#### Health
|
||||
|
||||
PHOENIX_DEBUG_ADDR
|
||||
: Address to debug endpoint, defaults to `0.0.0.0:9104`
|
||||
|
||||
### Commandline flags
|
||||
|
||||
If you prefer to configure the service with commandline flags you can see the available variables below.
|
||||
|
||||
#### Global
|
||||
|
||||
--config-file
|
||||
: Path to config file, empty default value
|
||||
|
||||
--log-level
|
||||
: Set logging level, defaults to `info`
|
||||
|
||||
--log-color
|
||||
: Enable colored logging, defaults to `true`
|
||||
|
||||
--log-pretty
|
||||
: Enable pretty logging, defaults to `true`
|
||||
|
||||
#### Server
|
||||
|
||||
--tracing-enabled
|
||||
: Enable sending traces, defaults to `false`
|
||||
|
||||
--tracing-type
|
||||
: Tracing backend type, defaults to `jaeger`
|
||||
|
||||
--tracing-endpoint
|
||||
: Endpoint for the agent, empty default value
|
||||
|
||||
--tracing-collector
|
||||
: Endpoint for the collector, empty default value
|
||||
|
||||
--tracing-service
|
||||
: Service name for tracing, defaults to `phoenix`
|
||||
|
||||
--debug-addr
|
||||
: Address to bind debug server, defaults to `0.0.0.0:9104`
|
||||
|
||||
--debug-token
|
||||
: Token to grant metrics access, empty default value
|
||||
|
||||
--debug-pprof
|
||||
: Enable pprof debugging, defaults to `false`
|
||||
|
||||
--debug-zpages
|
||||
: Enable zpages debugging, defaults to `false`
|
||||
|
||||
--http-addr
|
||||
: Address to bind http server, defaults to `0.0.0.0:9100`
|
||||
|
||||
--http-root
|
||||
: Root path of http server, defaults to `/`
|
||||
|
||||
--asset-path
|
||||
: Path to custom assets, empty default value
|
||||
|
||||
--web-config
|
||||
: Path to phoenix config, empty default value
|
||||
|
||||
--web-config-server
|
||||
: Server URL, defaults to `http://localhost:9135`
|
||||
|
||||
--web-config-theme
|
||||
: Theme, defaults to `owncloud`
|
||||
|
||||
--web-config-version
|
||||
: Version, defaults to `0.1.0`
|
||||
|
||||
--web-config-app
|
||||
: Provide multiple apps, defaults to `""`. Usage: `phoenix --web-config-app files --web-config-app media-viewer`
|
||||
|
||||
--oidc-metadata-url
|
||||
: OpenID Connect metadata URL, defaults to `http://localhost:9130/.well-known/openid-configuration`
|
||||
|
||||
--oidc-authority
|
||||
: OpenID Connect authority, defaults to `http://localhost:9130`
|
||||
|
||||
--oidc-client-id
|
||||
: OpenID Connect client ID, defaults to `phoenix`
|
||||
|
||||
--oidc-response-type
|
||||
: OpenID Connect response type, defaults to `code`
|
||||
|
||||
--oidc-scope
|
||||
: OpenID Connect scope, defaults to `openid profile email`
|
||||
|
||||
In case you want to render any additional properties in the config.json you can provide a custom config.json using eg. `ocis-phoenix server --web-config=/path/to/config.json`
|
||||
|
||||
#### Health
|
||||
|
||||
--debug-addr
|
||||
: Address to debug endpoint, defaults to `0.0.0.0:9104`
|
||||
|
||||
### Configuration file
|
||||
|
||||
So far we support the file formats `JSON` and `YAML`, if you want to get a full example configuration just take a look at [our repository](https://github.com/owncloud/ocis/ocis-phoenix/tree/master/config), there you can always see the latest configuration format. These example configurations include all available options and the default values. The configuration file will be automatically loaded if it's placed at `/etc/ocis/phoenix.yml`, `${HOME}/.ocis/phoenix.yml` or `$(pwd)/config/phoenix.yml`.
|
||||
|
||||
## Usage
|
||||
|
||||
The program provides a few sub-commands on execution. The available configuration methods have already been mentioned above. Generally you can always see a formated help output if you execute the binary via `ocis-phoenix --help`.
|
||||
|
||||
### Server
|
||||
|
||||
The server command is used to start the http and debug server on two addresses within a single process. The http server is serving the general webservice while the debug server is used for health check, readiness check and to server the metrics mentioned below. For further help please execute:
|
||||
|
||||
{{< highlight txt >}}
|
||||
ocis-phoenix server --help
|
||||
{{< / highlight >}}
|
||||
|
||||
### Health
|
||||
|
||||
The health command is used to execute a health check, if the exit code equals zero the service should be up and running, if the exist code is greater than zero the service is not in a healthy state. Generally this command is used within our Docker containers, it could also be used within Kubernetes.
|
||||
|
||||
{{< highlight txt >}}
|
||||
ocis-phoenix health --help
|
||||
{{< / highlight >}}
|
||||
|
||||
## Metrics
|
||||
|
||||
This service provides some [Prometheus](https://prometheus.io/) metrics through the debug endpoint, you can optionally secure the metrics endpoint by some random token, which got to be configured through one of the flag `--debug-token` or the environment variable `PHOENIX_DEBUG_TOKEN` mentioned above. By default the metrics endpoint is bound to `http://0.0.0.0:9104/metrics`.
|
||||
|
||||
go_gc_duration_seconds
|
||||
: A summary of the GC invocation durations
|
||||
|
||||
go_gc_duration_seconds_sum
|
||||
: A summary of the GC invocation durations
|
||||
|
||||
go_gc_duration_seconds_count
|
||||
: A summary of the GC invocation durations
|
||||
|
||||
go_goroutines
|
||||
: Number of goroutines that currently exist
|
||||
|
||||
go_info
|
||||
: Information about the Go environment
|
||||
|
||||
go_memstats_alloc_bytes
|
||||
: Number of bytes allocated and still in use
|
||||
|
||||
go_memstats_alloc_bytes_total
|
||||
: Total number of bytes allocated, even if freed
|
||||
|
||||
go_memstats_buck_hash_sys_bytes
|
||||
: Number of bytes used by the profiling bucket hash table
|
||||
|
||||
go_memstats_frees_total
|
||||
: Total number of frees
|
||||
|
||||
go_memstats_gc_cpu_fraction
|
||||
: The fraction of this program's available CPU time used by the GC since the program started
|
||||
|
||||
go_memstats_gc_sys_bytes
|
||||
: Number of bytes used for garbage collection system metadata
|
||||
|
||||
go_memstats_heap_alloc_bytes
|
||||
: Number of heap bytes allocated and still in use
|
||||
|
||||
go_memstats_heap_idle_bytes
|
||||
: Number of heap bytes waiting to be used
|
||||
|
||||
go_memstats_heap_inuse_bytes
|
||||
: Number of heap bytes that are in use
|
||||
|
||||
go_memstats_heap_objects
|
||||
: Number of allocated objects
|
||||
|
||||
go_memstats_heap_released_bytes
|
||||
: Number of heap bytes released to OS
|
||||
|
||||
go_memstats_heap_sys_bytes
|
||||
: Number of heap bytes obtained from system
|
||||
|
||||
go_memstats_last_gc_time_seconds
|
||||
: Number of seconds since 1970 of last garbage collection
|
||||
|
||||
go_memstats_lookups_total
|
||||
: Total number of pointer lookups
|
||||
|
||||
go_memstats_mallocs_total
|
||||
: Total number of mallocs
|
||||
|
||||
go_memstats_mcache_inuse_bytes
|
||||
: Number of bytes in use by mcache structures
|
||||
|
||||
go_memstats_mcache_sys_bytes
|
||||
: Number of bytes used for mcache structures obtained from system
|
||||
|
||||
go_memstats_mspan_inuse_bytes
|
||||
: Number of bytes in use by mspan structures
|
||||
|
||||
go_memstats_mspan_sys_bytes
|
||||
: Number of bytes used for mspan structures obtained from system
|
||||
|
||||
go_memstats_next_gc_bytes
|
||||
: Number of heap bytes when next garbage collection will take place
|
||||
|
||||
go_memstats_other_sys_bytes
|
||||
: Number of bytes used for other system allocations
|
||||
|
||||
go_memstats_stack_inuse_bytes
|
||||
: Number of bytes in use by the stack allocator
|
||||
|
||||
go_memstats_stack_sys_bytes
|
||||
: Number of bytes obtained from system for stack allocator
|
||||
|
||||
go_memstats_sys_bytes
|
||||
: Number of bytes obtained from system
|
||||
|
||||
go_threads
|
||||
: Number of OS threads created
|
||||
|
||||
promhttp_metric_handler_requests_in_flight
|
||||
: Current number of scrapes being served
|
||||
|
||||
promhttp_metric_handler_requests_total
|
||||
: Total number of scrapes by HTTP status code
|
||||
@@ -1,10 +0,0 @@
|
||||
---
|
||||
title: "License"
|
||||
date: 2018-05-02T00:00:00+00:00
|
||||
weight: 50
|
||||
geekdocRepo: https://github.com/owncloud/ocis
|
||||
geekdocEditPath: edit/master/docs/extensions/ocis-phoenix
|
||||
geekdocFilePath: license.md
|
||||
---
|
||||
|
||||
This project is licensed under the [Apache 2.0](https://github.com/owncloud/ocis/ocis-phoenix/blob/master/LICENSE) license. For the license of the used libraries you have to check the respective sources.
|
||||
@@ -10,7 +10,7 @@ geekdocFilePath: releasing.md
|
||||
|
||||
## Releasing
|
||||
|
||||
The next generation Web Frontend is shipped as an ocis Extension. The `ocis-phoenix` extension is also embedded in the single binary and part of the `ocis server` command.
|
||||
The next generation Web Frontend is shipped as an oCIS Extension. The `ocis-phoenix` extension is also embedded in the single binary and part of the `ocis server` command.
|
||||
|
||||
To update this package within all the deliveries, we need to update the package in the following chain from the bottom to the top.
|
||||
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
---
|
||||
title: "Ocs"
|
||||
date: 2018-05-02T00:00:00+00:00
|
||||
weight: 10
|
||||
weight: 20
|
||||
geekdocRepo: https://github.com/owncloud/ocis
|
||||
geekdocEditPath: edit/master/docs/extensions/ocs
|
||||
geekdocFilePath: _index.md
|
||||
|
||||
@@ -1,28 +0,0 @@
|
||||
---
|
||||
title: "Building"
|
||||
date: 2018-05-02T00:00:00+00:00
|
||||
weight: 30
|
||||
geekdocRepo: https://github.com/owncloud/ocis
|
||||
geekdocEditPath: edit/master/docs/extensions/ocs
|
||||
geekdocFilePath: building.md
|
||||
---
|
||||
|
||||
{{< toc >}}
|
||||
|
||||
As this project is built with Go, so you need to install that first. The installation of Go is out of the scope of this document, please follow the official documentation for [Go](https://golang.org/doc/install), to build this project you have to install Go >= v1.12. After the installation of the required tools you need to get the sources:
|
||||
|
||||
{{< highlight txt >}}
|
||||
git clone https://github.com/owncloud/ocis-ocs.git
|
||||
cd ocis-ocs
|
||||
{{< / highlight >}}
|
||||
|
||||
All required tool besides Go itself and make are bundled or getting automatically installed within the `GOPATH`. All commands to build this project are part of our `Makefile`.
|
||||
|
||||
## Backend
|
||||
|
||||
{{< highlight txt >}}
|
||||
make generate
|
||||
make build
|
||||
{{< / highlight >}}
|
||||
|
||||
Finally you should have the binary within the `bin/` folder now, give it a try with `./bin/ocis-ocs -h` to see all available options.
|
||||
@@ -1,10 +0,0 @@
|
||||
---
|
||||
title: "License"
|
||||
date: 2018-05-02T00:00:00+00:00
|
||||
weight: 40
|
||||
geekdocRepo: https://github.com/owncloud/ocis
|
||||
geekdocEditPath: edit/master/docs/extensions/ocs
|
||||
geekdocFilePath: license.md
|
||||
---
|
||||
|
||||
This project is licensed under the [Apache 2.0](https://github.com/owncloud/ocis/ocs/blob/master/LICENSE) license. For the license of the used libraries you have to check the respective sources.
|
||||
Loaded 100 of 367 files, more files were not shown because too many files have changed in this diff.
Show more
Reference in new issue
Block a user