Compare commits
393
Commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
69c55662d1 | ||
|
|
b4f6ebe96d | ||
|
|
7682a73968 | ||
|
|
997d69ae62 | ||
|
|
0e9e635672 | ||
|
|
05cb9a49fc | ||
|
|
194d7af6f3 | ||
|
|
5283bf8b2b | ||
|
|
6bf80daf66 | ||
|
|
6f9a918818 | ||
|
|
c1b5e2f1cd | ||
|
|
549d1058c5 | ||
|
|
804612077a | ||
|
|
13beef2fd4 | ||
|
|
47c2c3ad4f | ||
|
|
ecaee109d7 | ||
|
|
dc7dce552d | ||
|
|
e9d760e70b | ||
|
|
802fccfece | ||
|
|
38031e19e2 | ||
|
|
33d3d13460 | ||
|
|
d0a7bc4c59 | ||
|
|
86b9ada9b5 | ||
|
|
321697828e | ||
|
|
85cf747b4b | ||
|
|
379262ec8e | ||
|
|
81fa19fab2 | ||
|
|
96a6bebcb8 | ||
|
|
d07f1752d8 | ||
|
|
cac96b7e80 | ||
|
|
f406c7efd1 | ||
|
|
81c56685ec | ||
|
|
41ced6621a | ||
|
|
3aa519c9de | ||
|
|
7d26172b2c | ||
|
|
16d1846c62 | ||
|
|
35c27afcb6 | ||
|
|
2ef33dc608 | ||
|
|
c42546e9af | ||
|
|
bb1b50c8e4 | ||
|
|
990dd8de2e | ||
|
|
859aab82fc | ||
|
|
8ba432e117 | ||
|
|
84d6962d15 | ||
|
|
dff0ea4f0f | ||
|
|
f3ed9f5ff3 | ||
|
|
a07c1e77a0 | ||
|
|
4db57dfe3c | ||
|
|
ad3c3471e1 | ||
|
|
45844aee4e | ||
|
|
5340a96169 | ||
|
|
ab0dfb97e9 | ||
|
|
1ab1fb9990 | ||
|
|
aeafa46c88 | ||
|
|
bee17dbe29 | ||
|
|
1c1f5c9167 | ||
|
|
acb18756c5 | ||
|
|
29e3fbd02f | ||
|
|
5cbf3f7a88 | ||
|
|
53c5c8d278 | ||
|
|
1664a10f0f | ||
|
|
e2a7cf7809 | ||
|
|
439e5729a8 | ||
|
|
ead395c4df | ||
|
|
4210ddcf52 | ||
|
|
a1e1fbbe49 | ||
|
|
a909141bca | ||
|
|
d41bc5e1b8 | ||
|
|
df6359807b | ||
|
|
7b1a7b20f1 | ||
|
|
62d5e8f56e | ||
|
|
413b88863b | ||
|
|
32241b5a1c | ||
|
|
d714cdae69 | ||
|
|
f064777baa | ||
|
|
69a26a81f3 | ||
|
|
b888774675 | ||
|
|
1aa382c9f6 | ||
|
|
1ff029110c | ||
|
|
a8e908aebd | ||
|
|
d6f6e8dc9f | ||
|
|
a2aca08fa7 | ||
|
|
95dd76e3d0 | ||
|
|
c7d4f179c2 | ||
|
|
b388954dc7 | ||
|
|
4694889379 | ||
|
|
0328ce9134 | ||
|
|
1c94346333 | ||
|
|
d68132fe49 | ||
|
|
8d8e3266c0 | ||
|
|
fa9dd800ed | ||
|
|
919108fce2 | ||
|
|
392caa1570 | ||
|
|
e8fe1f2b70 | ||
|
|
2c86912b46 | ||
|
|
45bd133a70 | ||
|
|
c996b6462b | ||
|
|
3a42fdc578 | ||
|
|
8042db13ad | ||
|
|
ea35cbb6be | ||
|
|
a150e5f6b4 | ||
|
|
a24fe109cc | ||
|
|
8e5b975b7f | ||
|
|
33581530f3 | ||
|
|
f902633a6b | ||
|
|
291b5fa3f5 | ||
|
|
892b6962ff | ||
|
|
84f2914a82 | ||
|
|
08d26b2ff1 | ||
|
|
63a6d9c73f | ||
|
|
f79e7658a6 | ||
|
|
fad056564a | ||
|
|
2c107a4bfe | ||
|
|
765f94bf6a | ||
|
|
ed86c9da84 | ||
|
|
50c37d9bbd | ||
|
|
46f0d6f7e4 | ||
|
|
06fda516ec | ||
|
|
aeebf76127 | ||
|
|
65dcb1685a | ||
|
|
0f0d305f6d | ||
|
|
7dac10b3b7 | ||
|
|
1dd4644370 | ||
|
|
3947531ae0 | ||
|
|
af7e6d1176 | ||
|
|
a7d89c7065 | ||
|
|
42e19037e0 | ||
|
|
5d7064ab17 | ||
|
|
eee4a80d71 | ||
|
|
3c0ce6180f | ||
|
|
6552bf0c34 | ||
|
|
7d22a4bee1 | ||
|
|
dbf8e6873b | ||
|
|
21e6aab85e | ||
|
|
50381b2225 | ||
|
|
aac45a46f4 | ||
|
|
021086e024 | ||
|
|
e4cab1e781 | ||
|
|
63e6660ca4 | ||
|
|
3782813ea1 | ||
|
|
cb4b16ce8e | ||
|
|
72c114c301 | ||
|
|
d74818b18f | ||
|
|
6b006fdf0e | ||
|
|
5e5f7ec402 | ||
|
|
a68a116c54 | ||
|
|
6485391fe9 | ||
|
|
fc97f52f06 | ||
|
|
018db1018a | ||
|
|
7c5fa2c114 | ||
|
|
a2d2671bf3 | ||
|
|
44abfe478d | ||
|
|
3e3ceeafee | ||
|
|
ed85fedf1a | ||
|
|
e62a9b6a36 | ||
|
|
dbb228349a | ||
|
|
8bda1d1bb0 | ||
|
|
bbac85d4c4 | ||
|
|
1cf4594211 | ||
|
|
7bd2d73bb3 | ||
|
|
35b206b230 | ||
|
|
eacdb8fa2f | ||
|
|
3bc60510ce | ||
|
|
b8150f25b8 | ||
|
|
8817e2bae3 | ||
|
|
41b26a3eb7 | ||
|
|
a8d78c06cd | ||
|
|
1468abe4e9 | ||
|
|
305ef58b73 | ||
|
|
2927dc45c3 | ||
|
|
2f4d065463 | ||
|
|
6c7bbd936a | ||
|
|
55aacdea13 | ||
|
|
6403e5c7e5 | ||
|
|
85848f1342 | ||
|
|
8499187315 | ||
|
|
778ad717df | ||
|
|
eb0b805b63 | ||
|
|
a5d2d8b676 | ||
|
|
648cfd0f43 | ||
|
|
d68b942832 | ||
|
|
41196732c9 | ||
|
|
c11137f817 | ||
|
|
6dd5be25fc | ||
|
|
e4b7c633cd | ||
|
|
a41e4b0ff6 | ||
|
|
698c094f9b | ||
|
|
969fa540a2 | ||
|
|
834a146c05 | ||
|
|
727042279f | ||
|
|
8a80b990a8 | ||
|
|
1ed38e1f3b | ||
|
|
b98761eaa4 | ||
|
|
78cd35db29 | ||
|
|
f2d36f6638 | ||
|
|
ad994ded16 | ||
|
|
b13863b717 | ||
|
|
6fc2b7503d | ||
|
|
4a817959ef | ||
|
|
ac087d0dae | ||
|
|
fe530e9a27 | ||
|
|
2a60b6b933 | ||
|
|
f5c3b49d12 | ||
|
|
45f29fdc98 | ||
|
|
500a77f005 | ||
|
|
0eb403d658 | ||
|
|
43a97f6bac | ||
|
|
0d13830203 | ||
|
|
30c7f58eb6 | ||
|
|
b74a0a6829 | ||
|
|
2bdd07e41b | ||
|
|
dc957c3722 | ||
|
|
283ecc28c9 | ||
|
|
3022479052 | ||
|
|
10b9fee60e | ||
|
|
ccf0c18f32 | ||
|
|
8b65d74a44 | ||
|
|
33b1524f15 | ||
|
|
8301a7e7a3 | ||
|
|
feed3e589b | ||
|
|
9f96321c1c | ||
|
|
9f50776b17 | ||
|
|
35979955e6 | ||
|
|
93f13388dd | ||
|
|
8e5ef03f9f | ||
|
|
6b1c8d1bf0 | ||
|
|
0e59776d72 | ||
|
|
737cca6600 | ||
|
|
84412bd9c1 | ||
|
|
4b35da08c6 | ||
|
|
5c550ecbb4 | ||
|
|
d2cb1fbd7c | ||
|
|
23c9a3156c | ||
|
|
396c24a73c | ||
|
|
8a645f6ac6 | ||
|
|
8bd46f2f5f | ||
|
|
459932c701 | ||
|
|
dbca0a6f0b | ||
|
|
5c122fb882 | ||
|
|
104b56a04c | ||
|
|
e621fa6a64 | ||
|
|
1d6f56f737 | ||
|
|
57c9c13129 | ||
|
|
da3d25f0f3 | ||
|
|
bfc891950e | ||
|
|
d13f3b53e9 | ||
|
|
aab73be154 | ||
|
|
ed3a5a7f5f | ||
|
|
07d5dd345d | ||
|
|
309374cda5 | ||
|
|
92e232ce62 | ||
|
|
2b6b92a134 | ||
|
|
d27e939ec2 | ||
|
|
31f80748cc | ||
|
|
d10f6a3b73 | ||
|
|
22cb67c3a4 | ||
|
|
69dfdeac0d | ||
|
|
508fa8c7cf | ||
|
|
c961de1d57 | ||
|
|
b0fd0b1ef5 | ||
|
|
30e0a09aa5 | ||
|
|
e1f6a109cc | ||
|
|
9e09bbffc9 | ||
|
|
499b85e865 | ||
|
|
8e729c9eae | ||
|
|
cbe1bbf432 | ||
|
|
d30670450a | ||
|
|
4d9612ae29 | ||
|
|
73f45deed6 | ||
|
|
672350af9e | ||
|
|
3747531774 | ||
|
|
fba3688f2e | ||
|
|
ad0e7fe38d | ||
|
|
92e7e1b509 | ||
|
|
4fdd65ed16 | ||
|
|
982ac391a6 | ||
|
|
54da37850a | ||
|
|
8703b091a6 | ||
|
|
a51ab55368 | ||
|
|
6bc06dad8c | ||
|
|
afffb3e09c | ||
|
|
c7c944e07e | ||
|
|
1288314946 | ||
|
|
480d57b13d | ||
|
|
08047e1d83 | ||
|
|
391e451e41 | ||
|
|
11722a3b4d | ||
|
|
27882a29c6 | ||
|
|
288e35a390 | ||
|
|
5c1e1e602e | ||
|
|
cc8273f048 | ||
|
|
2bc7657cd2 | ||
|
|
f7867e42f5 | ||
|
|
5825a9b957 | ||
|
|
968c9b75d8 | ||
|
|
c3951d67c8 | ||
|
|
d6a3da57c6 | ||
|
|
789b8de6b2 | ||
|
|
a168a60724 | ||
|
|
4ec63656dc | ||
|
|
289730a144 | ||
|
|
2800515c94 | ||
|
|
dcd8327e61 | ||
|
|
07bb4a179e | ||
|
|
bea986fe26 | ||
|
|
a0dce56480 | ||
|
|
cb70f4882f | ||
|
|
0a632df7d2 | ||
|
|
5c024b4543 | ||
|
|
2583c6a1a7 | ||
|
|
b0c742cb2f | ||
|
|
b540ccdf10 | ||
|
|
4385d3dacb | ||
|
|
1e4f8334cf | ||
|
|
40c8031441 | ||
|
|
a6575d9597 | ||
|
|
37de2b48fe | ||
|
|
bc69390006 | ||
|
|
499526d8b4 | ||
|
|
5de190ba4f | ||
|
|
2293403d45 | ||
|
|
1f3e963c29 | ||
|
|
c234c89be2 | ||
|
|
b148faada6 | ||
|
|
2e41e28637 | ||
|
|
188bb58547 | ||
|
|
bb1ce39e23 | ||
|
|
746ed8b414 | ||
|
|
5bf5fcf800 | ||
|
|
cdc2dd0ff3 | ||
|
|
90ca98d60f | ||
|
|
f322516862 | ||
|
|
900f8db799 | ||
|
|
2a54b647f1 | ||
|
|
5070941dc4 | ||
|
|
3ae2875fa9 | ||
|
|
71733fe677 | ||
|
|
8d78a64070 | ||
|
|
c41d9122b4 | ||
|
|
02d8d74466 | ||
|
|
1af75187c1 | ||
|
|
c0f8b030e4 | ||
|
|
74696dbd36 | ||
|
|
1bb4dcf782 | ||
|
|
1a65cd8d82 | ||
|
|
ebb67470dc | ||
|
|
7f8e5d0229 | ||
|
|
6123512367 | ||
|
|
ffca30cc4e | ||
|
|
f1f9583cb5 | ||
|
|
0a486b2a88 | ||
|
|
b1ab887004 | ||
|
|
68d7080fac | ||
|
|
83ba6ad5ba | ||
|
|
273ea197e8 | ||
|
|
1a8e00b19e | ||
|
|
adc21d8f0b | ||
|
|
41cabfcdcb | ||
|
|
04e5cfa52b | ||
|
|
6f37b386d5 | ||
|
|
041176ca2a | ||
|
|
1191d02187 | ||
|
|
a3fb9a4b37 | ||
|
|
c58f7094d2 | ||
|
|
e1a2e5c4b1 | ||
|
|
2bdb522a1d | ||
|
|
bcefff9b8d | ||
|
|
afa9afd205 | ||
|
|
90f066b540 | ||
|
|
7a64f2bcdf | ||
|
|
8c7f1f01ff | ||
|
|
8b271bccc6 | ||
|
|
85693de589 | ||
|
|
1dc7aac6fd | ||
|
|
31918dd44a | ||
|
|
d6bb6f511e | ||
|
|
91f6242eac | ||
|
|
96e6d58d38 | ||
|
|
4140116635 | ||
|
|
33aae8d829 | ||
|
|
a5366585a5 | ||
|
|
dc6d4d0569 | ||
|
|
5f970448fc | ||
|
|
e9e62d7fc6 | ||
|
|
7ab586b2ab | ||
|
|
d9916b6eed | ||
|
|
ccee07a384 | ||
|
|
420c703156 | ||
|
|
bfdcc0180c | ||
|
|
ac49348b41 | ||
|
|
e45954c52a | ||
|
|
29c5cb627a | ||
|
|
e104622a8a |
No files matched your search
+12
-12
@@ -59,23 +59,17 @@ $(GOLANGCI_LINT): $(BINGO_DIR)/golangci-lint.mod
|
||||
@echo "(re)installing $(GOBIN)/golangci-lint-v1.37.1"
|
||||
@cd $(BINGO_DIR) && $(GO) build -mod=mod -modfile=golangci-lint.mod -o=$(GOBIN)/golangci-lint-v1.37.1 "github.com/golangci/golangci-lint/cmd/golangci-lint"
|
||||
|
||||
GOVERAGE := $(GOBIN)/goverage-v0.0.0-20180129164344-eec3514a20b5
|
||||
$(GOVERAGE): $(BINGO_DIR)/goverage.mod
|
||||
@# Install binary/ries using Go 1.14+ build command. This is using bwplotka/bingo-controlled, separate go module with pinned dependencies.
|
||||
@echo "(re)installing $(GOBIN)/goverage-v0.0.0-20180129164344-eec3514a20b5"
|
||||
@cd $(BINGO_DIR) && $(GO) build -mod=mod -modfile=goverage.mod -o=$(GOBIN)/goverage-v0.0.0-20180129164344-eec3514a20b5 "github.com/haya14busa/goverage"
|
||||
|
||||
GOX := $(GOBIN)/gox-v1.0.1
|
||||
$(GOX): $(BINGO_DIR)/gox.mod
|
||||
@# Install binary/ries using Go 1.14+ build command. This is using bwplotka/bingo-controlled, separate go module with pinned dependencies.
|
||||
@echo "(re)installing $(GOBIN)/gox-v1.0.1"
|
||||
@cd $(BINGO_DIR) && $(GO) build -mod=mod -modfile=gox.mod -o=$(GOBIN)/gox-v1.0.1 "github.com/mitchellh/gox"
|
||||
|
||||
HUGO := $(GOBIN)/hugo-v0.80.0
|
||||
HUGO := $(GOBIN)/hugo-v0.87.0
|
||||
$(HUGO): $(BINGO_DIR)/hugo.mod
|
||||
@# Install binary/ries using Go 1.14+ build command. This is using bwplotka/bingo-controlled, separate go module with pinned dependencies.
|
||||
@echo "(re)installing $(GOBIN)/hugo-v0.80.0"
|
||||
@cd $(BINGO_DIR) && $(GO) build -mod=mod -modfile=hugo.mod -o=$(GOBIN)/hugo-v0.80.0 "github.com/gohugoio/hugo"
|
||||
@echo "(re)installing $(GOBIN)/hugo-v0.87.0"
|
||||
@cd $(BINGO_DIR) && $(GO) build -mod=mod -modfile=hugo.mod -o=$(GOBIN)/hugo-v0.87.0 "github.com/gohugoio/hugo"
|
||||
|
||||
MUTAGEN := $(GOBIN)/mutagen-v0.11.8
|
||||
$(MUTAGEN): $(BINGO_DIR)/mutagen.mod
|
||||
@@ -83,6 +77,12 @@ $(MUTAGEN): $(BINGO_DIR)/mutagen.mod
|
||||
@echo "(re)installing $(GOBIN)/mutagen-v0.11.8"
|
||||
@cd $(BINGO_DIR) && $(GO) build -mod=mod -modfile=mutagen.mod -o=$(GOBIN)/mutagen-v0.11.8 "github.com/mutagen-io/mutagen/cmd/mutagen"
|
||||
|
||||
OAPI_CODEGEN := $(GOBIN)/oapi-codegen-v1.6.1
|
||||
$(OAPI_CODEGEN): $(BINGO_DIR)/oapi-codegen.mod
|
||||
@# Install binary/ries using Go 1.14+ build command. This is using bwplotka/bingo-controlled, separate go module with pinned dependencies.
|
||||
@echo "(re)installing $(GOBIN)/oapi-codegen-v1.6.1"
|
||||
@cd $(BINGO_DIR) && $(GO) build -mod=mod -modfile=oapi-codegen.mod -o=$(GOBIN)/oapi-codegen-v1.6.1 "github.com/deepmap/oapi-codegen/cmd/oapi-codegen"
|
||||
|
||||
PROTOC_GEN_DOC := $(GOBIN)/protoc-gen-doc-v1.4.1
|
||||
$(PROTOC_GEN_DOC): $(BINGO_DIR)/protoc-gen-doc.mod
|
||||
@# Install binary/ries using Go 1.14+ build command. This is using bwplotka/bingo-controlled, separate go module with pinned dependencies.
|
||||
@@ -101,11 +101,11 @@ $(PROTOC_GEN_MICRO): $(BINGO_DIR)/protoc-gen-micro.mod
|
||||
@echo "(re)installing $(GOBIN)/protoc-gen-micro-v3.0.0-20210329103359-9b41d1bf0888"
|
||||
@cd $(BINGO_DIR) && $(GO) build -mod=mod -modfile=protoc-gen-micro.mod -o=$(GOBIN)/protoc-gen-micro-v3.0.0-20210329103359-9b41d1bf0888 "github.com/asim/go-micro/cmd/protoc-gen-micro/v3"
|
||||
|
||||
PROTOC_GEN_MICROWEB := $(GOBIN)/protoc-gen-microweb-v0.0.0-20210224131655-d9b1137a84d4
|
||||
PROTOC_GEN_MICROWEB := $(GOBIN)/protoc-gen-microweb-v0.0.0-20210824101557-828409dbfbf9
|
||||
$(PROTOC_GEN_MICROWEB): $(BINGO_DIR)/protoc-gen-microweb.mod
|
||||
@# Install binary/ries using Go 1.14+ build command. This is using bwplotka/bingo-controlled, separate go module with pinned dependencies.
|
||||
@echo "(re)installing $(GOBIN)/protoc-gen-microweb-v0.0.0-20210224131655-d9b1137a84d4"
|
||||
@cd $(BINGO_DIR) && $(GO) build -mod=mod -modfile=protoc-gen-microweb.mod -o=$(GOBIN)/protoc-gen-microweb-v0.0.0-20210224131655-d9b1137a84d4 "github.com/owncloud/protoc-gen-microweb"
|
||||
@echo "(re)installing $(GOBIN)/protoc-gen-microweb-v0.0.0-20210824101557-828409dbfbf9"
|
||||
@cd $(BINGO_DIR) && $(GO) build -mod=mod -modfile=protoc-gen-microweb.mod -o=$(GOBIN)/protoc-gen-microweb-v0.0.0-20210824101557-828409dbfbf9 "github.com/owncloud/protoc-gen-microweb"
|
||||
|
||||
PROTOC_GEN_OPENAPIV2 := $(GOBIN)/protoc-gen-openapiv2-v2.3.0
|
||||
$(PROTOC_GEN_OPENAPIV2): $(BINGO_DIR)/protoc-gen-openapiv2.mod
|
||||
|
||||
@@ -1,5 +0,0 @@
|
||||
module _ // Auto generated by https://github.com/bwplotka/bingo. DO NOT EDIT
|
||||
|
||||
go 1.16
|
||||
|
||||
require github.com/haya14busa/goverage v0.0.0-20180129164344-eec3514a20b5
|
||||
+1
-1
@@ -4,4 +4,4 @@ go 1.16
|
||||
|
||||
replace github.com/markbates/inflect => github.com/markbates/inflect v0.0.0-20171215194931-a12c3aec81a6
|
||||
|
||||
require github.com/gohugoio/hugo v0.80.0
|
||||
require github.com/gohugoio/hugo v0.87.0
|
||||
@@ -2,4 +2,4 @@ module _ // Auto generated by https://github.com/bwplotka/bingo. DO NOT EDIT
|
||||
|
||||
go 1.16
|
||||
|
||||
require github.com/owncloud/protoc-gen-microweb v0.0.0-20210224131655-d9b1137a84d4
|
||||
require github.com/owncloud/protoc-gen-microweb v0.0.0-20210824101557-828409dbfbf9
|
||||
@@ -22,21 +22,21 @@ FLAEX="${GOBIN}/flaex-v0.2.1-0.20210701123229-9d7dceed124f"
|
||||
|
||||
GOLANGCI_LINT="${GOBIN}/golangci-lint-v1.37.1"
|
||||
|
||||
GOVERAGE="${GOBIN}/goverage-v0.0.0-20180129164344-eec3514a20b5"
|
||||
|
||||
GOX="${GOBIN}/gox-v1.0.1"
|
||||
|
||||
HUGO="${GOBIN}/hugo-v0.80.0"
|
||||
HUGO="${GOBIN}/hugo-v0.87.0"
|
||||
|
||||
MUTAGEN="${GOBIN}/mutagen-v0.11.8"
|
||||
|
||||
OAPI_CODEGEN="${GOBIN}/oapi-codegen-v1.6.1"
|
||||
|
||||
PROTOC_GEN_DOC="${GOBIN}/protoc-gen-doc-v1.4.1"
|
||||
|
||||
PROTOC_GEN_GO="${GOBIN}/protoc-gen-go-v1.26.0"
|
||||
|
||||
PROTOC_GEN_MICRO="${GOBIN}/protoc-gen-micro-v3.0.0-20210329103359-9b41d1bf0888"
|
||||
|
||||
PROTOC_GEN_MICROWEB="${GOBIN}/protoc-gen-microweb-v0.0.0-20210224131655-d9b1137a84d4"
|
||||
PROTOC_GEN_MICROWEB="${GOBIN}/protoc-gen-microweb-v0.0.0-20210824101557-828409dbfbf9"
|
||||
|
||||
PROTOC_GEN_OPENAPIV2="${GOBIN}/protoc-gen-openapiv2-v2.3.0"
|
||||
|
||||
|
||||
+2
-2
@@ -1,7 +1,7 @@
|
||||
# The test runner source for API tests
|
||||
CORE_COMMITID=c2835de8933771af8e34d62a48d7af99b49dab4b
|
||||
CORE_COMMITID=370fd807e464dcc5cb9619a8890107424254dfa6
|
||||
CORE_BRANCH=master
|
||||
|
||||
# The test runner source for UI tests
|
||||
WEB_COMMITID=fd6aa91c0f8d4e1f957bef67d264ce788b900b03
|
||||
WEB_COMMITID=0e5a4b4990fc0edb69013122df42785774883e79
|
||||
WEB_BRANCH=master
|
||||
+64
-14
@@ -9,7 +9,6 @@ config = {
|
||||
"ocis-pkg",
|
||||
"ocis",
|
||||
"ocs",
|
||||
"onlyoffice",
|
||||
"proxy",
|
||||
"settings",
|
||||
"storage",
|
||||
@@ -125,7 +124,8 @@ def main(ctx):
|
||||
test_pipelines = \
|
||||
[buildOcisBinaryForTesting(ctx)] + \
|
||||
testOcisModules(ctx) + \
|
||||
testPipelines(ctx)
|
||||
testPipelines(ctx) + \
|
||||
checkForRecentBuilds(ctx)
|
||||
|
||||
build_release_pipelines = \
|
||||
dockerReleases(ctx) + \
|
||||
@@ -190,13 +190,55 @@ def testOcisModules(ctx):
|
||||
|
||||
return pipelines + [scan_result_upload]
|
||||
|
||||
def checkForRecentBuilds(ctx):
|
||||
pipelines = []
|
||||
|
||||
result = {
|
||||
"kind": "pipeline",
|
||||
"type": "docker",
|
||||
"name": "stop-recent-builds",
|
||||
"steps": stopRecentBuilds(ctx),
|
||||
"depends_on": [],
|
||||
"trigger": {
|
||||
"ref": [
|
||||
"refs/heads/master",
|
||||
"refs/tags/**",
|
||||
"refs/pull/**",
|
||||
],
|
||||
},
|
||||
}
|
||||
|
||||
pipelines.append(result)
|
||||
|
||||
return pipelines
|
||||
|
||||
def stopRecentBuilds(ctx):
|
||||
return [{
|
||||
"name": "stop-recent-builds",
|
||||
"image": "drone/cli:alpine",
|
||||
"pull": "always",
|
||||
"environment": {
|
||||
"DRONE_SERVER": "https://drone.owncloud.com",
|
||||
"DRONE_TOKEN": {
|
||||
"from_secret": "drone_token",
|
||||
},
|
||||
},
|
||||
"commands": [
|
||||
"drone build ls %s --status running > /drone/src/recentBuilds.txt" % ctx.repo.slug,
|
||||
"drone build info %s ${DRONE_BUILD_NUMBER} > /drone/src/thisBuildInfo.txt" % ctx.repo.slug,
|
||||
"cd /drone/src && ./tests/acceptance/cancelBuilds.sh",
|
||||
],
|
||||
"when": {
|
||||
"event": [
|
||||
"pull_request",
|
||||
],
|
||||
},
|
||||
}]
|
||||
|
||||
def testPipelines(ctx):
|
||||
pipelines = []
|
||||
if "skip" not in config["localApiTests"] or not config["localApiTests"]["skip"]:
|
||||
pipelines = [
|
||||
localApiTests(ctx, "owncloud", "apiBugDemonstration"),
|
||||
localApiTests(ctx, "ocis", "apiBugDemonstration"),
|
||||
localApiTests(ctx, "owncloud", "apiAccountsHashDifficulty", "default"),
|
||||
localApiTests(ctx, "ocis", "apiAccountsHashDifficulty", "default"),
|
||||
]
|
||||
|
||||
@@ -387,7 +429,7 @@ def uploadScanResults(ctx):
|
||||
},
|
||||
}
|
||||
|
||||
def localApiTests(ctx, storage = "owncloud", suite = "apiBugDemonstration", accounts_hash_difficulty = 4):
|
||||
def localApiTests(ctx, storage, suite, accounts_hash_difficulty = 4):
|
||||
earlyFail = config["localApiTests"]["earlyFail"] if "earlyFail" in config["localApiTests"] else False
|
||||
|
||||
if ("full-ci" in ctx.build.title.lower()):
|
||||
@@ -414,6 +456,7 @@ def localApiTests(ctx, storage = "owncloud", suite = "apiBugDemonstration", acco
|
||||
"SKELETON_DIR": "/srv/app/tmp/testing/data/apiSkeleton",
|
||||
"OCIS_SKELETON_STRATEGY": "%s" % ("copy" if storage == "owncloud" else "upload"),
|
||||
"TEST_OCIS": "true",
|
||||
"SEND_SCENARIO_LINE_REFERENCES": "true",
|
||||
"STORAGE_DRIVER": storage,
|
||||
"BEHAT_SUITE": suite,
|
||||
"BEHAT_FILTER_TAGS": "~@skip&&~@skipOnOcis-%s-Storage" % ("OC" if storage == "owncloud" else "OCIS"),
|
||||
@@ -438,7 +481,7 @@ def localApiTests(ctx, storage = "owncloud", suite = "apiBugDemonstration", acco
|
||||
"volumes": [pipelineVolumeOC10Tests],
|
||||
}
|
||||
|
||||
def coreApiTests(ctx, part_number = 1, number_of_parts = 1, storage = "owncloud", accounts_hash_difficulty = 4):
|
||||
def coreApiTests(ctx, part_number = 1, number_of_parts = 1, storage = "ocis", accounts_hash_difficulty = 4):
|
||||
earlyFail = config["apiTests"]["earlyFail"] if "earlyFail" in config["apiTests"] else False
|
||||
|
||||
if ("full-ci" in ctx.build.title.lower()):
|
||||
@@ -465,6 +508,7 @@ def coreApiTests(ctx, part_number = 1, number_of_parts = 1, storage = "owncloud"
|
||||
"SKELETON_DIR": "/srv/app/tmp/testing/data/apiSkeleton",
|
||||
"OCIS_SKELETON_STRATEGY": "%s" % ("copy" if storage == "owncloud" else "upload"),
|
||||
"TEST_OCIS": "true",
|
||||
"SEND_SCENARIO_LINE_REFERENCES": "true",
|
||||
"STORAGE_DRIVER": storage,
|
||||
"BEHAT_FILTER_TAGS": "~@skipOnOcis&&~@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,
|
||||
@@ -496,7 +540,6 @@ def apiTests(ctx):
|
||||
debugPartsEnabled = (len(debugParts) != 0)
|
||||
for runPart in range(1, config["apiTests"]["numberOfParts"] + 1):
|
||||
if (not debugPartsEnabled or (debugPartsEnabled and runPart in debugParts)):
|
||||
pipelines.append(coreApiTests(ctx, runPart, config["apiTests"]["numberOfParts"], "owncloud"))
|
||||
pipelines.append(coreApiTests(ctx, runPart, config["apiTests"]["numberOfParts"], "ocis"))
|
||||
|
||||
return pipelines
|
||||
@@ -507,7 +550,7 @@ def uiTests(ctx):
|
||||
"skip": False,
|
||||
"earlyFail": False,
|
||||
# only used if 'full-ci' is in build title
|
||||
"numberOfParts": 10,
|
||||
"numberOfParts": 20,
|
||||
"skipExceptParts": [],
|
||||
}
|
||||
params = {}
|
||||
@@ -534,11 +577,12 @@ def uiTests(ctx):
|
||||
# For ordinary PRs, always run the "minimal" UI test pipeline
|
||||
# That has its own expected-failures file, and we always want to know that it is correct,
|
||||
if (ctx.build.event != "tag"):
|
||||
pipelines.append(uiTestPipeline(ctx, filterTags, earlyFail))
|
||||
pipelines.append(uiTestPipeline(ctx, filterTags, earlyFail, 1, 2, "ocis", "smoke"))
|
||||
pipelines.append(uiTestPipeline(ctx, filterTags, earlyFail, 2, 2, "ocis", "smoke"))
|
||||
|
||||
return pipelines
|
||||
|
||||
def uiTestPipeline(ctx, filterTags, earlyFail, runPart = 1, numberOfParts = 1, storage = "ocis", accounts_hash_difficulty = 4):
|
||||
def uiTestPipeline(ctx, filterTags, earlyFail, runPart = 1, numberOfParts = 1, storage = "ocis", uniqueName = "", accounts_hash_difficulty = 4):
|
||||
standardFilterTags = "not @skipOnOCIS and not @skip and not @notToImplementOnOCIS and not @federated-server-needed"
|
||||
if filterTags == "":
|
||||
finalFilterTags = standardFilterTags
|
||||
@@ -547,10 +591,16 @@ def uiTestPipeline(ctx, filterTags, earlyFail, runPart = 1, numberOfParts = 1, s
|
||||
finalFilterTags = filterTags + " and " + standardFilterTags
|
||||
expectedFailuresFileFilterTags = "-" + filterTags.lstrip("@")
|
||||
|
||||
if numberOfParts == 1:
|
||||
pipelineName = "Web-Tests-ocis-%s-storage" % storage
|
||||
if uniqueName == "":
|
||||
uniqueNameString = ""
|
||||
else:
|
||||
pipelineName = "Web-Tests-ocis-%s-storage-%s" % (storage, runPart)
|
||||
finalFilterTags = filterTags + " and " + standardFilterTags
|
||||
uniqueNameString = "-" + uniqueName
|
||||
|
||||
if numberOfParts == 1:
|
||||
pipelineName = "Web-Tests-ocis%s-%s-storage" % (uniqueNameString, storage)
|
||||
else:
|
||||
pipelineName = "Web-Tests-ocis%s-%s-storage-%s" % (uniqueNameString, storage, runPart)
|
||||
|
||||
return {
|
||||
"kind": "pipeline",
|
||||
|
||||
+3
-4
@@ -1,5 +1,4 @@
|
||||
/accounts/ @kulmann @pascalwengerter
|
||||
/onlyoffice/ @kulmann @pascalwengerter
|
||||
/settings/ @kulmann @pascalwengerter
|
||||
/web/ @kulmann @pascalwengerter
|
||||
accounts/ @kulmann @pascalwengerter @paulcod3
|
||||
settings/ @kulmann @pascalwengerter @paulcod3
|
||||
web/ @kulmann @pascalwengerter
|
||||
.drone.star @wkloucek @micbar @phil-davis @individual-it
|
||||
@@ -1,9 +1,9 @@
|
||||
version: 2
|
||||
updates:
|
||||
- package-ecosystem: "gomod"
|
||||
directory: "/ocis"
|
||||
directory: "/"
|
||||
schedule:
|
||||
interval: "weekly"
|
||||
interval: "daily"
|
||||
open-pull-requests-limit: 2
|
||||
|
||||
- package-ecosystem: "npm"
|
||||
@@ -18,12 +18,6 @@ updates:
|
||||
interval: "weekly"
|
||||
open-pull-requests-limit: 2
|
||||
|
||||
- package-ecosystem: "npm"
|
||||
directory: "/onlyoffice"
|
||||
schedule:
|
||||
interval: "weekly"
|
||||
open-pull-requests-limit: 2
|
||||
|
||||
- package-ecosystem: "npm"
|
||||
directory: "/idp"
|
||||
schedule:
|
||||
|
||||
@@ -23,12 +23,26 @@ labels:
|
||||
- name: OCIS-Fastlane
|
||||
color: "#deadbf"
|
||||
description: Planned outside of the sprint
|
||||
- name: Storage:EOS
|
||||
color: "#3F7A62"
|
||||
- name: Storage:S3NG
|
||||
color: "#3F7A62"
|
||||
- name: Storage:CephFS
|
||||
color: "#3F7A62"
|
||||
- name: Storage:OCIS
|
||||
color: "#3F7A62"
|
||||
- name: Storage:POSIX
|
||||
color: "#3F7A62"
|
||||
- name: Storage:ownCloudSQL
|
||||
color: "#3F7A62"
|
||||
|
||||
teams:
|
||||
- name: ci
|
||||
permission: admin
|
||||
- name: employees
|
||||
permission: push
|
||||
- name: cern
|
||||
permission: triage
|
||||
|
||||
branches:
|
||||
- name: master
|
||||
|
||||
+5
-11
@@ -16,9 +16,7 @@ else
|
||||
GOBUILD ?= go build
|
||||
endif
|
||||
|
||||
PACKAGES ?= $(shell go list ./...)
|
||||
SOURCES ?= $(shell find . -name "*.go" -type f -not -path "./node_modules/*")
|
||||
GENERATE ?= $(PACKAGES)
|
||||
|
||||
TAGS ?=
|
||||
|
||||
@@ -42,8 +40,9 @@ ifndef DATE
|
||||
DATE := $(shell date -u '+%Y%m%d')
|
||||
endif
|
||||
|
||||
LDFLAGS += -s -w -X "$(IMPORT)/pkg/version.String=$(VERSION)" -X "$(IMPORT)/pkg/version.Date=$(DATE)"
|
||||
DEBUG_LDFLAGS += -X "$(IMPORT)/pkg/version.String=$(VERSION)" -X "$(IMPORT)/pkg/version.Date=$(DATE)"
|
||||
LDFLAGS += -X google.golang.org/protobuf/reflect/protoregistry.conflictPolicy=warn -s -w -X "$(IMPORT)/pkg/version.String=$(VERSION)" -X "$(IMPORT)/pkg/version.Date=$(DATE)"
|
||||
DEBUG_LDFLAGS += -X google.golang.org/protobuf/reflect/protoregistry.conflictPolicy=warn -X "$(IMPORT)/pkg/version.String=$(VERSION)" -X "$(IMPORT)/pkg/version.Date=$(DATE)"
|
||||
|
||||
GCFLAGS += all=-N -l
|
||||
|
||||
.PHONY: all
|
||||
@@ -77,16 +76,11 @@ ci-golangci-lint: $(GOLANGCI_LINT)
|
||||
$(GOLANGCI_LINT) run -E gosec -E bodyclose -E dogsled -E durationcheck -E golint -E ifshort -E makezero -E prealloc -E predeclared --path-prefix $(NAME) --timeout 10m0s --issues-exit-code 0 --out-format checkstyle > checkstyle.xml
|
||||
|
||||
.PHONY: test
|
||||
test: $(GOVERAGE)
|
||||
@echo
|
||||
@echo
|
||||
@echo "$(NAME): test"
|
||||
@echo
|
||||
@$(GOVERAGE) -v -coverprofile coverage.out $(PACKAGES)
|
||||
test:
|
||||
@go test -v -coverprofile coverage.out ./...
|
||||
|
||||
.PHONY: go-coverage
|
||||
go-coverage:
|
||||
@echo "$(NAME): go-coverage"
|
||||
@if [ ! -f coverage.out ]; then $(MAKE) test &>/dev/null; fi;
|
||||
@go tool cover -func coverage.out | tail -1 | grep -Eo "[0-9]+\.[0-9]+"
|
||||
|
||||
|
||||
+349
-1
@@ -2,7 +2,355 @@
|
||||
|
||||
The following sections list the changes for unreleased.
|
||||
|
||||
[unreleased]: https://github.com/owncloud/ocis/compare/v1.8.0...master
|
||||
[unreleased]: https://github.com/owncloud/ocis/compare/v1.11.0...master
|
||||
|
||||
## Summary
|
||||
|
||||
* Bugfix - Remove non working proxy route and fix cs3 users example: [#2474](https://github.com/owncloud/ocis/pull/2474)
|
||||
* Bugfix - Set English as default language in the dropdown in the settings page: [#2465](https://github.com/owncloud/ocis/pull/2465)
|
||||
* Change - Remove OnlyOffice extension: [#2433](https://github.com/owncloud/ocis/pull/2433)
|
||||
* Change - Update ownCloud Web to v4.2.0: [#2501](https://github.com/owncloud/ocis/pull/2501)
|
||||
* Enhancement - Add app provider and app provider registry: [#2204](https://github.com/owncloud/ocis/pull/2204)
|
||||
* Enhancement - Add the create space permission: [#2461](https://github.com/owncloud/ocis/pull/2461)
|
||||
* Enhancement - Add set space quota permission: [#2459](https://github.com/owncloud/ocis/pull/2459)
|
||||
* Enhancement - Create a Space using the Graph API: [#2471](https://github.com/owncloud/ocis/pull/2471)
|
||||
* Enhancement - Update go-chi/chi to version 5.0.3: [#2429](https://github.com/owncloud/ocis/pull/2429)
|
||||
* Enhancement - Upgrade go micro to v3.6.0: [#2451](https://github.com/owncloud/ocis/pull/2451)
|
||||
* Enhancement - Update reva to v1.13.0: [#2477](https://github.com/owncloud/ocis/pull/2477)
|
||||
|
||||
## Details
|
||||
|
||||
* Bugfix - Remove non working proxy route and fix cs3 users example: [#2474](https://github.com/owncloud/ocis/pull/2474)
|
||||
|
||||
We removed a non working route from the proxy default configuration and fixed the cs3 users
|
||||
deployment example since it still used the accounts service. It now only uses the configured
|
||||
LDAP.
|
||||
|
||||
https://github.com/owncloud/ocis/pull/2474
|
||||
|
||||
* Bugfix - Set English as default language in the dropdown in the settings page: [#2465](https://github.com/owncloud/ocis/pull/2465)
|
||||
|
||||
The language dropdown didn't have a default language selected, and it was showing an empty
|
||||
value. Now it shows English instead.
|
||||
|
||||
https://github.com/owncloud/ocis/pull/2465
|
||||
|
||||
* Change - Remove OnlyOffice extension: [#2433](https://github.com/owncloud/ocis/pull/2433)
|
||||
|
||||
Tags: OnlyOffice
|
||||
|
||||
We've removed the OnlyOffice extension in oCIS. OnlyOffice has their own web extension for
|
||||
OC10 backend now with [a dedicated
|
||||
guide](https://owncloud.dev/clients/web/deployments/oc10-app/#onlyoffice). In
|
||||
oCIS, we will follow up with a guide on how to start a WOPI server providing OnlyOffice soon.
|
||||
|
||||
https://github.com/owncloud/ocis/pull/2433
|
||||
|
||||
* Change - Update ownCloud Web to v4.2.0: [#2501](https://github.com/owncloud/ocis/pull/2501)
|
||||
|
||||
Tags: web
|
||||
|
||||
We updated ownCloud Web to v4.2.0. Please refer to the changelog (linked) for details on the web
|
||||
release.
|
||||
|
||||
https://github.com/owncloud/ocis/pull/2501
|
||||
https://github.com/owncloud/web/releases/tag/v4.2.0
|
||||
|
||||
* Enhancement - Add app provider and app provider registry: [#2204](https://github.com/owncloud/ocis/pull/2204)
|
||||
|
||||
We added the app provider and app provider registry. Now the CS3org WOPI server can be
|
||||
registered and OpenInApp requests can be done.
|
||||
|
||||
https://github.com/owncloud/ocis/pull/2204
|
||||
https://github.com/cs3org/reva/pull/1785
|
||||
|
||||
* Enhancement - Add the create space permission: [#2461](https://github.com/owncloud/ocis/pull/2461)
|
||||
|
||||
In preparation for the upcoming spaces features a `Create Space` permission was added.
|
||||
|
||||
https://github.com/owncloud/ocis/pull/2461
|
||||
|
||||
* Enhancement - Add set space quota permission: [#2459](https://github.com/owncloud/ocis/pull/2459)
|
||||
|
||||
In preparation for the upcoming spaces features a `SetSpaceQuota` permission was added.
|
||||
|
||||
https://github.com/owncloud/ocis/pull/2459
|
||||
|
||||
* Enhancement - Create a Space using the Graph API: [#2471](https://github.com/owncloud/ocis/pull/2471)
|
||||
|
||||
Spaces can now be created on `POST /drives/{drive-name}`. Only users with the `create-space`
|
||||
permissions can perform this operation.
|
||||
|
||||
Allowed body form values are:
|
||||
|
||||
- `quota` (bytes) maximum amount of bytes stored in the space. - `maxQuotaFiles` (integer)
|
||||
maximum amount of files supported by the space.
|
||||
|
||||
https://github.com/owncloud/ocis/pull/2471
|
||||
|
||||
* Enhancement - Update go-chi/chi to version 5.0.3: [#2429](https://github.com/owncloud/ocis/pull/2429)
|
||||
|
||||
Updated go-chi/chi to the lastest release
|
||||
|
||||
https://github.com/owncloud/ocis/pull/2429
|
||||
|
||||
* Enhancement - Upgrade go micro to v3.6.0: [#2451](https://github.com/owncloud/ocis/pull/2451)
|
||||
|
||||
Go micro and all go micro plugins are now on v3.6.0
|
||||
|
||||
https://github.com/owncloud/ocis/pull/2451
|
||||
|
||||
* Enhancement - Update reva to v1.13.0: [#2477](https://github.com/owncloud/ocis/pull/2477)
|
||||
|
||||
This update includes:
|
||||
|
||||
* Bugfix [cs3org/reva#2054](https://github.com/cs3org/reva/pull/2054): Fix the response after deleting a share
|
||||
* Bugfix [cs3org/reva#2026](https://github.com/cs3org/reva/pull/2026): Fix moving of a shared file
|
||||
* Bugfix [cs3org/reva#1605](https://github.com/cs3org/reva/pull/1605): Allow to expose full paths in OCS API
|
||||
* Bugfix [cs3org/reva#2033](https://github.com/cs3org/reva/pull/2033): Fix the storage id of shares
|
||||
* Bugfix [cs3org/reva#1991](https://github.com/cs3org/reva/pull/1991): Remove share references when declining shares
|
||||
* Enhancement [cs3org/reva#1994](https://github.com/cs3org/reva/pull/1994): Add owncloudsql driver for the userprovider
|
||||
* Enhancement [cs3org/reva#2065](https://github.com/cs3org/reva/pull/2065): New sharing role Manager
|
||||
* Enhancement [cs3org/reva#2015](https://github.com/cs3org/reva/pull/2015): Add spaces to the list of capabilities
|
||||
* Enhancement [cs3org/reva#2041](https://github.com/cs3org/reva/pull/2041): Create operations for Spaces
|
||||
* Enhancement [cs3org/reva#2029](https://github.com/cs3org/reva/pull/2029): Tracing agent configuration
|
||||
|
||||
https://github.com/owncloud/ocis/pull/2477
|
||||
# Changelog for [1.11.0] (2021-08-24)
|
||||
|
||||
The following sections list the changes for 1.11.0.
|
||||
|
||||
[1.11.0]: https://github.com/owncloud/ocis/compare/v1.10.0...v1.11.0
|
||||
|
||||
## Summary
|
||||
|
||||
* Bugfix - Specify primary user type for all accounts: [#2364](https://github.com/owncloud/ocis/pull/2364)
|
||||
* Bugfix - Fix naming of the user- and groupprovider services: [#2388](https://github.com/owncloud/ocis/pull/2388)
|
||||
* Change - Update ownCloud Web to v4.1.0: [#2426](https://github.com/owncloud/ocis/pull/2426)
|
||||
* Enhancement - Use non root user for the owncloud/ocis docker image: [#2380](https://github.com/owncloud/ocis/pull/2380)
|
||||
* Enhancement - Replace unmaintained jwt library: [#2386](https://github.com/owncloud/ocis/pull/2386)
|
||||
* Enhancement - Update bleve to version 2.1.0: [#2391](https://github.com/owncloud/ocis/pull/2391)
|
||||
* Enhancement - Update github.com/coreos/go-oidc to v3.0.0: [#2393](https://github.com/owncloud/ocis/pull/2393)
|
||||
* Enhancement - Update reva to v1.12: [#2423](https://github.com/owncloud/ocis/pull/2423)
|
||||
|
||||
## Details
|
||||
|
||||
* Bugfix - Specify primary user type for all accounts: [#2364](https://github.com/owncloud/ocis/pull/2364)
|
||||
|
||||
https://github.com/owncloud/ocis/pull/2364
|
||||
|
||||
* Bugfix - Fix naming of the user- and groupprovider services: [#2388](https://github.com/owncloud/ocis/pull/2388)
|
||||
|
||||
The services are called "storage-userprovider" and "storage-groupprovider". The 'ocis
|
||||
help' output was misleading.
|
||||
|
||||
https://github.com/owncloud/ocis/pull/2388
|
||||
|
||||
* Change - Update ownCloud Web to v4.1.0: [#2426](https://github.com/owncloud/ocis/pull/2426)
|
||||
|
||||
Tags: web
|
||||
|
||||
We updated ownCloud Web to v4.1.0. Please refer to the changelog (linked) for details on the web
|
||||
release.
|
||||
|
||||
https://github.com/owncloud/ocis/pull/2426
|
||||
https://github.com/owncloud/web/releases/tag/v4.1.0
|
||||
|
||||
* Enhancement - Use non root user for the owncloud/ocis docker image: [#2380](https://github.com/owncloud/ocis/pull/2380)
|
||||
|
||||
The owncloud/ocis docker image now uses a non root user and enables you to set a different user
|
||||
with the docker `--user` parameter. The default user has the UID 1000 is part of a group with the
|
||||
GID 1000.
|
||||
|
||||
This is a breaking change for existing docker deployments. The permission on the files and
|
||||
folders in persistent volumes need to be changed to the UID and GID used for oCIS (default
|
||||
1000:1000 if not changed by the user).
|
||||
|
||||
https://github.com/owncloud/ocis/pull/2380
|
||||
|
||||
* Enhancement - Replace unmaintained jwt library: [#2386](https://github.com/owncloud/ocis/pull/2386)
|
||||
|
||||
The old library [github.com/dgrijalva/jwt-go](https://github.com/dgrijalva/jwt-go)
|
||||
is unmaintained and was replaced by the community maintained fork
|
||||
[github.com/golang-jwt/jwt](https://github.com/golang-jwt/jwt).
|
||||
|
||||
https://github.com/owncloud/ocis/pull/2386
|
||||
|
||||
* Enhancement - Update bleve to version 2.1.0: [#2391](https://github.com/owncloud/ocis/pull/2391)
|
||||
|
||||
Updated bleve to the current version.
|
||||
|
||||
https://github.com/owncloud/ocis/pull/2391
|
||||
|
||||
* Enhancement - Update github.com/coreos/go-oidc to v3.0.0: [#2393](https://github.com/owncloud/ocis/pull/2393)
|
||||
|
||||
Updated the github.com/coreos/go-oidc library to the version 3.0.0.
|
||||
|
||||
https://github.com/owncloud/ocis/pull/2393
|
||||
|
||||
* Enhancement - Update reva to v1.12: [#2423](https://github.com/owncloud/ocis/pull/2423)
|
||||
|
||||
* Enhancement cs3org/reva#1803: Introduce new webdav spaces endpoint
|
||||
* Bugfix cs3org/reva#1819: Disable notifications
|
||||
* Enhancement cs3org/reva#1861: Add support for runtime plugins
|
||||
* Bugfix cs3org/reva#1913: Logic to restore files to readonly nodes
|
||||
* Enhancement cs3org/reva#1946: Add share manager that connects to oc10 databases
|
||||
* Bugfix cs3org/reva#1954: Fix response format of the sharees API
|
||||
* Bugfix cs3org/reva#1956: Fix trashbin listing with depth 0
|
||||
* Bugfix cs3org/reva#1957: Fix etag propagation on deletes
|
||||
* Bugfix cs3org/reva#1960: Return the updated share after updating
|
||||
* Bugfix cs3org/reva#1965 cs3org/reva#1967: Fix the file target of user and group shares
|
||||
* Bugfix cs3org/reva#1980: Propagate the etag after restoring a file version
|
||||
* Enhancement cs3org/reva#1984: Replace OpenCensus with OpenTelemetry
|
||||
* Bugfix cs3org/reva#1985: Add quota stubs
|
||||
* Bugfix cs3org/reva#1987: Fix windows build
|
||||
* Bugfix cs3org/reva#1990: Increase oc10 compatibility of owncloudsql
|
||||
* Bugfix cs3org/reva#1992: Check if symlink exists instead of spamming the console
|
||||
* Bugfix cs3org/reva#1993: fix owncloudsql GetMD
|
||||
|
||||
https://github.com/owncloud/ocis/pull/2423
|
||||
# Changelog for [1.10.0] (2021-08-06)
|
||||
|
||||
The following sections list the changes for 1.10.0.
|
||||
|
||||
[1.10.0]: https://github.com/owncloud/ocis/compare/v1.9.0...v1.10.0
|
||||
|
||||
## Summary
|
||||
|
||||
* Bugfix - Improve IDP Login Accessibility: [#5376](https://github.com/owncloud/web/issues/5376)
|
||||
* Bugfix - Forward basic auth to OpenID connect token authentication endpoint: [#2095](https://github.com/owncloud/ocis/issues/2095)
|
||||
* Bugfix - Log all requests in the proxy access log: [#2301](https://github.com/owncloud/ocis/pull/2301)
|
||||
* Bugfix - Update glauth to 20210729125545-b9aecdfcac31: [#2336](https://github.com/owncloud/ocis/pull/2336)
|
||||
* Change - Update ownCloud Web to v4.0.0: [#2353](https://github.com/owncloud/ocis/pull/2353)
|
||||
* Enhancement - Proxy: Add claims policy selector: [#2248](https://github.com/owncloud/ocis/pull/2248)
|
||||
* Enhancement - Add ocs cache warmup config and warn on protobuf ns conflicts: [#2328](https://github.com/owncloud/ocis/pull/2328)
|
||||
* Enhancement - Refactor graph API: [#2277](https://github.com/owncloud/ocis/pull/2277)
|
||||
* Enhancement - Update REVA: [#2355](https://github.com/owncloud/ocis/pull/2355)
|
||||
* Enhancement - Use only one go.mod file for project dependencies: [#2344](https://github.com/owncloud/ocis/pull/2344)
|
||||
|
||||
## Details
|
||||
|
||||
* Bugfix - Improve IDP Login Accessibility: [#5376](https://github.com/owncloud/web/issues/5376)
|
||||
|
||||
We have addressed the feedback from the `a11y` audit and improved the IDP login screen
|
||||
accordingly.
|
||||
|
||||
https://github.com/owncloud/web/issues/5376
|
||||
https://github.com/owncloud/web/issues/5377
|
||||
|
||||
* Bugfix - Forward basic auth to OpenID connect token authentication endpoint: [#2095](https://github.com/owncloud/ocis/issues/2095)
|
||||
|
||||
When using `PROXY_ENABLE_BASIC_AUTH=true` we now forward request to the idp instead of
|
||||
trying to authenticate the request ourself.
|
||||
|
||||
https://github.com/owncloud/ocis/issues/2095
|
||||
https://github.com/owncloud/ocis/issues/2094
|
||||
|
||||
* Bugfix - Log all requests in the proxy access log: [#2301](https://github.com/owncloud/ocis/pull/2301)
|
||||
|
||||
We now use a dedicated middleware to log all requests, regardless of routing selector outcome.
|
||||
While the log now includes the remote address, the selected routing policy is only logged when
|
||||
log level is set to debug because the request context cannot be changed in the
|
||||
`directorSelectionDirector`, as per the `ReverseProxy.Director` documentation.
|
||||
|
||||
https://github.com/owncloud/ocis/pull/2301
|
||||
|
||||
* Bugfix - Update glauth to 20210729125545-b9aecdfcac31: [#2336](https://github.com/owncloud/ocis/pull/2336)
|
||||
|
||||
* Fixes the backend config not being passed correctly in ocis
|
||||
* Fixes a mutex being copied, leading to concurrent writes
|
||||
* Fixes UTF8 chars in filters
|
||||
* Fixes case insensitive strings
|
||||
|
||||
https://github.com/owncloud/ocis/pull/2336
|
||||
https://github.com/glauth/glauth/pull/198
|
||||
https://github.com/glauth/glauth/pull/194
|
||||
|
||||
* Change - Update ownCloud Web to v4.0.0: [#2353](https://github.com/owncloud/ocis/pull/2353)
|
||||
|
||||
Tags: web
|
||||
|
||||
We updated ownCloud Web to v4.0.0. Please refer to the changelog (linked) for details on the web
|
||||
release.
|
||||
|
||||
https://github.com/owncloud/ocis/pull/2353
|
||||
https://github.com/owncloud/web/releases/tag/v4.0.0
|
||||
|
||||
* Enhancement - Proxy: Add claims policy selector: [#2248](https://github.com/owncloud/ocis/pull/2248)
|
||||
|
||||
Using the proxy config file, it is now possible to let let the IdP determine the routing policy by
|
||||
sending an `ocis.routing.policy` claim. Its value will be used to determine the set of routes
|
||||
for the logged in user.
|
||||
|
||||
https://github.com/owncloud/ocis/pull/2248
|
||||
|
||||
* Enhancement - Add ocs cache warmup config and warn on protobuf ns conflicts: [#2328](https://github.com/owncloud/ocis/pull/2328)
|
||||
|
||||
https://github.com/owncloud/ocis/pull/2328
|
||||
|
||||
* Enhancement - Refactor graph API: [#2277](https://github.com/owncloud/ocis/pull/2277)
|
||||
|
||||
We refactored the `/graph/v1.0/` endpoint which now relies on the internal acces token fer
|
||||
authentication, getting rid of any LDAP or OIDC code to authenticate requests. This allows
|
||||
using the graph api when using basic auth or any other auth mechanism provided by the CS3 auth
|
||||
providers / reva gateway / ocis proxy.
|
||||
|
||||
https://github.com/owncloud/ocis/pull/2277
|
||||
|
||||
* Enhancement - Update REVA: [#2355](https://github.com/owncloud/ocis/pull/2355)
|
||||
|
||||
Update REVA from v1.10.1-0.20210730095301-fcb7a30a44a6 to
|
||||
v1.11.1-0.20210809134415-3fe79c870fb5 * Fix cs3org/reva#1978: Fix owner type is optional
|
||||
* Fix cs3org/reva#1965: fix value of file_target in shares * Fix cs3org/reva#1960: fix
|
||||
updating shares in the memory share manager * Fix cs3org/reva#1956: fix trashbin listing with
|
||||
depth 0 * Fix cs3org/reva#1957: fix etag propagation on deletes * Enh cs3org/reva#1861: [WIP]
|
||||
Runtime plugins * Fix cs3org/reva#1954: fix response format of the sharees API * Fix
|
||||
cs3org/reva#1819: Remove notifications key from ocs response * Enh cs3org/reva#1946: Add a
|
||||
share manager that connects to oc10 databases * Fix cs3org/reva#1899: Fix chunked uploads for
|
||||
new versions * Fix cs3org/reva#1906: Fix copy over existing resource * Fix cs3org/reva#1891:
|
||||
Delete Shared Resources as Receiver * Fix cs3org/reva#1907: Error when creating folder with
|
||||
existing name * Fix cs3org/reva#1937: Do not overwrite more specific matches when finding
|
||||
storage providers * Fix cs3org/reva#1939: Fix the share jail permissions in the decomposedfs
|
||||
* Fix cs3org/reva#1932: Numerous fixes to the owncloudsql storage driver * Fix
|
||||
cs3org/reva#1912: Fix response when listing versions of another user * Fix
|
||||
cs3org/reva#1910: Get user groups recursively in the cbox rest user driver * Fix
|
||||
cs3org/reva#1904: Set Content-Length to 0 when swallowing body in the datagateway * Fix
|
||||
cs3org/reva#1911: Fix version order in propfind responses * Fix cs3org/reva#1926: Trash Bin
|
||||
in oCIS Storage Operations * Fix cs3org/reva#1901: Fix response code when folder doesnt exist
|
||||
on upload * Enh cs3org/reva#1785: Extend app registry with AddProvider method and mimetype
|
||||
filters * Enh cs3org/reva#1938: Add methods to get and put context values * Enh
|
||||
cs3org/reva#1798: Add support for a deny-all permission on references * Enh
|
||||
cs3org/reva#1916: Generate updated protobuf bindings for EOS GRPC * Enh cs3org/reva#1887:
|
||||
Add "a" and "l" filter for grappa queries * Enh cs3org/reva#1919: Run gofmt before building *
|
||||
Enh cs3org/reva#1927: Implement RollbackToVersion for eosgrpc (needs a newer EOS MGM) * Enh
|
||||
cs3org/reva#1944: Implement listing supported mime types in app registry * Enh
|
||||
cs3org/reva#1870: Be defensive about wrongly quoted etags * Enh cs3org/reva#1940: Reduce
|
||||
memory usage when uploading with S3ng storage * Enh cs3org/reva#1888: Refactoring of the
|
||||
webdav code * Enh cs3org/reva#1900: Check for illegal names while uploading or moving files *
|
||||
Enh cs3org/reva#1925: Refactor listing and statting across providers for virtual views * Fix
|
||||
cs3org/reva#1883: Pass directories with trailing slashes to eosclient.GenerateToken * Fix
|
||||
cs3org/reva#1878: Improve the webdav error handling in the trashbin * Fix cs3org/reva#1884:
|
||||
Do not send body on failed range request * Enh cs3org/reva#1744: Add support for lightweight
|
||||
user types * Fix cs3org/reva#1904: Set Content-Length to 0 when swallowing body in the
|
||||
datagateway * Fix cs3org/reva#1899: Bugfix: Fix chunked uploads for new versions * Enh
|
||||
cs3org/reva#1888: Refactoring of the webdav code * Enh cs3org/reva#1887: Add "a" and "l"
|
||||
filter for grappa queries
|
||||
|
||||
https://github.com/owncloud/ocis/pull/2355
|
||||
https://github.com/owncloud/ocis/pull/2295
|
||||
https://github.com/owncloud/ocis/pull/2314
|
||||
|
||||
* Enhancement - Use only one go.mod file for project dependencies: [#2344](https://github.com/owncloud/ocis/pull/2344)
|
||||
|
||||
We now use one single go.mod file at the root of the repository rather than one per core
|
||||
extension.
|
||||
|
||||
https://github.com/owncloud/ocis/pull/2344
|
||||
# Changelog for [1.9.0] (2021-07-13)
|
||||
|
||||
The following sections list the changes for 1.9.0.
|
||||
|
||||
[1.9.0]: https://github.com/owncloud/ocis/compare/v1.8.0...v1.9.0
|
||||
|
||||
## Summary
|
||||
|
||||
|
||||
+2
-2
@@ -11,10 +11,10 @@ For simplicity reasons, this document mostly refers to the ownCloud [Infinite Sc
|
||||
[What should I know before I get started](#what-should-i-know-before-i-get-started)
|
||||
* [ownCloud is hosted on Github](#owncloud-is-hosted-on-github)
|
||||
* [ownCloud Company, Engineering Partners and Community](#owncloud-company,-engineering-partners-and-community)
|
||||
* [Licensing and CLA](licensing-and-cla)
|
||||
* [Licensing and CLA](#licensing-and-cla)
|
||||
|
||||
[How Can I Contribute](#how-can-i-contribute)
|
||||
* [Help spreading the word](help-spreading-the-word!)
|
||||
* [Help spreading the word](#help-spreading-the-word)
|
||||
* [Reporting Bugs](#reporting-bugs)
|
||||
* [Suggesting Enhancements](#suggesting-enhancements)
|
||||
* [Your First Code Contribution](#your-first-code-contribution)
|
||||
|
||||
@@ -24,7 +24,6 @@ OCIS_MODULES = \
|
||||
ocis \
|
||||
ocis-pkg \
|
||||
ocs \
|
||||
onlyoffice \
|
||||
proxy \
|
||||
settings \
|
||||
storage \
|
||||
|
||||
+1
-1
@@ -32,7 +32,7 @@ include ../.make/generate.mk
|
||||
|
||||
.PHONY: ci-go-generate
|
||||
ci-go-generate: protobuf # CI runs ci-node-generate automatically before this target
|
||||
@go generate $(GENERATE)
|
||||
@go generate ./...
|
||||
|
||||
.PHONY: ci-node-generate
|
||||
ci-node-generate: yarn-build
|
||||
|
||||
@@ -1,45 +0,0 @@
|
||||
module github.com/owncloud/ocis/accounts
|
||||
|
||||
go 1.16
|
||||
|
||||
require (
|
||||
contrib.go.opencensus.io/exporter/jaeger v0.2.1
|
||||
contrib.go.opencensus.io/exporter/ocagent v0.7.0
|
||||
contrib.go.opencensus.io/exporter/zipkin v0.1.2
|
||||
github.com/asim/go-micro/plugins/client/grpc/v3 v3.0.0-20210408173139-0d57213d3f5c
|
||||
github.com/asim/go-micro/v3 v3.5.1-0.20210217182006-0f0ace1a44a9
|
||||
github.com/cs3org/go-cs3apis v0.0.0-20210702091910-85a56bfd027f
|
||||
github.com/cs3org/reva v1.9.1
|
||||
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
|
||||
github.com/golang/protobuf v1.5.2
|
||||
github.com/grpc-ecosystem/grpc-gateway/v2 v2.2.0
|
||||
github.com/mennanov/fieldmask-utils v0.3.3
|
||||
github.com/micro/cli/v2 v2.1.2
|
||||
github.com/oklog/run v1.1.0
|
||||
github.com/olekukonko/tablewriter v0.0.5
|
||||
github.com/openzipkin/zipkin-go v0.2.5
|
||||
github.com/owncloud/ocis/ocis-pkg v0.0.0-20210216094451-dc73176dc62d
|
||||
github.com/owncloud/ocis/settings v0.0.0-20210413063522-955bd60edf33
|
||||
github.com/prometheus/client_golang v1.10.0
|
||||
github.com/rs/zerolog v1.23.0
|
||||
github.com/spf13/viper v1.7.1
|
||||
github.com/stretchr/testify v1.7.0
|
||||
github.com/thejerf/suture/v4 v4.0.0
|
||||
go.opencensus.io v0.23.0
|
||||
golang.org/x/crypto v0.0.0-20201221181555-eec23a3978ad
|
||||
golang.org/x/net v0.0.0-20210428140749-89ef3d95e781
|
||||
google.golang.org/genproto v0.0.0-20210207032614-bba0dbe2a9ea
|
||||
google.golang.org/grpc v1.39.0
|
||||
google.golang.org/protobuf v1.27.1
|
||||
)
|
||||
|
||||
replace (
|
||||
github.com/owncloud/ocis/ocis-pkg => ../ocis-pkg
|
||||
github.com/owncloud/ocis/settings => ../settings
|
||||
github.com/owncloud/ocis/store => ../store
|
||||
// taken from https://github.com/asim/go-micro/blob/master/plugins/registry/etcd/go.mod#L14-L16
|
||||
go.etcd.io/etcd/api/v3 => go.etcd.io/etcd/api/v3 v3.0.0-20210204162551-dae29bb719dd
|
||||
go.etcd.io/etcd/pkg/v3 => go.etcd.io/etcd/pkg/v3 v3.0.0-20210204162551-dae29bb719dd
|
||||
)
|
||||
-2327
File diff suppressed because it is too large.
Load diff
+11
-11
@@ -17,10 +17,10 @@
|
||||
"watch": "rollup -c -w",
|
||||
"test": "echo 'Not implemented'",
|
||||
"generate-api": "node node_modules/swagger-vue-generator/bin/generate-api.js --package-version v0 --source pkg/proto/v0/accounts.swagger.json --moduleName accounts --destination ui/client/accounts/index.js",
|
||||
"acceptance-tests": "cucumber-js --retry 1 --require-module @babel/register --require-module @babel/polyfill --require ${TEST_INFRA_DIRECTORY}/acceptance/setup.js --require ui/tests/acceptance/stepDefinitions --require ${TEST_INFRA_DIRECTORY}/acceptance/stepDefinitions --format node_modules/cucumber-pretty -t \"${TEST_TAGS:-not @skip and not @skipOnOC10}\""
|
||||
"acceptance-tests": "cucumber-js --retry 1 --require-module @babel/register --require-module @babel/polyfill --require ${TEST_INFRA_DIRECTORY}/acceptance/setup.js --require ui/tests/acceptance/stepDefinitions --require ${TEST_INFRA_DIRECTORY}/acceptance/stepDefinitions --format @cucumber/pretty-formatter -t \"${TEST_TAGS:-not @skip and not @skipOnOC10}\""
|
||||
},
|
||||
"devDependencies": {
|
||||
"@babel/core": "^7.14.0",
|
||||
"@babel/core": "^7.15.5",
|
||||
"@babel/plugin-proposal-class-properties": "^7.13.0",
|
||||
"@babel/plugin-proposal-export-default-from": "^7.7.4",
|
||||
"@babel/plugin-proposal-object-rest-spread": "^7.7.7",
|
||||
@@ -28,17 +28,17 @@
|
||||
"@babel/plugin-transform-runtime": "^7.13.10",
|
||||
"@babel/polyfill": "^7.10.1",
|
||||
"@babel/preset-env": "^7.13.12",
|
||||
"@babel/register": "7.13.8",
|
||||
"@babel/register": "^7.14.5",
|
||||
"@cucumber/cucumber": "^7.3.1",
|
||||
"@cucumber/pretty-formatter": "^1.0.0-alpha.1",
|
||||
"@erquhart/rollup-plugin-node-builtins": "^2.1.5",
|
||||
"@rollup/plugin-commonjs": "^17.1.0",
|
||||
"@rollup/plugin-json": "^4.0.1",
|
||||
"@rollup/plugin-replace": "^2.3.0",
|
||||
"archiver": "^5.3.0",
|
||||
"axios": "^0.21.1",
|
||||
"core-js": "3",
|
||||
"axios": "^0.21.4",
|
||||
"core-js": "^3.17.3",
|
||||
"cross-env": "^7.0.3",
|
||||
"cucumber": "^6.0.5",
|
||||
"cucumber-pretty": ">=6.0.0",
|
||||
"debounce": "^1.2.1",
|
||||
"easygettext": "^2.17.0",
|
||||
"eslint": "7.24.0",
|
||||
@@ -51,13 +51,13 @@
|
||||
"fs-extra": "^9.0.1",
|
||||
"join-path": "^1.1.1",
|
||||
"ldapjs": "^2.2.3",
|
||||
"nightwatch": "^1.6.0",
|
||||
"nightwatch-api": "^3.0.1",
|
||||
"nightwatch": "1.5.1",
|
||||
"nightwatch-api": "3.0.2",
|
||||
"nightwatch-vrt": "^0.2.10",
|
||||
"node-fetch": "^2.6.1",
|
||||
"qs": "^6.10.1",
|
||||
"rimraf": "^3.0.0",
|
||||
"rollup": "^2.52.6",
|
||||
"rollup": "^2.55.1",
|
||||
"rollup-plugin-babel": "^4.3.3",
|
||||
"rollup-plugin-eslint": "^7.0.0",
|
||||
"rollup-plugin-filesize": "^9.1.0",
|
||||
@@ -76,7 +76,7 @@
|
||||
"not dead"
|
||||
],
|
||||
"peerDependencies": {
|
||||
"owncloud-design-system": "^7.4.2"
|
||||
"owncloud-design-system": "^9.3.0"
|
||||
},
|
||||
"dependencies": {
|
||||
"validator": "^13.1.1"
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
// Code generated by fileb0x at "2021-06-21 23:19:53.756843 +0200 CEST m=+0.026966814" from config file "embed.yml" DO NOT EDIT.
|
||||
// modification hash(b80d52cc8a7a822a3b60b232225c03e4.8058aec596c5fb73022d09bb97af796e)
|
||||
// Code generated by fileb0x at "2021-09-14 19:17:48.311286859 +0100 WEST m=+0.005844360" from config file "embed.yml" DO NOT EDIT.
|
||||
// modification hash(c4a629d16d7bcba947309c058228ee35.8058aec596c5fb73022d09bb97af796e)
|
||||
|
||||
package assets
|
||||
|
||||
@@ -36,7 +36,7 @@ type HTTPFS struct {
|
||||
}
|
||||
|
||||
// FileAccountsJs is "accounts.js"
|
||||
var FileAccountsJs = []byte("\x1f\x8b\x08\x00\x00\x00\x00\x00\x00\xff\xd4\xfd\xf9\x92\x1b\xb7\x92\x38\x0a\xff\xfd\xcd\x53\x90\x18\xa9\x0c\x98\xe8\x12\x29\x79\x2d\x0a\xe2\xc8\x52\xcb\x96\xad\xcd\x6a\xc9\xcb\x61\xf3\xf4\x41\x17\x41\x76\x49\x24\x40\xa3\xc0\x5e\x4c\xd6\xf7\x3e\xf7\x35\xee\x93\xdd\xc0\x56\x85\x5a\xd8\xd2\x99\x99\xdf\x8d\xb8\x11\x1d\xcd\x02\x90\x48\xec\x89\xcc\x44\x22\x31\x67\x8b\x8c\x33\x08\x17\x5b\x9e\xaa\x4c\x70\x88\x76\x60\x9b\xb3\x5e\xae\x64\x96\x2a\x30\xbe\xa4\xb2\xc7\x08\xd8\x72\x0b\x38\x07\x7d\xa2\x6e\x36\x4c\x2c\x7a\xcb\x95\x38\xa7\xab\x77\x17\x59\x3e\xa9\x3e\x93\x2e\xc8\xab\x8c\xcf\xc5\xd5\xc4\xfe\x74\x42\x58\x04\x0e\x4f\x27\x44\xce\x56\x8b\x89\xfe\x97\xec\x8a\xb1\xaf\x6c\x4f\x41\x86\x76\x92\xa9\xad\xe4\x3d\x16\x45\x2c\x3e\x3b\x63\xf9\x4b\x31\xdf\xae\x58\x14\xbd\x3e\xff\xc0\x52\x15\x6f\xa4\x50\x42\x63\x89\x2f\x68\xfe\xfa\x8a\xbf\x91\x62\xc3\xa4\xba\x89\x53\xba\x5a\x41\x86\xc1\x9c\x2d\xe8\x76\xa5\x00\x9a\xb0\xd8\x7d\x27\xac\x28\xcb\xe0\xba\x8c\x6c\x01\x43\xe4\xc8\x97\x69\xfa\x47\x11\x57\x94\xad\xb5\x2f\x00\xee\x0a\x0c\xaa\x3c\x00\xef\x2e\xe9\x6a\xcb\x92\xfe\xb0\x40\x63\x87\xc0\x65\xfc\xc8\x6e\x72\xc8\x50\xbc\x10\xf2\x98\xa6\x17\xc1\x70\x70\xb4\xd3\x45\x48\x5f\xc4\x92\xa9\xa0\x0d\x4f\x59\x9e\xca\x6c\xa3\x84\x84\x0c\x73\x34\xee\xae\x87\xc2\x1c\x4b\x9d\x73\x22\x93\x1d\xe3\xdb\x35\x93\xf4\x7c\xa5\x2b\x82\x97\x4c\x25\xc1\xd0\xfb\x66\x4d\xf9\xac\x28\x50\x81\x10\x56\x55\x47\x48\xdd\x11\xb6\xbd\x3b\x76\xbd\x11\x52\xe5\xc9\xae\x28\x7c\x53\x18\x54\x58\xc5\x2e\x01\x55\x9f\x85\x0c\x9a\x53\x62\x68\xc5\x60\x4e\x9a\x03\x86\x25\xe1\x8d\x41\xc3\x82\x00\x9f\x15\x10\x3f\x39\x4e\x6e\xd6\xe7\x62\x35\xb1\x3f\xc9\xae\xc0\x94\x88\x38\x53\x4c\x52\x25\xe4\x7e\x0f\xfe\xeb\xbf\x7c\x00\xe0\x8c\x88\x98\xe6\x37\x3c\x7d\x1e\xa6\xd7\x62\x00\x4e\x89\x88\x95\x38\x51\x32\xe3\xcb\x77\x74\x69\x40\x82\x30\xa8\x66\x60\x0e\x19\x56\x98\x97\x5d\xd7\x3d\x02\x1a\xc6\x8d\x3e\xc7\xf5\x11\x48\x05\x5f\x64\xcb\x6d\x19\xbe\x92\x99\x72\xdf\x05\xc2\x6c\xaa\x66\x85\x92\x37\xbb\xdc\xcc\x26\x80\x8a\x94\xaa\xf4\x42\xf7\x5a\x1e\xf4\x61\xad\x0a\x3a\x0f\xe1\x45\x35\x70\x5b\x0b\x80\xa5\xed\x6a\x41\x54\x14\x05\xdd\xdc\xcb\x78\xae\x28\x4f\x75\x4f\xde\x4c\x54\x72\x83\xa9\x1f\x8a\x54\x32\xaa\x18\x14\x15\x30\xc2\x19\xe1\xec\xaa\x77\x06\xe5\x7e\x3f\x9d\x95\x13\x99\xc6\x67\x19\xbf\x14\x1f\x59\xab\x56\x76\xfa\x2e\x3c\x60\x99\x2c\x30\x35\xeb\x4a\x12\x42\xe6\x48\x5d\x48\x71\xd5\xd3\x98\x8f\xa5\x14\x12\x82\x1f\x19\xb7\xa3\xd1\xcb\xf2\x1e\x5d\x49\x46\xe7\x37\x3d\xb9\xe5\x3c\xe3\x4b\x80\xc6\x2e\xe3\x85\x41\x01\x4c\x6e\x40\x08\x11\x0e\x11\xf5\xc5\x5d\x43\x54\x2c\x84\x84\x3c\x5e\x33\x75\x21\xe6\x44\x60\x1e\x53\xb9\x24\x74\x3c\xb6\x75\xcb\x08\x8f\xe7\x6c\xc5\x96\x54\x31\x8d\x36\xb3\xd1\x29\xf9\x08\x33\xbd\xa6\xb2\x05\x4c\x4d\x29\x29\x21\x64\x8d\x52\xc1\x55\xc6\xb7\xcc\x17\x90\x16\x85\xae\x01\x67\xd7\x4a\x57\xc0\x97\x83\x78\x9c\x33\xae\x08\x8f\xcf\xdc\x2f\x95\xcb\x31\x5b\xe5\xac\x57\xab\x70\x09\xef\xbb\x62\xe1\x5a\x20\xc9\x85\xad\xe9\x98\xc7\xf3\x2c\xdf\xe8\x61\x3f\xbe\x4e\xd9\xc6\x92\x05\x9d\x82\x0a\x8d\x0f\xd8\x8a\x84\xc8\xa2\x88\xc7\xf4\x5c\x6e\x37\x0a\xfa\x54\x8b\x0b\x8d\x25\x99\x1b\x9a\x95\x93\x95\x1b\xa0\xb1\xa9\xbe\x90\x6b\xba\xd2\x38\xf2\xd8\x0c\xb3\xad\x0e\x8f\xe7\x82\xb3\xc9\x45\xb2\xc1\xb9\xe9\xb5\x8e\x1e\x70\xf3\xda\xa4\x63\x0d\x9e\xd8\x5c\x45\x51\xb5\xd2\x22\x8d\x22\x68\x5b\xe5\x86\xc2\xa5\xbb\x01\xc9\x6d\x93\x8a\x42\x93\x32\x9c\x21\x4c\xab\x19\xec\xeb\xba\xd3\x4b\xc1\x15\xab\x31\x26\xbe\xe2\x98\xca\x65\xc2\x2c\x49\xd7\x80\x45\xb5\x4e\x6a\xe0\xae\x44\x03\x5d\x14\x05\x8b\xaf\x24\xdd\x90\xad\xe9\x92\x05\x01\xf9\x36\xdf\x30\x3e\x67\xf3\x13\x45\xa5\x02\x78\x13\x44\xfd\x99\xb1\xd5\x1c\xe0\x39\x01\xec\x9a\xa5\x5b\xa5\xe7\x21\xbe\x20\x20\x15\xeb\xcd\x8a\x29\x36\x07\x78\x4d\xc2\xcd\xe9\x06\xa2\x5d\xd5\x84\x65\x2d\x74\xa9\x43\xba\xd0\x73\x9d\xe5\x7c\x4a\x67\xa4\x4d\x86\xd5\x45\x96\x17\xa6\x6a\x57\x01\xf9\x7f\xe3\x97\xe2\xeb\x05\x7e\x4c\xae\xa2\xe8\x0a\x5e\xc1\x0f\x70\x3a\x43\x08\x8d\x1f\x47\xd1\xe3\x3e\x21\x3c\x8a\xa4\xed\x8c\xc7\x98\xa2\x28\x82\xe7\xe4\x31\x32\x98\x4e\xc8\x65\xb5\x98\xc9\x4d\xf0\x5d\x5f\xf2\xe7\xa8\x6a\xc8\xb1\xee\xc6\xa9\x9d\xe2\xd8\x77\xa1\x9f\x58\xb3\x8e\x4d\x4b\xa1\x9d\xa5\x8b\x35\xc2\x1f\xb4\xca\x13\x0b\xa8\x30\xd3\xdb\x8c\xfe\x2b\x8b\x7b\xad\xb3\xa2\x5d\xb0\x01\x0b\x4c\x71\x86\x53\xbb\x30\xcd\xcc\x9d\x8a\x19\x66\x98\xda\xc9\x6b\x6b\xd4\xaf\xe6\xae\x06\xdb\xda\x09\x85\x17\x64\x1b\x9b\x19\x5a\x12\xa0\x28\x02\xc2\xb4\xb5\xda\x40\x16\x65\x7f\x2d\xf4\x96\x4d\xaf\x68\xa6\xf9\x01\x15\x4b\x96\x8b\xd5\x25\x83\x8b\xd8\xc5\xa2\x58\x5d\x30\x5e\xdf\xd1\xb8\x5b\xfe\x98\x99\x5a\x16\x08\x37\x93\x5d\x9f\xf9\x74\x94\x04\x98\xbb\x30\xba\x2a\x13\x86\x33\xb8\x6d\x21\x74\x0d\xe9\xc0\x5b\xa4\xd0\x2d\x23\x43\xe8\xc7\x61\x5f\x87\x84\x59\x06\xdd\x4b\xab\x09\xa7\xc9\xaf\x0a\xc7\x11\x0b\x5d\x7d\x86\x25\xd6\x9f\xba\x00\x07\x29\x88\x98\x08\x5b\x71\x8a\x29\x4a\x28\x44\xc1\x86\xf3\xd1\x70\x23\x8e\xf2\xb3\x72\x27\x9e\xfa\x95\x3f\xf3\xe4\x5b\x19\x3a\x53\xd1\x5f\xc2\xb7\xab\x15\x3e\x40\x1d\x2b\x44\xb1\xad\x45\x14\x55\x64\xbd\x4e\xe7\x88\xc2\xb6\x0e\x5d\xb8\x3c\xf3\xb6\xLine truncated
|
||||
var FileAccountsJs = []byte("\x1f\x8b\x08\x00\x00\x00\x00\x00\x00\xff\xd4\xbd\xe9\x76\xdb\xb8\xd2\x28\xfa\xfb\x9e\xa7\x90\x70\x62\x36\xd0\x82\x69\xc9\x49\x67\x77\x53\x41\x74\x32\x38\x43\x77\xa6\x8e\x93\xde\x83\xac\xf6\x86\x25\x48\x62\x2c\x81\x6a\x10\xf2\x10\x89\x0f\x74\x5f\xe3\x3e\xd9\x5d\x18\x09\x52\x94\x93\xfd\x9d\xef\xdc\xb5\xee\x5a\x89\x45\x00\x85\x42\x61\x2a\x14\x0a\x85\xc2\x84\x4d\x53\xce\x20\x9c\xae\xf9\x58\xa6\x19\x87\x68\x03\xd6\x39\x6b\xe5\x52\xa4\x63\x09\xfa\x57\x54\xb4\x18\x01\x6b\x6e\x00\x27\xa0\x4d\xe4\xed\x8a\x65\xd3\xd6\x6c\x91\x5d\xd0\xc5\xa7\x79\x9a\x0f\xca\xcf\xa4\x09\xf2\x3a\xe5\x93\xec\x7a\x60\x7e\x1a\x21\x0c\x02\x8b\xa7\x11\x22\x67\x8b\xe9\x40\xfd\x49\x36\x45\xdf\x11\xdb\x92\x90\xa1\x8d\x60\x72\x2d\x78\x8b\x45\x11\x8b\xcf\xcf\x59\xfe\x36\x9b\xac\x17\x2c\x8a\xde\x5f\x7c\x61\x63\x19\xaf\x44\x26\x33\x85\x25\x9e\xd3\xfc\xfd\x35\xff\x20\xb2\x15\x13\xf2\x36\x1e\xd3\xc5\x02\x32\x0c\x26\x6c\x4a\xd7\x0b\x09\xd0\x80\xc5\xf6\x3b\x61\x85\x2f\x83\xab\x32\xd2\x29\x0c\x91\x23\x57\xa6\x6e\x1f\x49\x6c\x51\x86\x6a\x57\x00\xdc\x14\x18\x94\x79\x00\xde\x5c\xd1\xc5\x9a\x25\xed\x6e\x81\xfa\x16\x81\xcd\x78\xc9\x6e\x73\xc8\x50\x3c\xcd\xc4\x09\x1d\xcf\x83\xee\xe0\x68\xa3\x8a\x10\xae\x88\x19\x93\x41\x1d\x9e\xb3\x7c\x2c\xd2\x95\xcc\x04\x64\x98\xa3\x7e\x33\x1d\x12\x73\x2c\x54\xce\x81\x48\x36\x8c\xaf\x97\x4c\xd0\x8b\x85\x22\x04\xcf\x98\x4c\x82\xae\x77\xd5\x1a\xf2\x51\x51\xa0\x02\x21\x2c\xcb\x86\x10\xaa\x21\x4c\x7d\x37\xec\x66\x95\x09\x99\x27\x9b\xa2\x70\x55\x61\x50\x62\x19\xdb\x04\x54\x7e\x16\x22\xa8\x8e\xc7\xb0\x13\x83\x39\xa9\x77\x18\x16\x84\xd7\x3a\x0d\x67\x04\xb8\xac\x80\xb8\xc1\x71\x7a\xbb\xbc\xc8\x16\x03\xf3\x93\x6c\x0a\x4c\x49\x16\xa7\x92\x09\x2a\x33\xb1\xdd\x82\xff\xf5\xbf\x5c\x00\xe0\x94\x64\x31\xcd\x6f\xf9\xf8\x75\x98\x5e\x89\x01\x38\x27\x59\x2c\xb3\x53\x29\x52\x3e\xfb\x44\x67\x1a\x24\x08\x83\x72\x04\x8e\x21\xc3\x12\x73\xdf\x74\xcd\x3d\xa0\x60\x6c\xef\x73\x5c\xed\x81\x71\xc6\xa7\xe9\x6c\xed\xc3\xd7\x22\x95\xf6\xbb\x40\x98\x0d\xe5\xa8\x90\xe2\x76\x33\xd6\xa3\x09\xa0\x62\x4c\xe5\x78\xae\x5a\x6d\x1c\xb4\x61\x85\x04\x95\x87\xf0\xa2\xec\xb8\xb5\x01\xc0\xc2\x34\x75\x46\x64\x14\x05\xcd\xdc\x4a\x79\x2e\x29\x1f\xab\x96\xbc\x1d\xc8\xe4\x16\x53\xd7\x15\x63\xc1\xa8\x64\x30\x2b\x81\x11\x4e\x09\x67\xd7\xad\x67\x50\x6c\xb7\xc3\x91\x1f\xc8\x34\x3e\x4f\xf9\x55\x76\xc9\x76\xa8\x32\xc3\x77\xea\x00\x7d\x72\x86\xa9\x9e\x57\x82\x10\x32\x41\x72\x2e\xb2\xeb\x96\xc2\x7c\x22\x44\x26\x20\x78\xc9\xb8\xe9\x8d\x56\x9a\xb7\xe8\x42\x30\x3a\xb9\x6d\x89\x35\xe7\x29\x9f\x01\xd4\xb7\x19\xe7\x1a\x05\xd0\xb9\x01\x21\x24\xb3\x88\xa8\x2b\xee\x1c\xa2\x62\x9a\x09\xc8\xe3\x25\x93\xf3\x6c\x42\x32\xcc\x63\x2a\x66\x84\xf6\xfb\x86\xb6\x94\xf0\x78\xc2\x16\x6c\x46\x25\x53\x68\x53\x13\x9d\x93\x4b\x98\xaa\x39\x95\x4e\x61\xae\x4b\xc9\x09\x21\x4b\x34\xce\xb8\x4c\xf9\x9a\xb9\x02\xf2\xa2\x50\x14\x70\x76\x23\x15\x01\xae\x1c\xc4\xe3\x9c\x71\x49\x78\x7c\x6e\x7f\xa9\x98\xf5\xd9\x22\x67\xad\x0a\xc1\x1e\xde\x35\xc5\xd4\xd6\x40\x90\xb9\xa1\xb4\xcf\xe3\x49\x9a\xaf\x54\xb7\x9f\xdc\x8c\xd9\xca\xb0\x05\x95\x82\x0a\x85\x0f\x18\x42\x42\x64\x51\xc4\x63\x7a\x21\xd6\x2b\x09\x5d\xaa\xc1\x85\xfa\x82\x4c\x34\xcf\x1a\x93\x85\xed\xa0\xbe\x26\x3f\x13\x4b\xba\x50\x38\xc6\xb1\xee\x66\x43\x0e\x8f\x27\x19\x67\x83\x79\xb2\xc2\x63\xdd\x6a\x0d\x2d\x60\xc7\xb5\x4e\xc7\x0a\x3c\x31\xb9\x8a\xa2\xac\xa5\x41\x1a\x45\xd0\xd4\xca\x76\x85\x4d\xb7\x1d\x32\x36\x55\x2a\x0a\xc5\xca\x70\x8a\x30\x2d\x47\xb0\xa3\x75\xa3\xa6\x82\x2d\x56\x61\x4c\x1c\xe1\x98\x8a\x59\xc2\x0c\x4b\x57\x80\x45\x39\x4f\x2a\xe0\xb6\x44\x0d\x5d\x14\x05\x8b\xaf\x05\x5d\x91\xb5\x6e\x92\x29\x01\xf9\x3a\x5f\x31\x3e\x61\x93\x53\x49\x85\x04\x78\x15\x44\xfd\x33\x65\x8b\x09\xc0\x13\x02\xd8\x0d\x1b\xaf\xa5\x1a\x87\x78\x4e\xc0\x38\x5b\xae\x16\x4c\xb2\x09\xc0\x4b\x12\x2e\x4e\xb7\x10\x6d\xca\x2a\xcc\x2a\xa1\x2b\x15\x52\x85\x5e\xa8\x2c\x17\x43\x3a\x22\xbb\x6c\x58\xce\xd3\xbc\xd0\xa4\x5d\x07\xec\xff\x83\x9b\x8a\xef\xa7\xf8\x09\xb9\x8e\xa2\x6b\x78\x0d\x6f\xe0\x70\x84\x10\xea\x3f\x89\xa2\x27\x6d\x42\x78\x14\x09\xd3\x18\x4f\x30\x45\x51\x04\x2f\xc8\x13\xa4\x31\x9d\x90\xab\x72\x32\x93\xdb\xe0\xbb\x3a\xe5\x2f\x50\x59\x91\x53\xd5\x8c\x43\x33\xc4\xb1\x6b\x42\x37\xb0\x46\x0d\x8b\x96\x44\x1b\xc3\x17\x2b\x8c\x3f\xa8\x95\x63\x16\x50\x62\xa6\x96\x19\xf5\xcf\x17\xf7\x5e\x65\x45\x9b\x60\x01\xce\x30\xc5\x29\xce\xcd\xc4\xd4\x23\x77\x98\x8d\x30\xc3\xd4\x0c\x5e\x43\x51\xbb\x1c\xbb\x0a\x6c\x6d\x06\x14\x9e\x92\x75\xac\x47\xa8\x67\x40\x51\x04\x32\x5d\xd7\x72\x01\x99\xfa\xf6\x9a\xaa\x25\x9b\x5e\xd3\x54\xc9\x03\x32\x16\x2c\xcf\x16\x57\x0c\x4e\x63\x1b\x8b\x62\x39\x67\xbc\xba\xa2\x71\x3b\xfd\x31\xd3\x54\x16\x08\xd7\x93\x6d\x9b\xb9\x74\x94\x04\x98\x9b\x30\x5a\x92\x09\xc3\x29\x5c\xef\x20\xb4\x15\x69\xc0\x5b\xe4\xd0\x4e\x23\xcd\xe8\xfb\x61\x5b\x87\x8c\x59\x04\xcd\x4b\xcb\x01\xa7\xd8\xaf\x0c\xfb\x11\x67\x8a\x7c\x86\x05\x56\x9f\xaa\x00\x0b\x99\x91\x6c\x90\x19\xc2\x29\xa6\x28\xa1\x10\x05\x0b\xce\xa5\x96\x46\x2c\xe7\x67\x7e\x25\x1e\xba\x99\x3f\x72\xec\x5b\x6a\x3e\x53\xf2\x5f\xc2\xd7\x8b\x05\xde\xc3\x1d\x4b\x44\xb1\xa1\x22\x8a\x4a\xb6\x5e\xe5\x73\x44\x62\x43\x43\x13\x2e\x27\xLine truncated
|
||||
|
||||
func init() {
|
||||
err := CTX.Err()
|
||||
|
||||
@@ -40,7 +40,7 @@ func Server(cfg *config.Config) *cli.Command {
|
||||
},
|
||||
Action: func(c *cli.Context) error {
|
||||
logger := NewLogger(cfg)
|
||||
err := tracing.Configure(cfg, logger)
|
||||
err := tracing.Configure(cfg)
|
||||
if err != nil {
|
||||
return err
|
||||
}
|
||||
|
||||
@@ -47,28 +47,28 @@ func ServerWithConfig(cfg *config.Config) []cli.Flag {
|
||||
&cli.BoolFlag{
|
||||
Name: "tracing-enabled",
|
||||
Usage: "Enable sending traces",
|
||||
EnvVars: []string{"ACCOUNTS_TRACING_ENABLED"},
|
||||
EnvVars: []string{"ACCOUNTS_TRACING_ENABLED", "OCIS_TRACING_ENABLED"},
|
||||
Destination: &cfg.Tracing.Enabled,
|
||||
},
|
||||
&cli.StringFlag{
|
||||
Name: "tracing-type",
|
||||
Value: flags.OverrideDefaultString(cfg.Tracing.Type, "jaeger"),
|
||||
Usage: "Tracing backend type",
|
||||
EnvVars: []string{"ACCOUNTS_TRACING_TYPE"},
|
||||
EnvVars: []string{"ACCOUNTS_TRACING_TYPE", "OCIS_TRACING_TYPE"},
|
||||
Destination: &cfg.Tracing.Type,
|
||||
},
|
||||
&cli.StringFlag{
|
||||
Name: "tracing-endpoint",
|
||||
Value: flags.OverrideDefaultString(cfg.Tracing.Endpoint, ""),
|
||||
Usage: "Endpoint for the agent",
|
||||
EnvVars: []string{"ACCOUNTS_TRACING_ENDPOINT"},
|
||||
EnvVars: []string{"ACCOUNTS_TRACING_ENDPOINT", "OCIS_TRACING_ENDPOINT"},
|
||||
Destination: &cfg.Tracing.Endpoint,
|
||||
},
|
||||
&cli.StringFlag{
|
||||
Name: "tracing-collector",
|
||||
Value: flags.OverrideDefaultString(cfg.Tracing.Collector, ""),
|
||||
Usage: "Endpoint for the collector",
|
||||
EnvVars: []string{"ACCOUNTS_TRACING_COLLECTOR"},
|
||||
EnvVars: []string{"ACCOUNTS_TRACING_COLLECTOR", "OCIS_TRACING_COLLECTOR"},
|
||||
Destination: &cfg.Tracing.Collector,
|
||||
},
|
||||
&cli.StringFlag{
|
||||
|
||||
@@ -8,7 +8,7 @@ import (
|
||||
"encoding/json"
|
||||
"net/http"
|
||||
|
||||
"github.com/go-chi/chi"
|
||||
"github.com/go-chi/chi/v5"
|
||||
"github.com/go-chi/render"
|
||||
"github.com/golang/protobuf/jsonpb"
|
||||
|
||||
|
||||
@@ -2,7 +2,8 @@ package http
|
||||
|
||||
import (
|
||||
"github.com/asim/go-micro/v3"
|
||||
"github.com/go-chi/chi"
|
||||
"github.com/go-chi/chi/v5"
|
||||
chimiddleware "github.com/go-chi/chi/v5/middleware"
|
||||
"github.com/owncloud/ocis/accounts/pkg/assets"
|
||||
"github.com/owncloud/ocis/accounts/pkg/proto/v0"
|
||||
"github.com/owncloud/ocis/accounts/pkg/version"
|
||||
@@ -28,8 +29,9 @@ func Server(opts ...Option) http.Service {
|
||||
|
||||
mux := chi.NewMux()
|
||||
|
||||
mux.Use(middleware.RealIP)
|
||||
mux.Use(middleware.RequestID)
|
||||
mux.Use(chimiddleware.RealIP)
|
||||
mux.Use(chimiddleware.RequestID)
|
||||
mux.Use(middleware.TraceContext)
|
||||
mux.Use(middleware.NoCache)
|
||||
mux.Use(middleware.Cors)
|
||||
mux.Use(middleware.Secure)
|
||||
|
||||
@@ -12,10 +12,9 @@ import (
|
||||
"strconv"
|
||||
"time"
|
||||
|
||||
"github.com/owncloud/ocis/ocis-pkg/sync"
|
||||
"golang.org/x/crypto/bcrypt"
|
||||
"go.opentelemetry.io/otel/trace"
|
||||
|
||||
"github.com/owncloud/ocis/ocis-pkg/log"
|
||||
"go.opentelemetry.io/otel/attribute"
|
||||
|
||||
merrors "github.com/asim/go-micro/v3/errors"
|
||||
"github.com/asim/go-micro/v3/metadata"
|
||||
@@ -24,11 +23,15 @@ import (
|
||||
fieldmask_utils "github.com/mennanov/fieldmask-utils"
|
||||
"github.com/owncloud/ocis/accounts/pkg/proto/v0"
|
||||
"github.com/owncloud/ocis/accounts/pkg/storage"
|
||||
accTracing "github.com/owncloud/ocis/accounts/pkg/tracing"
|
||||
"github.com/owncloud/ocis/ocis-pkg/log"
|
||||
"github.com/owncloud/ocis/ocis-pkg/middleware"
|
||||
"github.com/owncloud/ocis/ocis-pkg/roles"
|
||||
"github.com/owncloud/ocis/ocis-pkg/sync"
|
||||
settings "github.com/owncloud/ocis/settings/pkg/proto/v0"
|
||||
settings_svc "github.com/owncloud/ocis/settings/pkg/service/v0"
|
||||
"github.com/rs/zerolog"
|
||||
"golang.org/x/crypto/bcrypt"
|
||||
"google.golang.org/genproto/protobuf/field_mask"
|
||||
p "google.golang.org/protobuf/proto"
|
||||
"google.golang.org/protobuf/types/known/timestamppb"
|
||||
@@ -124,6 +127,15 @@ func (s Service) getInMemoryServiceUser() proto.Account {
|
||||
// ListAccounts implements the AccountsServiceHandler interface
|
||||
// the query contains account properties
|
||||
func (s Service) ListAccounts(ctx context.Context, in *proto.ListAccountsRequest, out *proto.ListAccountsResponse) (err error) {
|
||||
var span trace.Span
|
||||
ctx, span = accTracing.TraceProvider.Tracer("accounts").Start(ctx, "Accounts.ListAccounts")
|
||||
defer span.End()
|
||||
|
||||
span.SetAttributes(
|
||||
attribute.KeyValue{Key: "page_size", Value: attribute.Int64Value(int64(in.PageSize))},
|
||||
attribute.KeyValue{Key: "page_token", Value: attribute.StringValue(in.PageToken)},
|
||||
)
|
||||
|
||||
hasSelf := s.hasSelfManagementPermissions(ctx)
|
||||
hasManagement := s.hasAccountManagementPermissions(ctx)
|
||||
if !hasSelf && !hasManagement {
|
||||
@@ -269,6 +281,15 @@ func (s Service) findAccountsByQuery(ctx context.Context, query string) ([]strin
|
||||
|
||||
// GetAccount implements the AccountsServiceHandler interface
|
||||
func (s Service) GetAccount(ctx context.Context, in *proto.GetAccountRequest, out *proto.Account) (err error) {
|
||||
var span trace.Span
|
||||
|
||||
ctx, span = accTracing.TraceProvider.Tracer("accounts").Start(ctx, "Accounts.GetAccount")
|
||||
defer span.End()
|
||||
|
||||
span.SetAttributes(
|
||||
attribute.KeyValue{Key: "account_id", Value: attribute.StringValue(in.Id)},
|
||||
)
|
||||
|
||||
hasSelf := s.hasSelfManagementPermissions(ctx)
|
||||
hasManagement := s.hasAccountManagementPermissions(ctx)
|
||||
if !hasSelf && !hasManagement {
|
||||
@@ -317,6 +338,15 @@ func (s Service) GetAccount(ctx context.Context, in *proto.GetAccountRequest, ou
|
||||
|
||||
// CreateAccount implements the AccountsServiceHandler interface
|
||||
func (s Service) CreateAccount(ctx context.Context, in *proto.CreateAccountRequest, out *proto.Account) (err error) {
|
||||
var span trace.Span
|
||||
|
||||
ctx, span = accTracing.TraceProvider.Tracer("accounts").Start(ctx, "Accounts.CreateAccount")
|
||||
defer span.End()
|
||||
|
||||
span.SetAttributes(
|
||||
attribute.KeyValue{Key: "account", Value: attribute.StringValue(in.Account.String())},
|
||||
)
|
||||
|
||||
if !s.hasAccountManagementPermissions(ctx) {
|
||||
return merrors.Forbidden(s.id, "no permission for CreateAccount")
|
||||
}
|
||||
@@ -449,6 +479,15 @@ func (s Service) rollbackCreateAccount(ctx context.Context, acc *proto.Account)
|
||||
// read only fields are ignored
|
||||
// TODO how can we unset specific values? using the update mask
|
||||
func (s Service) UpdateAccount(ctx context.Context, in *proto.UpdateAccountRequest, out *proto.Account) (err error) {
|
||||
var span trace.Span
|
||||
|
||||
ctx, span = accTracing.TraceProvider.Tracer("accounts").Start(ctx, "Accounts.UpdateAccount")
|
||||
defer span.End()
|
||||
|
||||
span.SetAttributes(
|
||||
attribute.KeyValue{Key: "account", Value: attribute.StringValue(in.Account.String())},
|
||||
)
|
||||
|
||||
hasSelf := s.hasSelfManagementPermissions(ctx)
|
||||
hasManagement := s.hasAccountManagementPermissions(ctx)
|
||||
if !hasSelf && !hasManagement {
|
||||
@@ -615,6 +654,11 @@ var updatableAccountPaths = map[string]struct{}{
|
||||
|
||||
// DeleteAccount implements the AccountsServiceHandler interface
|
||||
func (s Service) DeleteAccount(ctx context.Context, in *proto.DeleteAccountRequest, out *empty.Empty) (err error) {
|
||||
var span trace.Span
|
||||
|
||||
ctx, span = accTracing.TraceProvider.Tracer("accounts").Start(ctx, "Accounts.DeleteAccount")
|
||||
defer span.End()
|
||||
|
||||
if !s.hasAccountManagementPermissions(ctx) {
|
||||
return merrors.Forbidden(s.id, "no permission for DeleteAccount")
|
||||
}
|
||||
|
||||
@@ -1,76 +0,0 @@
|
||||
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)
|
||||
}
|
||||
@@ -16,6 +16,7 @@ import (
|
||||
user "github.com/cs3org/go-cs3apis/cs3/identity/user/v1beta1"
|
||||
v1beta11 "github.com/cs3org/go-cs3apis/cs3/rpc/v1beta1"
|
||||
provider "github.com/cs3org/go-cs3apis/cs3/storage/provider/v1beta1"
|
||||
revactx "github.com/cs3org/reva/pkg/ctx"
|
||||
"github.com/cs3org/reva/pkg/rgrpc/todo/pool"
|
||||
"github.com/cs3org/reva/pkg/token"
|
||||
"github.com/cs3org/reva/pkg/token/manager/jwt"
|
||||
@@ -67,7 +68,7 @@ func (r CS3Repo) WriteAccount(ctx context.Context, a *proto.Account) (err error)
|
||||
return err
|
||||
}
|
||||
|
||||
ctx = metadata.AppendToOutgoingContext(ctx, token.TokenHeader, t)
|
||||
ctx = metadata.AppendToOutgoingContext(ctx, revactx.TokenHeader, t)
|
||||
if err := r.makeRootDirIfNotExist(ctx, accountsFolder); err != nil {
|
||||
return err
|
||||
}
|
||||
@@ -104,7 +105,7 @@ func (r CS3Repo) LoadAccounts(ctx context.Context, a *[]*proto.Account) (err err
|
||||
return err
|
||||
}
|
||||
|
||||
ctx = metadata.AppendToOutgoingContext(ctx, token.TokenHeader, t)
|
||||
ctx = metadata.AppendToOutgoingContext(ctx, revactx.TokenHeader, t)
|
||||
res, err := r.storageProvider.ListContainer(ctx, &provider.ListContainerRequest{
|
||||
Ref: &provider.Reference{
|
||||
Path: path.Join("/meta", accountsFolder),
|
||||
@@ -154,7 +155,7 @@ func (r CS3Repo) DeleteAccount(ctx context.Context, id string) (err error) {
|
||||
return err
|
||||
}
|
||||
|
||||
ctx = metadata.AppendToOutgoingContext(ctx, token.TokenHeader, t)
|
||||
ctx = metadata.AppendToOutgoingContext(ctx, revactx.TokenHeader, t)
|
||||
|
||||
resp, err := r.storageProvider.Delete(ctx, &provider.DeleteRequest{
|
||||
Ref: &provider.Reference{
|
||||
@@ -181,7 +182,7 @@ func (r CS3Repo) WriteGroup(ctx context.Context, g *proto.Group) (err error) {
|
||||
return err
|
||||
}
|
||||
|
||||
ctx = metadata.AppendToOutgoingContext(ctx, token.TokenHeader, t)
|
||||
ctx = metadata.AppendToOutgoingContext(ctx, revactx.TokenHeader, t)
|
||||
if err := r.makeRootDirIfNotExist(ctx, groupsFolder); err != nil {
|
||||
return err
|
||||
}
|
||||
@@ -218,7 +219,7 @@ func (r CS3Repo) LoadGroups(ctx context.Context, g *[]*proto.Group) (err error)
|
||||
return err
|
||||
}
|
||||
|
||||
ctx = metadata.AppendToOutgoingContext(ctx, token.TokenHeader, t)
|
||||
ctx = metadata.AppendToOutgoingContext(ctx, revactx.TokenHeader, t)
|
||||
res, err := r.storageProvider.ListContainer(ctx, &provider.ListContainerRequest{
|
||||
Ref: &provider.Reference{
|
||||
Path: path.Join("/meta", groupsFolder),
|
||||
@@ -268,7 +269,7 @@ func (r CS3Repo) DeleteGroup(ctx context.Context, id string) (err error) {
|
||||
return err
|
||||
}
|
||||
|
||||
ctx = metadata.AppendToOutgoingContext(ctx, token.TokenHeader, t)
|
||||
ctx = metadata.AppendToOutgoingContext(ctx, revactx.TokenHeader, t)
|
||||
|
||||
resp, err := r.storageProvider.Delete(ctx, &provider.DeleteRequest{
|
||||
Ref: &provider.Reference{
|
||||
@@ -302,7 +303,7 @@ func AuthenticateCS3(ctx context.Context, su config.ServiceUser, tm token.Manage
|
||||
UidNumber: su.UID,
|
||||
GidNumber: su.GID,
|
||||
}
|
||||
s, err := scope.GetOwnerScope()
|
||||
s, err := scope.AddOwnerScope(nil)
|
||||
if err != nil {
|
||||
return
|
||||
}
|
||||
@@ -371,7 +372,7 @@ func (d dataProviderClient) put(url string, body io.Reader, token string) (*http
|
||||
return nil, err
|
||||
}
|
||||
|
||||
req.Header.Add("x-access-token", token)
|
||||
req.Header.Add(revactx.TokenHeader, token)
|
||||
return d.client.Do(req)
|
||||
}
|
||||
|
||||
@@ -381,6 +382,6 @@ func (d dataProviderClient) get(url string, token string) (*http.Response, error
|
||||
return nil, err
|
||||
}
|
||||
|
||||
req.Header.Add("x-access-token", token)
|
||||
req.Header.Add(revactx.TokenHeader, token)
|
||||
return d.client.Do(req)
|
||||
}
|
||||
@@ -1,90 +1,23 @@
|
||||
package tracing
|
||||
|
||||
import (
|
||||
"time"
|
||||
|
||||
"contrib.go.opencensus.io/exporter/jaeger"
|
||||
"contrib.go.opencensus.io/exporter/ocagent"
|
||||
"contrib.go.opencensus.io/exporter/zipkin"
|
||||
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/ocis-pkg/log"
|
||||
"go.opencensus.io/stats/view"
|
||||
"go.opencensus.io/trace"
|
||||
pkgtrace "github.com/owncloud/ocis/ocis-pkg/tracing"
|
||||
"go.opentelemetry.io/otel/trace"
|
||||
)
|
||||
|
||||
func Configure(cfg *config.Config, logger log.Logger) error {
|
||||
var (
|
||||
// TraceProvider is the global trace provider for the proxy service.
|
||||
TraceProvider = trace.NewNoopTracerProvider()
|
||||
)
|
||||
|
||||
func Configure(cfg *config.Config) error {
|
||||
var err error
|
||||
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")
|
||||
if TraceProvider, err = pkgtrace.GetTraceProvider(cfg.Tracing.Endpoint, cfg.Tracing.Collector, "accounts", cfg.Tracing.Type); err != nil {
|
||||
return err
|
||||
}
|
||||
trace.ApplyConfig(
|
||||
trace.Config{
|
||||
DefaultSampler: trace.AlwaysSample(),
|
||||
},
|
||||
)
|
||||
} else {
|
||||
logger.Debug().
|
||||
Msg("Tracing is not enabled")
|
||||
}
|
||||
|
||||
return nil
|
||||
}
|
||||
@@ -1,6 +1,6 @@
|
||||
const assert = require('assert')
|
||||
const { client } = require('nightwatch-api')
|
||||
const { Given, When, Then } = require('cucumber')
|
||||
const { Given, When, Then } = require('@cucumber/cucumber')
|
||||
|
||||
When('the user browses to the accounts page', function () {
|
||||
return client.page.accountsPage().navigateAndWaitUntilMounted()
|
||||
|
||||
+707
-308
File diff suppressed because it is too large.
Load diff
@@ -0,0 +1,5 @@
|
||||
Enhancement: Proxy: Add claims policy selector
|
||||
|
||||
Using the proxy config file, it is now possible to let let the IdP determine the routing policy by sending an `ocis.routing.policy` claim. Its value will be used to determine the set of routes for the logged in user.
|
||||
|
||||
https://github.com/owncloud/ocis/pull/2248
|
||||
@@ -0,0 +1,7 @@
|
||||
Bugfix: Improve IDP Login Accessibility
|
||||
|
||||
We have addressed the feedback from the `a11y` audit and improved
|
||||
the IDP login screen accordingly.
|
||||
|
||||
https://github.com/owncloud/web/issues/5376
|
||||
https://github.com/owncloud/web/issues/5377
|
||||
@@ -0,0 +1,3 @@
|
||||
Enhancement: Add ocs cache warmup config and warn on protobuf ns conflicts
|
||||
|
||||
https://github.com/owncloud/ocis/pull/2328
|
||||
@@ -0,0 +1,6 @@
|
||||
Bugfix: forward basic auth to OpenID connect token authentication endpoint
|
||||
|
||||
When using `PROXY_ENABLE_BASIC_AUTH=true` we now forward request to the idp instead of trying to authenticate the request ourself.
|
||||
|
||||
https://github.com/owncloud/ocis/issues/2095
|
||||
https://github.com/owncloud/ocis/issues/2094
|
||||
@@ -0,0 +1,8 @@
|
||||
Bugfix: log all requests in the proxy access log
|
||||
|
||||
We now use a dedicated middleware to log all requests, regardless of routing selector outcome.
|
||||
While the log now includes the remote address, the selected routing policy is only logged when log level
|
||||
is set to debug because the request context cannot be changed in the `directorSelectionDirector`, as per
|
||||
the `ReverseProxy.Director` documentation.
|
||||
|
||||
https://github.com/owncloud/ocis/pull/2301
|
||||
@@ -0,0 +1,5 @@
|
||||
Enhancement: Refactor graph API
|
||||
|
||||
We refactored the `/graph/v1.0/` endpoint which now relies on the internal acces token fer authentication, getting rid of any LDAP or OIDC code to authenticate requests. This allows using the graph api when using basic auth or any other auth mechanism provided by the CS3 auth providers / reva gateway / ocis proxy.
|
||||
|
||||
https://github.com/owncloud/ocis/pull/2277
|
||||
@@ -0,0 +1,10 @@
|
||||
Bugfix: update glauth to 20210729125545-b9aecdfcac31
|
||||
|
||||
* Fixes the backend config not being passed correctly in ocis
|
||||
* Fixes a mutex being copied, leading to concurrent writes
|
||||
* Fixes UTF8 chars in filters
|
||||
* Fixes case insensitive strings
|
||||
|
||||
https://github.com/owncloud/ocis/pull/2336
|
||||
https://github.com/glauth/glauth/pull/198
|
||||
https://github.com/glauth/glauth/pull/194
|
||||
@@ -0,0 +1,50 @@
|
||||
Enhancement: update REVA
|
||||
|
||||
Update REVA from v1.10.1-0.20210730095301-fcb7a30a44a6 to v1.11.1-0.20210809134415-3fe79c870fb5
|
||||
* Fix cs3org/reva#1978: Fix owner type is optional
|
||||
* Fix cs3org/reva#1965: fix value of file_target in shares
|
||||
* Fix cs3org/reva#1960: fix updating shares in the memory share manager
|
||||
* Fix cs3org/reva#1956: fix trashbin listing with depth 0
|
||||
* Fix cs3org/reva#1957: fix etag propagation on deletes
|
||||
* Enh cs3org/reva#1861: [WIP] Runtime plugins
|
||||
* Fix cs3org/reva#1954: fix response format of the sharees API
|
||||
* Fix cs3org/reva#1819: Remove notifications key from ocs response
|
||||
* Enh cs3org/reva#1946: Add a share manager that connects to oc10 databases
|
||||
* Fix cs3org/reva#1899: Fix chunked uploads for new versions
|
||||
* Fix cs3org/reva#1906: Fix copy over existing resource
|
||||
* Fix cs3org/reva#1891: Delete Shared Resources as Receiver
|
||||
* Fix cs3org/reva#1907: Error when creating folder with existing name
|
||||
* Fix cs3org/reva#1937: Do not overwrite more specific matches when finding storage providers
|
||||
* Fix cs3org/reva#1939: Fix the share jail permissions in the decomposedfs
|
||||
* Fix cs3org/reva#1932: Numerous fixes to the owncloudsql storage driver
|
||||
* Fix cs3org/reva#1912: Fix response when listing versions of another user
|
||||
* Fix cs3org/reva#1910: Get user groups recursively in the cbox rest user driver
|
||||
* Fix cs3org/reva#1904: Set Content-Length to 0 when swallowing body in the datagateway
|
||||
* Fix cs3org/reva#1911: Fix version order in propfind responses
|
||||
* Fix cs3org/reva#1926: Trash Bin in oCIS Storage Operations
|
||||
* Fix cs3org/reva#1901: Fix response code when folder doesnt exist on upload
|
||||
* Enh cs3org/reva#1785: Extend app registry with AddProvider method and mimetype filters
|
||||
* Enh cs3org/reva#1938: Add methods to get and put context values
|
||||
* Enh cs3org/reva#1798: Add support for a deny-all permission on references
|
||||
* Enh cs3org/reva#1916: Generate updated protobuf bindings for EOS GRPC
|
||||
* Enh cs3org/reva#1887: Add "a" and "l" filter for grappa queries
|
||||
* Enh cs3org/reva#1919: Run gofmt before building
|
||||
* Enh cs3org/reva#1927: Implement RollbackToVersion for eosgrpc (needs a newer EOS MGM)
|
||||
* Enh cs3org/reva#1944: Implement listing supported mime types in app registry
|
||||
* Enh cs3org/reva#1870: Be defensive about wrongly quoted etags
|
||||
* Enh cs3org/reva#1940: Reduce memory usage when uploading with S3ng storage
|
||||
* Enh cs3org/reva#1888: Refactoring of the webdav code
|
||||
* Enh cs3org/reva#1900: Check for illegal names while uploading or moving files
|
||||
* Enh cs3org/reva#1925: Refactor listing and statting across providers for virtual views
|
||||
* Fix cs3org/reva#1883: Pass directories with trailing slashes to eosclient.GenerateToken
|
||||
* Fix cs3org/reva#1878: Improve the webdav error handling in the trashbin
|
||||
* Fix cs3org/reva#1884: Do not send body on failed range request
|
||||
* Enh cs3org/reva#1744: Add support for lightweight user types
|
||||
* Fix cs3org/reva#1904: Set Content-Length to 0 when swallowing body in the datagateway
|
||||
* Fix cs3org/reva#1899: Bugfix: Fix chunked uploads for new versions
|
||||
* Enh cs3org/reva#1888: Refactoring of the webdav code
|
||||
* Enh cs3org/reva#1887: Add "a" and "l" filter for grappa queries
|
||||
|
||||
https://github.com/owncloud/ocis/pull/2355
|
||||
https://github.com/owncloud/ocis/pull/2295
|
||||
https://github.com/owncloud/ocis/pull/2314
|
||||
@@ -0,0 +1,8 @@
|
||||
Change: Update ownCloud Web to v4.0.0
|
||||
|
||||
Tags: web
|
||||
|
||||
We updated ownCloud Web to v4.0.0. Please refer to the changelog (linked) for details on the web release.
|
||||
|
||||
https://github.com/owncloud/ocis/pull/2353
|
||||
https://github.com/owncloud/web/releases/tag/v4.0.0
|
||||
@@ -0,0 +1,6 @@
|
||||
Enhancement: use only one go.mod file for project dependencies
|
||||
|
||||
We now use one single go.mod file at the root of the repository
|
||||
rather than one per core extension.
|
||||
|
||||
https://github.com/owncloud/ocis/pull/2344
|
||||
@@ -0,0 +1,3 @@
|
||||
Bugfix: Specify primary user type for all accounts
|
||||
|
||||
https://github.com/owncloud/ocis/pull/2364
|
||||
@@ -0,0 +1,7 @@
|
||||
Enhancement: Use non root user for the owncloud/ocis docker image
|
||||
|
||||
The owncloud/ocis docker image now uses a non root user and enables you to set a different user with the docker `--user` parameter. The default user has the UID 1000 is part of a group with the GID 1000.
|
||||
|
||||
This is a breaking change for existing docker deployments. The permission on the files and folders in persistent volumes need to be changed to the UID and GID used for oCIS (default 1000:1000 if not changed by the user).
|
||||
|
||||
https://github.com/owncloud/ocis/pull/2380
|
||||
@@ -0,0 +1,5 @@
|
||||
Enhancement: Replace unmaintained jwt library
|
||||
|
||||
The old library [github.com/dgrijalva/jwt-go](https://github.com/dgrijalva/jwt-go) is unmaintained and was replaced by the community maintained fork [github.com/golang-jwt/jwt](https://github.com/golang-jwt/jwt).
|
||||
|
||||
https://github.com/owncloud/ocis/pull/2386
|
||||
@@ -0,0 +1,5 @@
|
||||
Enhancement: Update bleve to version 2.1.0
|
||||
|
||||
Updated bleve to the current version.
|
||||
|
||||
https://github.com/owncloud/ocis/pull/2391
|
||||
@@ -0,0 +1,5 @@
|
||||
Enhancement: Update github.com/coreos/go-oidc to v3.0.0
|
||||
|
||||
Updated the github.com/coreos/go-oidc library to the version 3.0.0.
|
||||
|
||||
https://github.com/owncloud/ocis/pull/2393
|
||||
@@ -0,0 +1,22 @@
|
||||
Enhancement: Update reva to v1.12
|
||||
|
||||
* Enhancement cs3org/reva#1803: Introduce new webdav spaces endpoint
|
||||
* Bugfix cs3org/reva#1819: Disable notifications
|
||||
* Enhancement cs3org/reva#1861: Add support for runtime plugins
|
||||
* Bugfix cs3org/reva#1913: Logic to restore files to readonly nodes
|
||||
* Enhancement cs3org/reva#1946: Add share manager that connects to oc10 databases
|
||||
* Bugfix cs3org/reva#1954: Fix response format of the sharees API
|
||||
* Bugfix cs3org/reva#1956: Fix trashbin listing with depth 0
|
||||
* Bugfix cs3org/reva#1957: Fix etag propagation on deletes
|
||||
* Bugfix cs3org/reva#1960: Return the updated share after updating
|
||||
* Bugfix cs3org/reva#1965 cs3org/reva#1967: Fix the file target of user and group shares
|
||||
* Bugfix cs3org/reva#1980: Propagate the etag after restoring a file version
|
||||
* Enhancement cs3org/reva#1984: Replace OpenCensus with OpenTelemetry
|
||||
* Bugfix cs3org/reva#1985: Add quota stubs
|
||||
* Bugfix cs3org/reva#1987: Fix windows build
|
||||
* Bugfix cs3org/reva#1990: Increase oc10 compatibility of owncloudsql
|
||||
* Bugfix cs3org/reva#1992: Check if symlink exists instead of spamming the console
|
||||
* Bugfix cs3org/reva#1993: fix owncloudsql GetMD
|
||||
|
||||
|
||||
https://github.com/owncloud/ocis/pull/2423
|
||||
@@ -0,0 +1,8 @@
|
||||
Change: Update ownCloud Web to v4.1.0
|
||||
|
||||
Tags: web
|
||||
|
||||
We updated ownCloud Web to v4.1.0. Please refer to the changelog (linked) for details on the web release.
|
||||
|
||||
https://github.com/owncloud/ocis/pull/2426
|
||||
https://github.com/owncloud/web/releases/tag/v4.1.0
|
||||
@@ -0,0 +1,5 @@
|
||||
Bugfix: Fix naming of the user- and groupprovider services
|
||||
|
||||
The services are called "storage-userprovider" and "storage-groupprovider". The 'ocis help' output was misleading.
|
||||
|
||||
https://github.com/owncloud/ocis/pull/2388
|
||||
@@ -0,0 +1,6 @@
|
||||
Enhancement: Add app provider and app provider registry
|
||||
|
||||
We added the app provider and app provider registry. Now the CS3org WOPI server can be registered and OpenInApp requests can be done.
|
||||
|
||||
https://github.com/owncloud/ocis/pull/2204
|
||||
https://github.com/cs3org/reva/pull/1785
|
||||
@@ -0,0 +1,5 @@
|
||||
Enhancement: add the create space permission
|
||||
|
||||
In preparation for the upcoming spaces features a `Create Space` permission was added.
|
||||
|
||||
https://github.com/owncloud/ocis/pull/2461
|
||||
@@ -0,0 +1,9 @@
|
||||
Change: Remove OnlyOffice extension
|
||||
|
||||
Tags: OnlyOffice
|
||||
|
||||
We've removed the OnlyOffice extension in oCIS.
|
||||
OnlyOffice has their own web extension for OC10 backend now with [a dedicated guide](https://owncloud.dev/clients/web/deployments/oc10-app/#onlyoffice).
|
||||
In oCIS, we will follow up with a guide on how to start a WOPI server providing OnlyOffice soon.
|
||||
|
||||
https://github.com/owncloud/ocis/pull/2433
|
||||
@@ -0,0 +1,9 @@
|
||||
Change: Remove OnlyOffice extension
|
||||
|
||||
Tags: OnlyOffice
|
||||
|
||||
We've removed the OnlyOffice extension in oCIS.
|
||||
OnlyOffice has their own web extension for OC10 backend now with [a dedicated guide](https://owncloud.dev/clients/web/deployments/oc10-app/#onlyoffice).
|
||||
In oCIS, we will follow up with a guide on how to start a WOPI server providing OnlyOffice soon.
|
||||
|
||||
https://github.com/owncloud/ocis/pull/2433
|
||||
@@ -0,0 +1,5 @@
|
||||
Bugfix: Remove non working proxy route and fix cs3 users example
|
||||
|
||||
We removed a non working route from the proxy default configuration and fixed the cs3 users deployment example since it still used the accounts service. It now only uses the configured LDAP.
|
||||
|
||||
https://github.com/owncloud/ocis/pull/2474
|
||||
@@ -0,0 +1,5 @@
|
||||
Bugfix: Set English as default language in the dropdown in the settings page
|
||||
|
||||
The language dropdown didn't have a default language selected, and it was showing an empty value. Now it shows English instead.
|
||||
|
||||
https://github.com/owncloud/ocis/pull/2465
|
||||
@@ -0,0 +1,5 @@
|
||||
Enhancement: add set space quota permission
|
||||
|
||||
In preparation for the upcoming spaces features a `SetSpaceQuota` permission was added.
|
||||
|
||||
https://github.com/owncloud/ocis/pull/2459
|
||||
@@ -0,0 +1,10 @@
|
||||
Enhancement: Create a Space using the Graph API
|
||||
|
||||
Spaces can now be created on `POST /drives/{drive-name}`. Only users with the `create-space` permissions can perform this operation.
|
||||
|
||||
Allowed body form values are:
|
||||
|
||||
- `quota` (bytes) maximum amount of bytes stored in the space.
|
||||
- `maxQuotaFiles` (integer) maximum amount of files supported by the space.
|
||||
|
||||
https://github.com/owncloud/ocis/pull/2471
|
||||
@@ -0,0 +1,5 @@
|
||||
Enhancement: Update go-chi/chi to version 5.0.3
|
||||
|
||||
Updated go-chi/chi to the lastest release
|
||||
|
||||
https://github.com/owncloud/ocis/pull/2429
|
||||
@@ -0,0 +1,5 @@
|
||||
Enhancement: Upgrade go micro to v3.6.0
|
||||
|
||||
Go micro and all go micro plugins are now on v3.6.0
|
||||
|
||||
https://github.com/owncloud/ocis/pull/2451
|
||||
@@ -0,0 +1,16 @@
|
||||
Enhancement: Update reva to v1.13.0
|
||||
|
||||
This update includes:
|
||||
|
||||
* Bugfix [cs3org/reva#2054](https://github.com/cs3org/reva/pull/2054): Fix the response after deleting a share
|
||||
* Bugfix [cs3org/reva#2026](https://github.com/cs3org/reva/pull/2026): Fix moving of a shared file
|
||||
* Bugfix [cs3org/reva#1605](https://github.com/cs3org/reva/pull/1605): Allow to expose full paths in OCS API
|
||||
* Bugfix [cs3org/reva#2033](https://github.com/cs3org/reva/pull/2033): Fix the storage id of shares
|
||||
* Bugfix [cs3org/reva#1991](https://github.com/cs3org/reva/pull/1991): Remove share references when declining shares
|
||||
* Enhancement [cs3org/reva#1994](https://github.com/cs3org/reva/pull/1994): Add owncloudsql driver for the userprovider
|
||||
* Enhancement [cs3org/reva#2065](https://github.com/cs3org/reva/pull/2065): New sharing role Manager
|
||||
* Enhancement [cs3org/reva#2015](https://github.com/cs3org/reva/pull/2015): Add spaces to the list of capabilities
|
||||
* Enhancement [cs3org/reva#2041](https://github.com/cs3org/reva/pull/2041): Create operations for Spaces
|
||||
* Enhancement [cs3org/reva#2029](https://github.com/cs3org/reva/pull/2029): Tracing agent configuration
|
||||
|
||||
https://github.com/owncloud/ocis/pull/2477
|
||||
@@ -0,0 +1,8 @@
|
||||
Change: Update ownCloud Web to v4.2.0
|
||||
|
||||
Tags: web
|
||||
|
||||
We updated ownCloud Web to v4.2.0. Please refer to the changelog (linked) for details on the web release.
|
||||
|
||||
https://github.com/owncloud/ocis/pull/2501
|
||||
https://github.com/owncloud/web/releases/tag/v4.2.0
|
||||
@@ -17,6 +17,16 @@
|
||||
- "*.ocis-cs3-users.latest.owncloud.works"
|
||||
|
||||
vars:
|
||||
ssh_authorized_keys:
|
||||
- https://github.com/butonic.keys
|
||||
- https://github.com/C0rby.keys
|
||||
- https://github.com/fschade.keys
|
||||
- https://github.com/kulmann.keys
|
||||
- https://github.com/micbar.keys
|
||||
- https://github.com/pascalwengerter.keys
|
||||
- https://github.com/paulcod3.keys
|
||||
- https://github.com/refs.keys
|
||||
- https://github.com/wkloucek.keys
|
||||
docker_compose_projects:
|
||||
- name: ocis
|
||||
git_url: https://github.com/owncloud/ocis.git
|
||||
|
||||
@@ -17,6 +17,16 @@
|
||||
- "*.ocis-cs3-users.released.owncloud.works"
|
||||
|
||||
vars:
|
||||
ssh_authorized_keys:
|
||||
- https://github.com/butonic.keys
|
||||
- https://github.com/C0rby.keys
|
||||
- https://github.com/fschade.keys
|
||||
- https://github.com/kulmann.keys
|
||||
- https://github.com/micbar.keys
|
||||
- https://github.com/pascalwengerter.keys
|
||||
- https://github.com/paulcod3.keys
|
||||
- https://github.com/refs.keys
|
||||
- https://github.com/wkloucek.keys
|
||||
docker_compose_projects:
|
||||
- name: ocis
|
||||
git_url: https://github.com/owncloud/ocis.git
|
||||
|
||||
@@ -17,6 +17,16 @@
|
||||
- "*.ocis-s3.latest.owncloud.works"
|
||||
|
||||
vars:
|
||||
ssh_authorized_keys:
|
||||
- https://github.com/butonic.keys
|
||||
- https://github.com/C0rby.keys
|
||||
- https://github.com/fschade.keys
|
||||
- https://github.com/kulmann.keys
|
||||
- https://github.com/micbar.keys
|
||||
- https://github.com/pascalwengerter.keys
|
||||
- https://github.com/paulcod3.keys
|
||||
- https://github.com/refs.keys
|
||||
- https://github.com/wkloucek.keys
|
||||
docker_compose_projects:
|
||||
- name: ocis
|
||||
git_url: https://github.com/owncloud/ocis.git
|
||||
|
||||
@@ -17,6 +17,16 @@
|
||||
- "*.ocis-keycloak.latest.owncloud.works"
|
||||
|
||||
vars:
|
||||
ssh_authorized_keys:
|
||||
- https://github.com/butonic.keys
|
||||
- https://github.com/C0rby.keys
|
||||
- https://github.com/fschade.keys
|
||||
- https://github.com/kulmann.keys
|
||||
- https://github.com/micbar.keys
|
||||
- https://github.com/pascalwengerter.keys
|
||||
- https://github.com/paulcod3.keys
|
||||
- https://github.com/refs.keys
|
||||
- https://github.com/wkloucek.keys
|
||||
docker_compose_projects:
|
||||
- name: ocis
|
||||
git_url: https://github.com/owncloud/ocis.git
|
||||
|
||||
@@ -17,6 +17,16 @@
|
||||
- "*.ocis-keycloak.released.owncloud.works"
|
||||
|
||||
vars:
|
||||
ssh_authorized_keys:
|
||||
- https://github.com/butonic.keys
|
||||
- https://github.com/C0rby.keys
|
||||
- https://github.com/fschade.keys
|
||||
- https://github.com/kulmann.keys
|
||||
- https://github.com/micbar.keys
|
||||
- https://github.com/pascalwengerter.keys
|
||||
- https://github.com/paulcod3.keys
|
||||
- https://github.com/refs.keys
|
||||
- https://github.com/wkloucek.keys
|
||||
docker_compose_projects:
|
||||
- name: ocis
|
||||
git_url: https://github.com/owncloud/ocis.git
|
||||
|
||||
@@ -17,6 +17,16 @@
|
||||
- "*.ocis-hello.latest.owncloud.works"
|
||||
|
||||
vars:
|
||||
ssh_authorized_keys:
|
||||
- https://github.com/butonic.keys
|
||||
- https://github.com/C0rby.keys
|
||||
- https://github.com/fschade.keys
|
||||
- https://github.com/kulmann.keys
|
||||
- https://github.com/micbar.keys
|
||||
- https://github.com/pascalwengerter.keys
|
||||
- https://github.com/paulcod3.keys
|
||||
- https://github.com/refs.keys
|
||||
- https://github.com/wkloucek.keys
|
||||
docker_compose_projects:
|
||||
- name: ocis
|
||||
git_url: https://github.com/owncloud/ocis.git
|
||||
|
||||
@@ -17,6 +17,16 @@
|
||||
- "*.ocis-traefik.latest.owncloud.works"
|
||||
|
||||
vars:
|
||||
ssh_authorized_keys:
|
||||
- https://github.com/butonic.keys
|
||||
- https://github.com/C0rby.keys
|
||||
- https://github.com/fschade.keys
|
||||
- https://github.com/kulmann.keys
|
||||
- https://github.com/micbar.keys
|
||||
- https://github.com/pascalwengerter.keys
|
||||
- https://github.com/paulcod3.keys
|
||||
- https://github.com/refs.keys
|
||||
- https://github.com/wkloucek.keys
|
||||
docker_compose_projects:
|
||||
- name: ocis
|
||||
git_url: https://github.com/owncloud/ocis.git
|
||||
|
||||
@@ -17,6 +17,16 @@
|
||||
- "*.ocis-traefik.released.owncloud.works"
|
||||
|
||||
vars:
|
||||
ssh_authorized_keys:
|
||||
- https://github.com/butonic.keys
|
||||
- https://github.com/C0rby.keys
|
||||
- https://github.com/fschade.keys
|
||||
- https://github.com/kulmann.keys
|
||||
- https://github.com/micbar.keys
|
||||
- https://github.com/pascalwengerter.keys
|
||||
- https://github.com/paulcod3.keys
|
||||
- https://github.com/refs.keys
|
||||
- https://github.com/wkloucek.keys
|
||||
docker_compose_projects:
|
||||
- name: ocis
|
||||
git_url: https://github.com/owncloud/ocis.git
|
||||
|
||||
@@ -17,6 +17,16 @@
|
||||
- "*.ocis-wopi.latest.owncloud.works"
|
||||
|
||||
vars:
|
||||
ssh_authorized_keys:
|
||||
- https://github.com/butonic.keys
|
||||
- https://github.com/C0rby.keys
|
||||
- https://github.com/fschade.keys
|
||||
- https://github.com/kulmann.keys
|
||||
- https://github.com/micbar.keys
|
||||
- https://github.com/pascalwengerter.keys
|
||||
- https://github.com/paulcod3.keys
|
||||
- https://github.com/refs.keys
|
||||
- https://github.com/wkloucek.keys
|
||||
docker_compose_projects:
|
||||
- name: ocis
|
||||
git_url: https://github.com/owncloud/ocis.git
|
||||
|
||||
@@ -17,6 +17,16 @@
|
||||
- "*.ocis-wopi.released.owncloud.works"
|
||||
|
||||
vars:
|
||||
ssh_authorized_keys:
|
||||
- https://github.com/butonic.keys
|
||||
- https://github.com/C0rby.keys
|
||||
- https://github.com/fschade.keys
|
||||
- https://github.com/kulmann.keys
|
||||
- https://github.com/micbar.keys
|
||||
- https://github.com/pascalwengerter.keys
|
||||
- https://github.com/paulcod3.keys
|
||||
- https://github.com/refs.keys
|
||||
- https://github.com/wkloucek.keys
|
||||
docker_compose_projects:
|
||||
- name: ocis
|
||||
git_url: https://github.com/owncloud/ocis.git
|
||||
|
||||
@@ -19,6 +19,8 @@ OCIS_DOCKER_TAG=
|
||||
OCIS_DOMAIN=
|
||||
# JWT secret which is used for the storage provider. Must be changed in order to have a secure oCIS. Defaults to "Pive-Fumkiu4"
|
||||
OCIS_JWT_SECRET=
|
||||
# JWT secret which is used for uploads to create transfer tokens. Must be changed in order to have a secure oCIS. Defaults to "replace-me-with-a-transfer-secret"
|
||||
OCIS_TRANSFER_SECRET=
|
||||
|
||||
|
||||
### LDAP server settings ###
|
||||
|
||||
@@ -13,7 +13,7 @@ objectClass: top
|
||||
uid: einstein
|
||||
givenName: Albert
|
||||
sn: Einstein
|
||||
cn: Albert Einstein
|
||||
cn: einstein
|
||||
displayName: Albert Einstein
|
||||
description: A German-born theoretical physicist who developed the theory of relativity, one of the two pillars of modern physics (alongside quantum mechanics).
|
||||
mail: einstein@example.org
|
||||
@@ -33,7 +33,7 @@ objectClass: top
|
||||
uid: marie
|
||||
givenName: Marie
|
||||
sn: Curie
|
||||
cn: Marie Curie
|
||||
cn: marie
|
||||
displayName: Marie Skłodowska Curie
|
||||
description: A Polish and naturalized-French physicist and chemist who conducted pioneering research on radioactivity.
|
||||
mail: marie@example.org
|
||||
@@ -53,7 +53,7 @@ objectClass: top
|
||||
uid: richard
|
||||
givenName: Richard
|
||||
sn: Feynman
|
||||
cn: Richard Feynman
|
||||
cn: richard
|
||||
displayName: Richard Phillips Feynman
|
||||
description: An American theoretical physicist, known for his work in the path integral formulation of quantum mechanics, the theory of quantum electrodynamics, the physics of the superfluidity of supercooled liquid helium, as well as his work in particle physics for which he proposed the parton model.
|
||||
mail: richard@example.org
|
||||
|
||||
@@ -0,0 +1,22 @@
|
||||
#!/bin/sh
|
||||
|
||||
set -e
|
||||
|
||||
mkdir -p /var/tmp/ocis/.config/
|
||||
cp /config/proxy-config.json /var/tmp/ocis/.config/proxy-config.json
|
||||
cp /config/web-config.dist.json /var/tmp/ocis/.config/web-config.json
|
||||
sed -i 's/ocis.owncloud.test/'${OCIS_DOMAIN:-ocis.owncloud.test}'/g' /var/tmp/ocis/.config/web-config.json
|
||||
|
||||
ocis server&
|
||||
sleep 10
|
||||
|
||||
# stop builtin accounts since we use LDAP only
|
||||
ocis kill accounts
|
||||
# stop builtin LDAP server since we use external LDAP only
|
||||
ocis kill glauth
|
||||
|
||||
ocis kill proxy
|
||||
sleep 10
|
||||
ocis proxy server # workaround for loading proxy configuration
|
||||
|
||||
wait # wait for oCIS to exit
|
||||
@@ -29,7 +29,7 @@
|
||||
},
|
||||
{
|
||||
"type": "regex",
|
||||
"endpoint": "/ocs/v[12].php/cloud/(users?|groups)",
|
||||
"endpoint": "/ocs/v[12].php/cloud/user/signing-key",
|
||||
"backend": "http://localhost:9110"
|
||||
},
|
||||
{
|
||||
@@ -73,14 +73,6 @@
|
||||
"endpoint": "/graph-explorer/",
|
||||
"backend": "http://localhost:9135"
|
||||
},
|
||||
{
|
||||
"endpoint": "/api/v0/accounts",
|
||||
"backend": "http://localhost:9181"
|
||||
},
|
||||
{
|
||||
"endpoint": "/accounts.js",
|
||||
"backend": "http://localhost:9181"
|
||||
},
|
||||
{
|
||||
"endpoint": "/api/v0/settings",
|
||||
"backend": "http://localhost:9190"
|
||||
@@ -88,10 +80,6 @@
|
||||
{
|
||||
"endpoint": "/settings.js",
|
||||
"backend": "http://localhost:9190"
|
||||
},
|
||||
{
|
||||
"endpoint": "/onlyoffice.js",
|
||||
"backend": "http://localhost:9220"
|
||||
}
|
||||
]
|
||||
}
|
||||
|
||||
@@ -0,0 +1,22 @@
|
||||
{
|
||||
"server": "https://ocis.owncloud.test",
|
||||
"theme": "owncloud",
|
||||
"version": "0.1.0",
|
||||
"openIdConnect": {
|
||||
"metadata_url": "https://ocis.owncloud.test/.well-known/openid-configuration",
|
||||
"authority": "https://ocis.owncloud.test",
|
||||
"client_id": "web",
|
||||
"response_type": "code",
|
||||
"scope": "openid profile email"
|
||||
},
|
||||
"apps": ["files"],
|
||||
"external_apps": [
|
||||
{
|
||||
"id": "settings",
|
||||
"path": "/settings.js"
|
||||
}
|
||||
],
|
||||
"options": {
|
||||
"hideSearchBar": true
|
||||
}
|
||||
}
|
||||
@@ -3,19 +3,25 @@ version: "3.7"
|
||||
|
||||
services:
|
||||
traefik:
|
||||
image: traefik:v2.4
|
||||
image: traefik:v2.5
|
||||
networks:
|
||||
ocis-net:
|
||||
aliases:
|
||||
- ${OCIS_DOMAIN:-ocis.owncloud.test}
|
||||
command:
|
||||
#- "--log.level=DEBUG"
|
||||
- "--log.level=${TRAEFIK_LOG_LEVEL:-ERROR}"
|
||||
# letsencrypt configuration
|
||||
- "--certificatesResolvers.http.acme.email=${TRAEFIK_ACME_MAIL:-example@example.org}"
|
||||
- "--certificatesResolvers.http.acme.storage=/certs/acme.json"
|
||||
- "--certificatesResolvers.http.acme.httpChallenge.entryPoint=http"
|
||||
# enable dasbhoard
|
||||
- "--api.dashboard=true"
|
||||
# define entrypoints
|
||||
- "--entryPoints.http.address=:80"
|
||||
- "--entryPoints.http.http.redirections.entryPoint.to=https"
|
||||
- "--entryPoints.http.http.redirections.entryPoint.scheme=https"
|
||||
- "--entryPoints.https.address=:443"
|
||||
# docker provider (get configuration from container labels)
|
||||
- "--providers.docker.endpoint=unix:///var/run/docker.sock"
|
||||
- "--providers.docker.exposedByDefault=false"
|
||||
ports:
|
||||
@@ -26,17 +32,12 @@ services:
|
||||
- "certs:/certs"
|
||||
labels:
|
||||
- "traefik.enable=${TRAEFIK_DASHBOARD:-false}"
|
||||
- "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"
|
||||
- "traefik.http.routers.traefik.entrypoints=https"
|
||||
- "traefik.http.routers.traefik.rule=Host(`${TRAEFIK_DOMAIN:-traefik.owncloud.test}`)"
|
||||
- "traefik.http.routers.traefik.middlewares=traefik-auth"
|
||||
- "traefik.http.routers.traefik.tls.certresolver=http"
|
||||
- "traefik.http.routers.traefik.service=api@internal"
|
||||
logging:
|
||||
driver: "local"
|
||||
restart: always
|
||||
@@ -47,9 +48,11 @@ services:
|
||||
ocis-net:
|
||||
depends_on:
|
||||
- ldap-server
|
||||
entrypoint:
|
||||
- /bin/sh
|
||||
- /entrypoint-override.sh
|
||||
environment:
|
||||
# CS3 users from ldap specific configuration
|
||||
PROXY_CONFIG_FILE: "/config/proxy-config.json"
|
||||
IDP_LDAP_FILTER: "(&(objectclass=inetOrgPerson)(objectClass=owncloud))"
|
||||
IDP_LDAP_URI: ldap://ldap-server:389
|
||||
IDP_LDAP_BIND_DN: "cn=admin,dc=owncloud,dc=com"
|
||||
@@ -69,6 +72,10 @@ services:
|
||||
STORAGE_LDAP_ATTRIBUTEFILTER: '(&(objectclass=owncloud)({{attr}}={{value}}))'
|
||||
STORAGE_LDAP_FINDFILTER: '(&(objectclass=owncloud)(|(uid={{query}}*)(cn={{query}}*)(displayname={{query}}*)(mail={{query}}*)(description={{query}}*)))'
|
||||
STORAGE_LDAP_GROUPFILTER: '(&(objectclass=groupOfUniqueNames)(objectclass=owncloud)(ownclouduuid={{.OpaqueId}}*))'
|
||||
# web ui
|
||||
WEB_UI_CONFIG: "/var/tmp/ocis/.config/web-config.json"
|
||||
# proxy
|
||||
PROXY_CONFIG_FILE: "/var/tmp/ocis/.config/proxy-config.json"
|
||||
# General oCIS config
|
||||
OCIS_URL: https://${OCIS_DOMAIN:-ocis.owncloud.test}
|
||||
OCIS_LOG_LEVEL: ${OCIS_LOG_LEVEL:-error} # make oCIS less verbose
|
||||
@@ -76,20 +83,18 @@ services:
|
||||
PROXY_TLS: "false" # do not use SSL between Traefik and oCIS
|
||||
# change default secrets
|
||||
OCIS_JWT_SECRET: ${OCIS_JWT_SECRET:-Pive-Fumkiu4}
|
||||
OCIS_TRANSFER_SECRET: ${STORAGE_TRANSFER_SECRET:-replace-me-with-a-transfer-secret}
|
||||
volumes:
|
||||
- ./config/ocis/entrypoint-override.sh:/entrypoint-override.sh
|
||||
- ./config/ocis/web-config.dist.json:/config/web-config.dist.json
|
||||
- ./config/ocis/proxy-config.json:/config/proxy-config.json
|
||||
- ocis-data:/var/tmp/ocis
|
||||
labels:
|
||||
- "traefik.enable=true"
|
||||
- "traefik.http.routers.ocis.entrypoints=http"
|
||||
- "traefik.http.routers.ocis.entrypoints=https"
|
||||
- "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.routers.ocis.tls.certresolver=http"
|
||||
- "traefik.http.routers.ocis.service=ocis"
|
||||
- "traefik.http.services.ocis.loadbalancer.server.port=9200"
|
||||
logging:
|
||||
driver: "local"
|
||||
@@ -125,15 +130,10 @@ services:
|
||||
PHPLDAPADMIN_HTTPS: "false"
|
||||
labels:
|
||||
- "traefik.enable=true"
|
||||
- "traefik.http.routers.ldap-manager.entrypoints=http"
|
||||
- "traefik.http.routers.ldap-manager.entrypoints=https"
|
||||
- "traefik.http.routers.ldap-manager.rule=Host(`${LDAP_MANAGER_DOMAIN:-ldap.owncloud.test}`)"
|
||||
- "traefik.http.middlewares.ldap-manager-https-redirect.redirectscheme.scheme=https"
|
||||
- "traefik.http.routers.ldap-manager.middlewares=ldap-manager-https-redirect"
|
||||
- "traefik.http.routers.ldap-manager-secure.entrypoints=https"
|
||||
- "traefik.http.routers.ldap-manager-secure.rule=Host(`${LDAP_MANAGER_DOMAIN:-ldap.owncloud.test}`)"
|
||||
- "traefik.http.routers.ldap-manager-secure.tls=true"
|
||||
- "traefik.http.routers.ldap-manager-secure.tls.certresolver=http"
|
||||
- "traefik.http.routers.ldap-manager-secure.service=ldap-manager"
|
||||
- "traefik.http.routers.ldap-manager.tls.certresolver=http"
|
||||
- "traefik.http.routers.ldap-manager.service=ldap-manager"
|
||||
- "traefik.http.services.ldap-manager.loadbalancer.server.port=80"
|
||||
logging:
|
||||
driver: "local"
|
||||
|
||||
@@ -23,6 +23,8 @@ IDP_LDAP_BIND_PASSWORD=
|
||||
STORAGE_LDAP_BIND_PASSWORD=
|
||||
# JWT secret which is used for the storage provider. Must be changed in order to have a secure oCIS. Defaults to "Pive-Fumkiu4"
|
||||
OCIS_JWT_SECRET=
|
||||
# JWT secret which is used for uploads to create transfer tokens. Must be changed in order to have a secure oCIS. Defaults to "replace-me-with-a-transfer-secret"
|
||||
OCIS_TRANSFER_SECRET=
|
||||
|
||||
### oCIS Hello settings ###
|
||||
# oCIS Hello version. Defaults to "latest"
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
---
|
||||
document this deployment example in: docs/ocis/deployment/ocis_wopi.md
|
||||
document this deployment example in: docs/ocis/deployment/ocis_hello.md
|
||||
---
|
||||
|
||||
Please refer to [our documentation](https://owncloud.dev/ocis/deployment/ocis_wopi/)
|
||||
Please refer to [our documentation](https://owncloud.dev/ocis/deployment/ocis_hello/)
|
||||
for instructions on how to deploy this scenario.
|
||||
@@ -2,8 +2,10 @@
|
||||
|
||||
set -e
|
||||
|
||||
cp /config/config.dist.json /config/config.json
|
||||
sed -i 's/ocis.owncloud.test/'${OCIS_DOMAIN:-ocis.owncloud.test}'/g' /config/config.json
|
||||
mkdir -p /var/tmp/ocis/.config/
|
||||
cp /config/proxy-config.json /var/tmp/ocis/.config/proxy-config.json
|
||||
cp /config/web-config.dist.json /var/tmp/ocis/.config/web-config.json
|
||||
sed -i 's/ocis.owncloud.test/'${OCIS_DOMAIN:-ocis.owncloud.test}'/g' /var/tmp/ocis/.config/web-config.json
|
||||
|
||||
ocis server&
|
||||
sleep 10
|
||||
|
||||
@@ -89,10 +89,6 @@
|
||||
"endpoint": "/settings.js",
|
||||
"backend": "http://localhost:9190"
|
||||
},
|
||||
{
|
||||
"endpoint": "/onlyoffice.js",
|
||||
"backend": "http://localhost:9220"
|
||||
},
|
||||
{
|
||||
"endpoint": "/api/v0/greet",
|
||||
"backend": "http://ocis-hello:9105"
|
||||
|
||||
File renamed without changes.
@@ -3,19 +3,25 @@ version: "3.7"
|
||||
|
||||
services:
|
||||
traefik:
|
||||
image: traefik:v2.4
|
||||
image: traefik:v2.5
|
||||
networks:
|
||||
ocis-net:
|
||||
aliases:
|
||||
- ${OCIS_DOMAIN:-ocis.owncloud.test}
|
||||
command:
|
||||
#- "--log.level=DEBUG"
|
||||
- "--log.level=${TRAEFIK_LOG_LEVEL:-ERROR}"
|
||||
# letsencrypt configuration
|
||||
- "--certificatesResolvers.http.acme.email=${TRAEFIK_ACME_MAIL:-example@example.org}"
|
||||
- "--certificatesResolvers.http.acme.storage=/certs/acme.json"
|
||||
- "--certificatesResolvers.http.acme.httpChallenge.entryPoint=http"
|
||||
# enable dasbhoard
|
||||
- "--api.dashboard=true"
|
||||
# define entrypoints
|
||||
- "--entryPoints.http.address=:80"
|
||||
- "--entryPoints.http.http.redirections.entryPoint.to=https"
|
||||
- "--entryPoints.http.http.redirections.entryPoint.scheme=https"
|
||||
- "--entryPoints.https.address=:443"
|
||||
# docker provider (get configuration from container labels)
|
||||
- "--providers.docker.endpoint=unix:///var/run/docker.sock"
|
||||
- "--providers.docker.exposedByDefault=false"
|
||||
ports:
|
||||
@@ -26,17 +32,12 @@ services:
|
||||
- "certs:/certs"
|
||||
labels:
|
||||
- "traefik.enable=${TRAEFIK_DASHBOARD:-false}"
|
||||
- "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"
|
||||
- "traefik.http.routers.traefik.entrypoints=https"
|
||||
- "traefik.http.routers.traefik.rule=Host(`${TRAEFIK_DOMAIN:-traefik.owncloud.test}`)"
|
||||
- "traefik.http.routers.traefik.middlewares=traefik-auth"
|
||||
- "traefik.http.routers.traefik.tls.certresolver=http"
|
||||
- "traefik.http.routers.traefik.service=api@internal"
|
||||
logging:
|
||||
driver: "local"
|
||||
restart: always
|
||||
@@ -58,26 +59,22 @@ services:
|
||||
IDP_LDAP_BIND_PASSWORD: ${IDP_LDAP_BIND_PASSWORD:-idp}
|
||||
STORAGE_LDAP_BIND_PASSWORD: ${STORAGE_LDAP_BIND_PASSWORD:-reva}
|
||||
OCIS_JWT_SECRET: ${OCIS_JWT_SECRET:-Pive-Fumkiu4}
|
||||
OCIS_TRANSFER_SECRET: ${STORAGE_TRANSFER_SECRET:-replace-me-with-a-transfer-secret}
|
||||
# web ui
|
||||
WEB_UI_CONFIG: "/config/config.json"
|
||||
WEB_UI_CONFIG: "/var/tmp/ocis/.config/web-config.json"
|
||||
# proxy
|
||||
PROXY_CONFIG_FILE: "/config/proxy-config.json"
|
||||
PROXY_CONFIG_FILE: "/var/tmp/ocis/.config/proxy-config.json"
|
||||
volumes:
|
||||
- ./config/ocis/entrypoint-override.sh:/entrypoint-override.sh
|
||||
- ./config/ocis/config.dist.json:/config/config.dist.json
|
||||
- ./config/ocis/web-config.dist.json:/config/web-config.dist.json
|
||||
- ./config/ocis/proxy-config.json:/config/proxy-config.json
|
||||
- ocis-data:/var/tmp/ocis
|
||||
labels:
|
||||
- "traefik.enable=true"
|
||||
- "traefik.http.routers.ocis.entrypoints=http"
|
||||
- "traefik.http.routers.ocis.entrypoints=https"
|
||||
- "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.routers.ocis.tls.certresolver=http"
|
||||
- "traefik.http.routers.ocis.service=ocis"
|
||||
- "traefik.http.services.ocis.loadbalancer.server.port=9200"
|
||||
logging:
|
||||
driver: "local"
|
||||
|
||||
@@ -25,6 +25,8 @@ IDP_LDAP_BIND_PASSWORD=
|
||||
STORAGE_LDAP_BIND_PASSWORD=
|
||||
# JWT secret which is used for the storage provider. Must be changed in order to have a secure oCIS. Defaults to "Pive-Fumkiu4"
|
||||
OCIS_JWT_SECRET=
|
||||
# JWT secret which is used for uploads to create transfer tokens. Must be changed in order to have a secure oCIS. Defaults to "replace-me-with-a-transfer-secret"
|
||||
OCIS_TRANSFER_SECRET=
|
||||
|
||||
### Keycloak ###
|
||||
# Domain of Keycloak, where you can find the managment and authentication frontend. Defaults to "keycloak.owncloud.test"
|
||||
|
||||
@@ -5,14 +5,12 @@ set -e
|
||||
ocis server&
|
||||
sleep 10
|
||||
|
||||
# stop builtin idp since we use Keycloak as a replacement
|
||||
ocis kill idp
|
||||
|
||||
echo "##################################################"
|
||||
echo "change default secrets:"
|
||||
|
||||
# IDP
|
||||
IDP_USER_UUID=$(ocis accounts list | grep "| Kopano IDP " | egrep '[0-9a-f]{8}-([0-9a-f]{4}-){3}[0-9a-f]{12}' -o)
|
||||
echo " IDP user UUID: $IDP_USER_UUID"
|
||||
ocis accounts update --password $IDP_LDAP_BIND_PASSWORD $IDP_USER_UUID
|
||||
|
||||
# REVA
|
||||
REVA_USER_UUID=$(ocis accounts list | grep " | Reva Inter " | egrep '[0-9a-f]{8}-([0-9a-f]{4}-){3}[0-9a-f]{12}' -o)
|
||||
echo " Reva user UUID: $REVA_USER_UUID"
|
||||
@@ -25,6 +23,11 @@ echo "##################################################"
|
||||
echo "delete demo users" # demo users are provided by keycloak
|
||||
|
||||
set +e # accounts can only delete once, so it will fail the second time
|
||||
# IDP
|
||||
IDP_USER_UUID=$(ocis accounts list | grep "| Kopano IDP " | egrep '[0-9a-f]{8}-([0-9a-f]{4}-){3}[0-9a-f]{12}' -o)
|
||||
echo " IDP user UUID: $IDP_USER_UUID"
|
||||
ocis accounts remove $IDP_USER_UUID
|
||||
|
||||
ocis accounts remove 4c510ada-c86b-4815-8820-42cdf82c3d51
|
||||
ocis accounts remove ddc2004c-0977-11eb-9d3f-a793888cd0f8
|
||||
ocis accounts remove 932b4540-8d16-481e-8ef4-588e4b6b151c
|
||||
|
||||
@@ -3,20 +3,26 @@ version: "3.7"
|
||||
|
||||
services:
|
||||
traefik:
|
||||
image: traefik:v2.4
|
||||
image: traefik:v2.5
|
||||
networks:
|
||||
ocis-net:
|
||||
aliases:
|
||||
- ${OCIS_DOMAIN:-ocis.owncloud.test}
|
||||
- ${KEYCLOAK_DOMAIN:-keycloak.owncloud.test}
|
||||
command:
|
||||
#- "--log.level=DEBUG"
|
||||
- "--log.level=${TRAEFIK_LOG_LEVEL:-ERROR}"
|
||||
# letsencrypt configuration
|
||||
- "--certificatesResolvers.http.acme.email=${TRAEFIK_ACME_MAIL:-example@example.org}"
|
||||
- "--certificatesResolvers.http.acme.storage=/certs/acme.json"
|
||||
- "--certificatesResolvers.http.acme.httpChallenge.entryPoint=http"
|
||||
# enable dasbhoard
|
||||
- "--api.dashboard=true"
|
||||
# define entrypoints
|
||||
- "--entryPoints.http.address=:80"
|
||||
- "--entryPoints.http.http.redirections.entryPoint.to=https"
|
||||
- "--entryPoints.http.http.redirections.entryPoint.scheme=https"
|
||||
- "--entryPoints.https.address=:443"
|
||||
# docker provider (get configuration from container labels)
|
||||
- "--providers.docker.endpoint=unix:///var/run/docker.sock"
|
||||
- "--providers.docker.exposedByDefault=false"
|
||||
ports:
|
||||
@@ -27,17 +33,12 @@ services:
|
||||
- "certs:/certs"
|
||||
labels:
|
||||
- "traefik.enable=${TRAEFIK_DASHBOARD:-false}"
|
||||
- "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"
|
||||
- "traefik.http.routers.traefik.entrypoints=https"
|
||||
- "traefik.http.routers.traefik.rule=Host(`${TRAEFIK_DOMAIN:-traefik.owncloud.test}`)"
|
||||
- "traefik.http.routers.traefik.middlewares=traefik-auth"
|
||||
- "traefik.http.routers.traefik.tls.certresolver=http"
|
||||
- "traefik.http.routers.traefik.service=api@internal"
|
||||
logging:
|
||||
driver: "local"
|
||||
restart: always
|
||||
@@ -67,20 +68,16 @@ services:
|
||||
IDP_LDAP_BIND_PASSWORD: ${IDP_LDAP_BIND_PASSWORD:-idp}
|
||||
STORAGE_LDAP_BIND_PASSWORD: ${STORAGE_LDAP_BIND_PASSWORD:-reva}
|
||||
OCIS_JWT_SECRET: ${OCIS_JWT_SECRET:-Pive-Fumkiu4}
|
||||
OCIS_TRANSFER_SECRET: ${STORAGE_TRANSFER_SECRET:-replace-me-with-a-transfer-secret}
|
||||
volumes:
|
||||
- ./config/ocis/entrypoint-override.sh:/entrypoint-override.sh
|
||||
- ocis-data:/var/tmp/ocis
|
||||
labels:
|
||||
- "traefik.enable=true"
|
||||
- "traefik.http.routers.ocis.entrypoints=http"
|
||||
- "traefik.http.routers.ocis.entrypoints=https"
|
||||
- "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.routers.ocis.tls.certresolver=http"
|
||||
- "traefik.http.routers.ocis.service=ocis"
|
||||
- "traefik.http.services.ocis.loadbalancer.server.port=9200"
|
||||
logging:
|
||||
driver: "local"
|
||||
@@ -122,27 +119,20 @@ services:
|
||||
KEYCLOAK_IMPORT: /opt/jboss/keycloak/ocis-realm.json
|
||||
labels:
|
||||
- "traefik.enable=true"
|
||||
- "traefik.http.routers.keycloak.entrypoints=http"
|
||||
- "traefik.http.routers.keycloak.entrypoints=https"
|
||||
- "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.routers.keycloak.tls.certresolver=http"
|
||||
- "traefik.http.routers.keycloak.service=keycloak"
|
||||
- "traefik.http.services.keycloak.loadbalancer.server.port=8080"
|
||||
- "traefik.http.services.keycloak.loadbalancer.server.scheme=http"
|
||||
# let /.well-known/openid-configuration be served by Keycloak
|
||||
- "traefik.http.routers.idp-wellknown-secure.entrypoints=https"
|
||||
- "traefik.http.routers.idp-wellknown-secure.tls=true"
|
||||
- "traefik.http.routers.idp-wellknown-secure.tls.certresolver=http"
|
||||
- "traefik.http.routers.idp-wellknown-secure.rule=Host(`${OCIS_DOMAIN:-ocis.owncloud.test}`) && Path(`/.well-known/openid-configuration`)"
|
||||
- "traefik.http.middlewares.idp-headers.headers.customrequestheaders.X-Forwarded-Host=${KEYCLOAK_DOMAIN:-keycloak.owncloud.test}"
|
||||
- "traefik.http.middlewares.idp-prefix.addprefix.prefix=/auth/realms/${KEYCLOAK_REALM:-oCIS}"
|
||||
- "traefik.http.middlewares.idp-override.chain.middlewares=idp-headers,idp-prefix"
|
||||
- "traefik.http.routers.idp-wellknown-secure.middlewares=idp-override"
|
||||
- "traefik.http.routers.idp-wellknown-secure.service=keycloak"
|
||||
- "traefik.http.routers.idp-wellknown.entrypoints=https"
|
||||
- "traefik.http.routers.idp-wellknown.tls.certresolver=http"
|
||||
- "traefik.http.routers.idp-wellknown.rule=Host(`${OCIS_DOMAIN:-ocis.owncloud.test}`) && Path(`/.well-known/openid-configuration`)"
|
||||
- "traefik.http.routers.idp-wellknown.middlewares=idp-override"
|
||||
- "traefik.http.routers.idp-wellknown.service=keycloak"
|
||||
depends_on:
|
||||
- postgres
|
||||
logging:
|
||||
|
||||
@@ -23,6 +23,8 @@ IDP_LDAP_BIND_PASSWORD=
|
||||
STORAGE_LDAP_BIND_PASSWORD=
|
||||
# JWT secret which is used for the storage provider. Must be changed in order to have a secure oCIS. Defaults to "Pive-Fumkiu4"
|
||||
OCIS_JWT_SECRET=
|
||||
# JWT secret which is used for uploads to create transfer tokens. Must be changed in order to have a secure oCIS. Defaults to "replace-me-with-a-transfer-secret"
|
||||
OCIS_TRANSFER_SECRET=
|
||||
|
||||
### MINIO / S3 settings ###
|
||||
# Domain of MinIO where the Web UI is accessible. Defaults to "minio.owncloud.test".
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
---
|
||||
document this deployment example in: docs/ocis/deployment/ocis_traefik.md
|
||||
document this deployment example in: docs/ocis/deployment/ocis_s3.md
|
||||
---
|
||||
|
||||
Please refer to [our documentation](https://owncloud.dev/ocis/deployment/ocis_traefik/)
|
||||
Please refer to [our documentation](https://owncloud.dev/ocis/deployment/ocis_s3/)
|
||||
for instructions on how to deploy this scenario.
|
||||
@@ -3,19 +3,25 @@ version: "3.7"
|
||||
|
||||
services:
|
||||
traefik:
|
||||
image: traefik:v2.4
|
||||
image: traefik:v2.5
|
||||
networks:
|
||||
ocis-net:
|
||||
aliases:
|
||||
- ${OCIS_DOMAIN:-ocis.owncloud.test}
|
||||
command:
|
||||
#- "--log.level=DEBUG"
|
||||
- "--log.level=${TRAEFIK_LOG_LEVEL:-ERROR}"
|
||||
# letsencrypt configuration
|
||||
- "--certificatesResolvers.http.acme.email=${TRAEFIK_ACME_MAIL:-example@example.org}"
|
||||
- "--certificatesResolvers.http.acme.storage=/certs/acme.json"
|
||||
- "--certificatesResolvers.http.acme.httpChallenge.entryPoint=http"
|
||||
# enable dasbhoard
|
||||
- "--api.dashboard=true"
|
||||
# define entrypoints
|
||||
- "--entryPoints.http.address=:80"
|
||||
- "--entryPoints.http.http.redirections.entryPoint.to=https"
|
||||
- "--entryPoints.http.http.redirections.entryPoint.scheme=https"
|
||||
- "--entryPoints.https.address=:443"
|
||||
# docker provider (get configuration from container labels)
|
||||
- "--providers.docker.endpoint=unix:///var/run/docker.sock"
|
||||
- "--providers.docker.exposedByDefault=false"
|
||||
ports:
|
||||
@@ -26,17 +32,12 @@ services:
|
||||
- "certs:/certs"
|
||||
labels:
|
||||
- "traefik.enable=${TRAEFIK_DASHBOARD:-false}"
|
||||
- "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"
|
||||
- "traefik.http.routers.traefik.entrypoints=https"
|
||||
- "traefik.http.routers.traefik.rule=Host(`${TRAEFIK_DOMAIN:-traefik.owncloud.test}`)"
|
||||
- "traefik.http.routers.traefik.middlewares=traefik-auth"
|
||||
- "traefik.http.routers.traefik.tls.certresolver=http"
|
||||
- "traefik.http.routers.traefik.service=api@internal"
|
||||
logging:
|
||||
driver: "local"
|
||||
restart: always
|
||||
@@ -57,6 +58,7 @@ services:
|
||||
IDP_LDAP_BIND_PASSWORD: ${IDP_LDAP_BIND_PASSWORD:-idp}
|
||||
STORAGE_LDAP_BIND_PASSWORD: ${STORAGE_LDAP_BIND_PASSWORD:-reva}
|
||||
OCIS_JWT_SECRET: ${OCIS_JWT_SECRET:-Pive-Fumkiu4}
|
||||
OCIS_TRANSFER_SECRET: ${STORAGE_TRANSFER_SECRET:-replace-me-with-a-transfer-secret}
|
||||
# activate s3ng storage driver
|
||||
STORAGE_HOME_DRIVER: s3ng
|
||||
STORAGE_USERS_DRIVER: s3ng
|
||||
@@ -72,15 +74,10 @@ services:
|
||||
- ocis-data:/var/tmp/ocis
|
||||
labels:
|
||||
- "traefik.enable=true"
|
||||
- "traefik.http.routers.ocis.entrypoints=http"
|
||||
- "traefik.http.routers.ocis.entrypoints=https"
|
||||
- "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.routers.ocis.tls.certresolver=http"
|
||||
- "traefik.http.routers.ocis.service=ocis"
|
||||
- "traefik.http.services.ocis.loadbalancer.server.port=9200"
|
||||
logging:
|
||||
driver: "local"
|
||||
@@ -93,7 +90,7 @@ services:
|
||||
entrypoint:
|
||||
- /bin/sh
|
||||
- -c
|
||||
- "mkdir -p /data/${MINIO_BUCKET:-ocis-bucket} && minio server /data"
|
||||
- "mkdir -p /data/${MINIO_BUCKET:-ocis-bucket} && minio server --console-address ':9001' /data"
|
||||
volumes:
|
||||
- minio-data:/data
|
||||
environment:
|
||||
@@ -101,16 +98,11 @@ services:
|
||||
MINIO_SECRET_KEY: ${MINIO_SECRET_KEY:-ocis-secret-key}
|
||||
labels:
|
||||
- "traefik.enable=true"
|
||||
- "traefik.http.routers.minio.entrypoints=http"
|
||||
- "traefik.http.routers.minio.entrypoints=https"
|
||||
- "traefik.http.routers.minio.rule=Host(`${MINIO_DOMAIN:-minio.owncloud.test}`)"
|
||||
- "traefik.http.middlewares.minio-https-redirect.redirectscheme.scheme=https"
|
||||
- "traefik.http.routers.minio.middlewares=minio-https-redirect"
|
||||
- "traefik.http.routers.minio-secure.entrypoints=https"
|
||||
- "traefik.http.routers.minio-secure.rule=Host(`${MINIO_DOMAIN:-minio.owncloud.test}`)"
|
||||
- "traefik.http.routers.minio-secure.tls=true"
|
||||
- "traefik.http.routers.minio-secure.tls.certresolver=http"
|
||||
- "traefik.http.routers.minio-secure.service=minio"
|
||||
- "traefik.http.services.minio.loadbalancer.server.port=9000"
|
||||
- "traefik.http.routers.minio.tls.certresolver=http"
|
||||
- "traefik.http.routers.minio.service=minio"
|
||||
- "traefik.http.services.minio.loadbalancer.server.port=9001"
|
||||
logging:
|
||||
driver: "local"
|
||||
restart: always
|
||||
|
||||
@@ -23,6 +23,8 @@ IDP_LDAP_BIND_PASSWORD=
|
||||
STORAGE_LDAP_BIND_PASSWORD=
|
||||
# JWT secret which is used for the storage provider. Must be changed in order to have a secure oCIS. Defaults to "Pive-Fumkiu4"
|
||||
OCIS_JWT_SECRET=
|
||||
# JWT secret which is used for uploads to create transfer tokens. Must be changed in order to have a secure oCIS. Defaults to "replace-me-with-a-transfer-secret"
|
||||
OCIS_TRANSFER_SECRET=
|
||||
|
||||
# If you want to use debugging and tracing with this stack,
|
||||
# you need uncomment following line. Please see documentation at
|
||||
|
||||
@@ -3,19 +3,25 @@ version: "3.7"
|
||||
|
||||
services:
|
||||
traefik:
|
||||
image: traefik:v2.4
|
||||
image: traefik:v2.5
|
||||
networks:
|
||||
ocis-net:
|
||||
aliases:
|
||||
- ${OCIS_DOMAIN:-ocis.owncloud.test}
|
||||
command:
|
||||
#- "--log.level=DEBUG"
|
||||
- "--log.level=${TRAEFIK_LOG_LEVEL:-ERROR}"
|
||||
# letsencrypt configuration
|
||||
- "--certificatesResolvers.http.acme.email=${TRAEFIK_ACME_MAIL:-example@example.org}"
|
||||
- "--certificatesResolvers.http.acme.storage=/certs/acme.json"
|
||||
- "--certificatesResolvers.http.acme.httpChallenge.entryPoint=http"
|
||||
# enable dasbhoard
|
||||
- "--api.dashboard=true"
|
||||
# define entrypoints
|
||||
- "--entryPoints.http.address=:80"
|
||||
- "--entryPoints.http.http.redirections.entryPoint.to=https"
|
||||
- "--entryPoints.http.http.redirections.entryPoint.scheme=https"
|
||||
- "--entryPoints.https.address=:443"
|
||||
# docker provider (get configuration from container labels)
|
||||
- "--providers.docker.endpoint=unix:///var/run/docker.sock"
|
||||
- "--providers.docker.exposedByDefault=false"
|
||||
ports:
|
||||
@@ -26,17 +32,12 @@ services:
|
||||
- "certs:/certs"
|
||||
labels:
|
||||
- "traefik.enable=${TRAEFIK_DASHBOARD:-false}"
|
||||
- "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"
|
||||
- "traefik.http.routers.traefik.entrypoints=https"
|
||||
- "traefik.http.routers.traefik.rule=Host(`${TRAEFIK_DOMAIN:-traefik.owncloud.test}`)"
|
||||
- "traefik.http.routers.traefik.middlewares=traefik-auth"
|
||||
- "traefik.http.routers.traefik.tls.certresolver=http"
|
||||
- "traefik.http.routers.traefik.service=api@internal"
|
||||
logging:
|
||||
driver: "local"
|
||||
restart: always
|
||||
@@ -57,20 +58,16 @@ services:
|
||||
IDP_LDAP_BIND_PASSWORD: ${IDP_LDAP_BIND_PASSWORD:-idp}
|
||||
STORAGE_LDAP_BIND_PASSWORD: ${STORAGE_LDAP_BIND_PASSWORD:-reva}
|
||||
OCIS_JWT_SECRET: ${OCIS_JWT_SECRET:-Pive-Fumkiu4}
|
||||
OCIS_TRANSFER_SECRET: ${STORAGE_TRANSFER_SECRET:-replace-me-with-a-transfer-secret}
|
||||
volumes:
|
||||
- ./config/ocis/entrypoint-override.sh:/entrypoint-override.sh
|
||||
- ocis-data:/var/tmp/ocis
|
||||
labels:
|
||||
- "traefik.enable=true"
|
||||
- "traefik.http.routers.ocis.entrypoints=http"
|
||||
- "traefik.http.routers.ocis.entrypoints=https"
|
||||
- "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.routers.ocis.tls.certresolver=http"
|
||||
- "traefik.http.routers.ocis.service=ocis"
|
||||
- "traefik.http.services.ocis.loadbalancer.server.port=9200"
|
||||
logging:
|
||||
driver: "local"
|
||||
|
||||
@@ -23,6 +23,8 @@ IDP_LDAP_BIND_PASSWORD=
|
||||
STORAGE_LDAP_BIND_PASSWORD=
|
||||
# JWT secret which is used for the storage provider. Must be changed in order to have a secure oCIS. Defaults to "Pive-Fumkiu4"
|
||||
OCIS_JWT_SECRET=
|
||||
# JWT secret which is used for uploads to create transfer tokens. Must be changed in order to have a secure oCIS. Defaults to "replace-me-with-a-transfer-secret"
|
||||
OCIS_TRANSFER_SECRET=
|
||||
|
||||
### Wopi server settings ###
|
||||
# oCIS Wopi server version. Defaults to "latest"
|
||||
|
||||
@@ -2,8 +2,10 @@
|
||||
|
||||
set -e
|
||||
|
||||
cp /config/config.dist.json /config/config.json
|
||||
sed -i 's/ocis.owncloud.test/'${OCIS_DOMAIN:-ocis.owncloud.test}'/g' /config/config.json
|
||||
mkdir -p /var/tmp/ocis/.config/
|
||||
cp /config/proxy-config.json /var/tmp/ocis/.config/proxy-config.json
|
||||
cp /config/web-config.dist.json /var/tmp/ocis/.config/web-config.json
|
||||
sed -i 's/ocis.owncloud.test/'${OCIS_DOMAIN:-ocis.owncloud.test}'/g' /var/tmp/ocis/.config/web-config.json
|
||||
|
||||
ocis server&
|
||||
sleep 10
|
||||
|
||||
@@ -32,6 +32,10 @@
|
||||
"endpoint": "/ocs/v[12].php/cloud/(users?|groups)",
|
||||
"backend": "http://localhost:9110"
|
||||
},
|
||||
{
|
||||
"endpoint": "/app/",
|
||||
"backend": "http://localhost:9140"
|
||||
},
|
||||
{
|
||||
"endpoint": "/ocs/",
|
||||
"backend": "http://localhost:9140"
|
||||
@@ -89,10 +93,6 @@
|
||||
"endpoint": "/settings.js",
|
||||
"backend": "http://localhost:9190"
|
||||
},
|
||||
{
|
||||
"endpoint": "/onlyoffice.js",
|
||||
"backend": "http://localhost:9220"
|
||||
},
|
||||
{
|
||||
"endpoint": "/api/v0/wopi",
|
||||
"backend": "http://ocis-wopiserver:9105"
|
||||
|
||||
File renamed without changes.
@@ -3,7 +3,7 @@ version: "3.7"
|
||||
|
||||
services:
|
||||
traefik:
|
||||
image: traefik:v2.4
|
||||
image: traefik:v2.5
|
||||
networks:
|
||||
ocis-net:
|
||||
aliases:
|
||||
@@ -11,13 +11,19 @@ services:
|
||||
- ${WOPISERVER_DOMAIN:-wopiserver.owncloud.test}
|
||||
- ${COLLABORA_DOMAIN:-collabora.owncloud.test}
|
||||
command:
|
||||
#- "--log.level=DEBUG"
|
||||
- "--log.level=${TRAEFIK_LOG_LEVEL:-ERROR}"
|
||||
# letsencrypt configuration
|
||||
- "--certificatesResolvers.http.acme.email=${TRAEFIK_ACME_MAIL:-example@example.org}"
|
||||
- "--certificatesResolvers.http.acme.storage=/certs/acme.json"
|
||||
- "--certificatesResolvers.http.acme.httpChallenge.entryPoint=http"
|
||||
# enable dasbhoard
|
||||
- "--api.dashboard=true"
|
||||
# define entrypoints
|
||||
- "--entryPoints.http.address=:80"
|
||||
- "--entryPoints.http.http.redirections.entryPoint.to=https"
|
||||
- "--entryPoints.http.http.redirections.entryPoint.scheme=https"
|
||||
- "--entryPoints.https.address=:443"
|
||||
# docker provider (get configuration from container labels)
|
||||
- "--providers.docker.endpoint=unix:///var/run/docker.sock"
|
||||
- "--providers.docker.exposedByDefault=false"
|
||||
ports:
|
||||
@@ -28,17 +34,12 @@ services:
|
||||
- "certs:/certs"
|
||||
labels:
|
||||
- "traefik.enable=${TRAEFIK_DASHBOARD:-false}"
|
||||
- "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"
|
||||
- "traefik.http.routers.traefik.entrypoints=https"
|
||||
- "traefik.http.routers.traefik.rule=Host(`${TRAEFIK_DOMAIN:-traefik.owncloud.test}`)"
|
||||
- "traefik.http.routers.traefik.middlewares=traefik-auth"
|
||||
- "traefik.http.routers.traefik.tls.certresolver=http"
|
||||
- "traefik.http.routers.traefik.service=api@internal"
|
||||
logging:
|
||||
driver: "local"
|
||||
restart: always
|
||||
@@ -60,26 +61,30 @@ services:
|
||||
IDP_LDAP_BIND_PASSWORD: ${IDP_LDAP_BIND_PASSWORD:-idp}
|
||||
STORAGE_LDAP_BIND_PASSWORD: ${STORAGE_LDAP_BIND_PASSWORD:-reva}
|
||||
OCIS_JWT_SECRET: ${OCIS_JWT_SECRET:-Pive-Fumkiu4}
|
||||
OCIS_TRANSFER_SECRET: ${STORAGE_TRANSFER_SECRET:-replace-me-with-a-transfer-secret}
|
||||
# web ui
|
||||
WEB_UI_CONFIG: "/config/config.json"
|
||||
WEB_UI_CONFIG: "/var/tmp/ocis/.config/web-config.json"
|
||||
# proxy
|
||||
PROXY_CONFIG_FILE: "/config/proxy-config.json"
|
||||
PROXY_CONFIG_FILE: "/var/tmp/ocis/.config/proxy-config.json"
|
||||
# app provider
|
||||
APP_PROVIDER_DRIVER: wopi
|
||||
APP_PROVIDER_WOPI_DRIVER_APP_NAME: Collabora
|
||||
APP_PROVIDER_WOPI_DRIVER_APP_ICON_URI: https://www.collaboraoffice.com/wp-content/uploads/2019/01/CP-icon.png
|
||||
APP_PROVIDER_WOPI_DRIVER_APP_URL: https://${COLLABORA_DOMAIN:-collabora.owncloud.test}
|
||||
APP_PROVIDER_WOPI_DRIVER_INSECURE: "${INSECURE:-false}"
|
||||
APP_PROVIDER_WOPI_DRIVER_IOP_SECRET: ${WOPI_IOP_SECRET:-LoremIpsum123}
|
||||
APP_PROVIDER_WOPI_DRIVER_WOPI_URL: https://${WOPISERVER_DOMAIN:-wopiserver.owncloud.test}
|
||||
volumes:
|
||||
- ./config/ocis/entrypoint-override.sh:/entrypoint-override.sh
|
||||
- ./config/ocis/config.dist.json:/config/config.dist.json
|
||||
- ./config/ocis/web-config.dist.json:/config/web-config.dist.json
|
||||
- ./config/ocis/proxy-config.json:/config/proxy-config.json
|
||||
- ocis-data:/var/tmp/ocis
|
||||
labels:
|
||||
- "traefik.enable=true"
|
||||
- "traefik.http.routers.ocis.entrypoints=http"
|
||||
- "traefik.http.routers.ocis.entrypoints=https"
|
||||
- "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.routers.ocis.tls.certresolver=http"
|
||||
- "traefik.http.routers.ocis.service=ocis"
|
||||
- "traefik.http.services.ocis.loadbalancer.server.port=9200"
|
||||
logging:
|
||||
driver: "local"
|
||||
@@ -93,9 +98,6 @@ services:
|
||||
OCIS_LOG_LEVEL: ${OCIS_LOG_LEVEL:-error} # make oCIS less verbose
|
||||
WOPISERVER_REVA_GATEWAY_ADDR: ocis:9142
|
||||
OCIS_JWT_SECRET: ${OCIS_JWT_SECRET:-Pive-Fumkiu4}
|
||||
WOPISERVER_WOPI_SERVER_HOST: https://${WOPISERVER_DOMAIN:-wopiserver.owncloud.test}
|
||||
WOPISERVER_WOPI_SERVER_IOP_SECRET: ${WOPI_IOP_SECRET:-LoremIpsum123}
|
||||
WOPISERVER_WOPI_SERVER_INSECURE: "${INSECURE:-false}"
|
||||
logging:
|
||||
driver: "local"
|
||||
restart: always
|
||||
@@ -119,15 +121,10 @@ services:
|
||||
- wopi-logs:/var/log/wopi
|
||||
labels:
|
||||
- "traefik.enable=true"
|
||||
- "traefik.http.routers.wopiserver.entrypoints=http"
|
||||
- "traefik.http.routers.wopiserver.entrypoints=https"
|
||||
- "traefik.http.routers.wopiserver.rule=Host(`${WOPISERVER_DOMAIN:-wopiserver.owncloud.test}`)"
|
||||
- "traefik.http.middlewares.wopiserver-https-redirect.redirectscheme.scheme=https"
|
||||
- "traefik.http.routers.wopiserver.middlewares=wopiserver-https-redirect"
|
||||
- "traefik.http.routers.wopiserver-secure.entrypoints=https"
|
||||
- "traefik.http.routers.wopiserver-secure.rule=Host(`${WOPISERVER_DOMAIN:-wopiserver.owncloud.test}`)"
|
||||
- "traefik.http.routers.wopiserver-secure.tls=true"
|
||||
- "traefik.http.routers.wopiserver-secure.tls.certresolver=http"
|
||||
- "traefik.http.routers.wopiserver-secure.service=wopiserver"
|
||||
- "traefik.http.routers.wopiserver.tls.certresolver=http"
|
||||
- "traefik.http.routers.wopiserver.service=wopiserver"
|
||||
- "traefik.http.services.wopiserver.loadbalancer.server.port=8880"
|
||||
logging:
|
||||
driver: "local"
|
||||
@@ -147,15 +144,10 @@ services:
|
||||
- MKNOD
|
||||
labels:
|
||||
- "traefik.enable=true"
|
||||
- "traefik.http.routers.collabora.entrypoints=http"
|
||||
- "traefik.http.routers.collabora.entrypoints=https"
|
||||
- "traefik.http.routers.collabora.rule=Host(`${COLLABORA_DOMAIN:-collabora.owncloud.test}`)"
|
||||
- "traefik.http.middlewares.collabora-https-redirect.redirectscheme.scheme=https"
|
||||
- "traefik.http.routers.collabora.middlewares=collabora-https-redirect"
|
||||
- "traefik.http.routers.collabora-secure.entrypoints=https"
|
||||
- "traefik.http.routers.collabora-secure.rule=Host(`${COLLABORA_DOMAIN:-collabora.owncloud.test}`)"
|
||||
- "traefik.http.routers.collabora-secure.tls=true"
|
||||
- "traefik.http.routers.collabora-secure.tls.certresolver=http"
|
||||
- "traefik.http.routers.collabora-secure.service=collabora"
|
||||
- "traefik.http.routers.collabora.tls.certresolver=http"
|
||||
- "traefik.http.routers.collabora.service=collabora"
|
||||
- "traefik.http.services.collabora.loadbalancer.server.port=9980"
|
||||
logging:
|
||||
driver: "local"
|
||||
|
||||
@@ -1,29 +0,0 @@
|
||||
# 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 ###
|
||||
# Serve Treafik dashboard. Defaults to "false".
|
||||
TRAEFIK_DASHBOARD=
|
||||
# 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=
|
||||
|
||||
|
||||
# If you want to use debugging and tracing with this stack,
|
||||
# you need uncomment following line. Please see documentation at
|
||||
# https://owncloud.dev/ocis/deployment/monitoring-tracing/
|
||||
#COMPOSE_FILE=docker-compose.yml:monitoring_tracing/docker-compose-additions.yml
|
||||
@@ -1,6 +0,0 @@
|
||||
---
|
||||
document this deployment example in: docs/ocis/deployment/owncloud10_with_oc_web.md
|
||||
---
|
||||
|
||||
Please refer to [our documentation](https://owncloud.dev/ocis/deployment/owncloud10_with_oc_web/)
|
||||
for instructions on how to deploy this scenario.
|
||||
@@ -1,558 +0,0 @@
|
||||
<?php
|
||||
|
||||
function getConfigFromEnv() {
|
||||
if (isset($_SERVER['HTTP_X_FORWARDED_HOST'])) {
|
||||
$domain = trim(
|
||||
explode(
|
||||
",",
|
||||
$_SERVER['HTTP_X_FORWARDED_HOST']
|
||||
)[0]
|
||||
);
|
||||
} else if (isset($_SERVER['SERVER_NAME'])) {
|
||||
$domain = $_SERVER['SERVER_NAME'];
|
||||
} else {
|
||||
$domain = 'localhost';
|
||||
}
|
||||
|
||||
$config = [
|
||||
'apps_paths' => [
|
||||
0 => [
|
||||
"path" => OC::$SERVERROOT . "/apps",
|
||||
"url" => "/apps",
|
||||
"writable" => false
|
||||
],
|
||||
1 => [
|
||||
"path" => OC::$SERVERROOT . "/custom",
|
||||
"url" => "/custom",
|
||||
"writable" => true
|
||||
]
|
||||
],
|
||||
|
||||
'trusted_domains' => [
|
||||
0 => $domain
|
||||
],
|
||||
'openid-connect' => [
|
||||
'provider-url' => getenv('OCIS_URL'),
|
||||
'client-id' => 'oc10',
|
||||
'client-secret' => 'super',
|
||||
'loginButtonName' => 'OpenId Connect',
|
||||
'search-attribute' => 'preferred_username',
|
||||
'mode' => 'userid',
|
||||
'autoRedirectOnLoginPage' => true,
|
||||
'insecure' => true,
|
||||
'post_logout_redirect_uri' => getenv('OWNCLOUD_DOMAIN') . '/',
|
||||
],
|
||||
'datadirectory' => getenv('OWNCLOUD_VOLUME_FILES'),
|
||||
'dbtype' => getenv('OWNCLOUD_DB_TYPE'),
|
||||
'dbhost' => getenv('OWNCLOUD_DB_HOST'),
|
||||
'dbname' => getenv('OWNCLOUD_DB_NAME'),
|
||||
'dbuser' => getenv('OWNCLOUD_DB_USERNAME'),
|
||||
'dbpassword' => getenv('OWNCLOUD_DB_PASSWORD'),
|
||||
'dbtableprefix' => getenv('OWNCLOUD_DB_PREFIX'),
|
||||
|
||||
'web.baseUrl' => getenv('OCIS_URL'),
|
||||
'cors.allowed-domains' => [getenv('OCIS_URL')],
|
||||
|
||||
'log_type' => 'owncloud',
|
||||
|
||||
'supportedDatabases' => [
|
||||
'sqlite',
|
||||
'mysql',
|
||||
'pgsql',
|
||||
],
|
||||
|
||||
'upgrade.disable-web' => true,
|
||||
];
|
||||
|
||||
if (getenv('OWNCLOUD_CORS_ALLOWED_DOMAINS') != '') {
|
||||
$config['cors.allowed-domains'] = explode(',', getenv('OWNCLOUD_CORS_ALLOWED_DOMAINS'));
|
||||
}
|
||||
|
||||
if (getenv('OWNCLOUD_VERSION_HIDE') != '') {
|
||||
$config['version.hide'] = getenv('OWNCLOUD_VERSION_HIDE') == 'true';
|
||||
}
|
||||
|
||||
if (getenv('OWNCLOUD_SHOW_SERVER_HOSTNAME') != '') {
|
||||
$config['show_server_hostname'] = getenv('OWNCLOUD_SHOW_SERVER_HOSTNAME') == 'true';
|
||||
}
|
||||
|
||||
if (getenv('OWNCLOUD_DEFAULT_LANGUAGE') != '') {
|
||||
$config['default_language'] = getenv('OWNCLOUD_DEFAULT_LANGUAGE');
|
||||
}
|
||||
|
||||
if (getenv('OWNCLOUD_DEFAULT_APP') != '') {
|
||||
$config['defaultapp'] = getenv('OWNCLOUD_DEFAULT_APP');
|
||||
}
|
||||
|
||||
if (getenv('OWNCLOUD_KNOWLEDGEBASE_ENABLED') != '') {
|
||||
$config['knowledgebaseenabled'] = getenv('OWNCLOUD_KNOWLEDGEBASE_ENABLED') == 'true';
|
||||
}
|
||||
|
||||
if (getenv('OWNCLOUD_ENABLE_AVATARS') != '') {
|
||||
$config['enable_avatars'] = getenv('OWNCLOUD_ENABLE_AVATARS') == 'true';
|
||||
}
|
||||
|
||||
if (getenv('OWNCLOUD_ALLOW_USER_TO_CHANGE_DISPLAY_NAME') != '') {
|
||||
$config['allow_user_to_change_display_name'] = getenv('OWNCLOUD_ALLOW_USER_TO_CHANGE_DISPLAY_NAME') == 'true';
|
||||
}
|
||||
|
||||
if (getenv('OWNCLOUD_REMEMBER_LOGIN_COOKIE_LIFETIME') != '') {
|
||||
$config['remember_login_cookie_lifetime'] = (int) getenv('OWNCLOUD_REMEMBER_LOGIN_COOKIE_LIFETIME');
|
||||
}
|
||||
|
||||
if (getenv('OWNCLOUD_SESSION_LIFETIME') != '') {
|
||||
$config['session_lifetime'] = (int) getenv('OWNCLOUD_SESSION_LIFETIME');
|
||||
}
|
||||
|
||||
if (getenv('OWNCLOUD_SESSION_KEEPALIVE') != '') {
|
||||
$config['session_keepalive'] = getenv('OWNCLOUD_SESSION_KEEPALIVE') == 'true';
|
||||
}
|
||||
|
||||
if (getenv('OWNCLOUD_TOKEN_AUTH_ENFORCED') != '') {
|
||||
$config['token_auth_enforced'] = getenv('OWNCLOUD_TOKEN_AUTH_ENFORCED') == 'true';
|
||||
}
|
||||
|
||||
if (getenv('OWNCLOUD_CSRF_DISABLED') != '') {
|
||||
$config['csrf.disabled'] = getenv('OWNCLOUD_CSRF_DISABLED') == 'true';
|
||||
}
|
||||
|
||||
if (getenv('OWNCLOUD_SKELETON_DIRECTORY') != '') {
|
||||
$config['skeletondirectory'] = getenv('OWNCLOUD_SKELETON_DIRECTORY');
|
||||
}
|
||||
|
||||
if (getenv('OWNCLOUD_LOST_PASSWORD_LINK') != '') {
|
||||
$config['lost_password_link'] = getenv('OWNCLOUD_LOST_PASSWORD_LINK');
|
||||
}
|
||||
|
||||
if (getenv('OWNCLOUD_ACCOUNTS_ENABLE_MEDIAL_SEARCH') != '') {
|
||||
$config['accounts.enable_medial_search'] = getenv('OWNCLOUD_ACCOUNTS_ENABLE_MEDIAL_SEARCH') == 'true';
|
||||
}
|
||||
|
||||
if (getenv('OWNCLOUD_USER_SEARCH_MIN_LENGTH') != '') {
|
||||
$config['user.search_min_length'] = (int) getenv('OWNCLOUD_USER_SEARCH_MIN_LENGTH');
|
||||
}
|
||||
|
||||
if (getenv('OWNCLOUD_MAIL_DOMAIN') != '') {
|
||||
$config['mail_domain'] = getenv('OWNCLOUD_MAIL_DOMAIN');
|
||||
}
|
||||
|
||||
if (getenv('OWNCLOUD_MAIL_FROM_ADDRESS') != '') {
|
||||
$config['mail_from_address'] = getenv('OWNCLOUD_MAIL_FROM_ADDRESS');
|
||||
}
|
||||
|
||||
if (getenv('OWNCLOUD_MAIL_SMTP_DEBUG') != '') {
|
||||
$config['mail_smtpdebug'] = getenv('OWNCLOUD_MAIL_SMTP_DEBUG') == 'true';
|
||||
}
|
||||
|
||||
if (getenv('OWNCLOUD_MAIL_SMTP_MODE') != '') {
|
||||
$config['mail_smtpmode'] = getenv('OWNCLOUD_MAIL_SMTP_MODE');
|
||||
}
|
||||
|
||||
if (getenv('OWNCLOUD_MAIL_SMTP_HOST') != '') {
|
||||
$config['mail_smtphost'] = getenv('OWNCLOUD_MAIL_SMTP_HOST');
|
||||
}
|
||||
|
||||
if (getenv('OWNCLOUD_MAIL_SMTP_PORT') != '') {
|
||||
$config['mail_smtpport'] = (int) getenv('OWNCLOUD_MAIL_SMTP_PORT');
|
||||
}
|
||||
|
||||
if (getenv('OWNCLOUD_MAIL_SMTP_TIMEOUT') != '') {
|
||||
$config['mail_smtptimeout'] = (int) getenv('OWNCLOUD_MAIL_SMTP_TIMEOUT');
|
||||
}
|
||||
|
||||
if (getenv('OWNCLOUD_MAIL_SMTP_SECURE') != '') {
|
||||
$config['mail_smtpsecure'] = getenv('OWNCLOUD_MAIL_SMTP_SECURE');
|
||||
}
|
||||
|
||||
if (getenv('OWNCLOUD_MAIL_SMTP_AUTH') != '') {
|
||||
$config['mail_smtpauth'] = getenv('OWNCLOUD_MAIL_SMTP_AUTH') == 'true';
|
||||
}
|
||||
|
||||
if (getenv('OWNCLOUD_MAIL_SMTP_AUTH_TYPE') != '') {
|
||||
$config['mail_smtpauthtype'] = getenv('OWNCLOUD_MAIL_SMTP_AUTH_TYPE');
|
||||
}
|
||||
|
||||
if (getenv('OWNCLOUD_MAIL_SMTP_NAME') != '') {
|
||||
$config['mail_smtpname'] = getenv('OWNCLOUD_MAIL_SMTP_NAME');
|
||||
}
|
||||
|
||||
if (getenv('OWNCLOUD_MAIL_SMTP_PASSWORD') != '') {
|
||||
$config['mail_smtppassword'] = getenv('OWNCLOUD_MAIL_SMTP_PASSWORD');
|
||||
}
|
||||
|
||||
if (getenv('OWNCLOUD_OVERWRITE_HOST') != '') {
|
||||
$config['overwritehost'] = getenv('OWNCLOUD_OVERWRITE_HOST');
|
||||
}
|
||||
|
||||
if (getenv('OWNCLOUD_OVERWRITE_PROTOCOL') != '') {
|
||||
$config['overwriteprotocol'] = getenv('OWNCLOUD_OVERWRITE_PROTOCOL');
|
||||
}
|
||||
|
||||
if (getenv('OWNCLOUD_OVERWRITE_WEBROOT') != '') {
|
||||
$config['overwritewebroot'] = getenv('OWNCLOUD_OVERWRITE_WEBROOT');
|
||||
}
|
||||
|
||||
if (getenv('OWNCLOUD_OVERWRITE_COND_ADDR') != '') {
|
||||
$config['overwritecondaddr'] = getenv('OWNCLOUD_OVERWRITE_COND_ADDR');
|
||||
}
|
||||
|
||||
if (getenv('OWNCLOUD_OVERWRITE_CLI_URL') != '') {
|
||||
$config['overwrite.cli.url'] = getenv('OWNCLOUD_OVERWRITE_CLI_URL');
|
||||
}
|
||||
|
||||
if (getenv('OWNCLOUD_HTACCESS_REWRITE_BASE') != '') {
|
||||
$config['htaccess.RewriteBase'] = getenv('OWNCLOUD_HTACCESS_REWRITE_BASE');
|
||||
}
|
||||
|
||||
if (getenv('OWNCLOUD_PROXY') != '') {
|
||||
$config['proxy'] = getenv('OWNCLOUD_PROXY');
|
||||
}
|
||||
|
||||
if (getenv('OWNCLOUD_PROXY_USERPWD') != '') {
|
||||
$config['proxyuserpwd'] = getenv('OWNCLOUD_PROXY_USERPWD');
|
||||
}
|
||||
|
||||
if (getenv('OWNCLOUD_TRASHBIN_RETENTION_OBLIGATION') != '') {
|
||||
$config['trashbin_retention_obligation'] = getenv('OWNCLOUD_TRASHBIN_RETENTION_OBLIGATION');
|
||||
}
|
||||
|
||||
if (getenv('OWNCLOUD_TRASHBIN_PURGE_LIMIT') != '') {
|
||||
$config['trashbin_purge_limit'] = (int) getenv('OWNCLOUD_TRASHBIN_PURGE_LIMIT');
|
||||
}
|
||||
|
||||
if (getenv('OWNCLOUD_VERSIONS_RETENTION_OBLIGATION') != '') {
|
||||
$config['versions_retention_obligation'] = getenv('OWNCLOUD_VERSIONS_RETENTION_OBLIGATION');
|
||||
}
|
||||
|
||||
if (getenv('OWNCLOUD_UPDATE_CHECKER') != '') {
|
||||
$config['updatechecker'] = getenv('OWNCLOUD_UPDATE_CHECKER') == 'true';
|
||||
}
|
||||
|
||||
if (getenv('OWNCLOUD_UPDATER_SERVER_URL') != '') {
|
||||
$config['updater.server.url'] = getenv('OWNCLOUD_UPDATER_SERVER_URL');
|
||||
}
|
||||
|
||||
if (getenv('OWNCLOUD_HAS_INTERNET_CONNECTION') != '') {
|
||||
$config['has_internet_connection'] = getenv('OWNCLOUD_HAS_INTERNET_CONNECTION') == 'true';
|
||||
}
|
||||
|
||||
if (getenv('OWNCLOUD_CHECK_FOR_WORKING_WELLKNOWN_SETUP') != '') {
|
||||
$config['check_for_working_wellknown_setup'] = getenv('OWNCLOUD_CHECK_FOR_WORKING_WELLKNOWN_SETUP') == 'true';
|
||||
}
|
||||
|
||||
if (getenv('OWNCLOUD_OPERATION_MODE') != '') {
|
||||
$config['operation.mode'] = getenv('OWNCLOUD_OPERATION_MODE');
|
||||
}
|
||||
|
||||
if (getenv('OWNCLOUD_LOG_FILE') != '') {
|
||||
$config['logfile'] = getenv('OWNCLOUD_LOG_FILE');
|
||||
}
|
||||
|
||||
if (getenv('OWNCLOUD_LOG_LEVEL') != '') {
|
||||
$config['loglevel'] = (int) getenv('OWNCLOUD_LOG_LEVEL');
|
||||
}
|
||||
|
||||
if (getenv('OWNCLOUD_LOG_DATE_FORMAT') != '') {
|
||||
$config['logdateformat'] = getenv('OWNCLOUD_LOG_DATE_FORMAT');
|
||||
}
|
||||
|
||||
if (getenv('OWNCLOUD_LOG_TIMEZONE') != '') {
|
||||
$config['logtimezone'] = getenv('OWNCLOUD_LOG_TIMEZONE');
|
||||
}
|
||||
|
||||
if (getenv('OWNCLOUD_CRON_LOG') != '') {
|
||||
$config['cron_log'] = getenv('OWNCLOUD_CRON_LOG') == 'true';
|
||||
}
|
||||
|
||||
if (getenv('OWNCLOUD_LOG_ROTATE_SIZE') != '') {
|
||||
$config['log_rotate_size'] = (int) getenv('OWNCLOUD_LOG_ROTATE_SIZE');
|
||||
}
|
||||
|
||||
if (getenv('OWNCLOUD_ENABLE_PREVIEWS') != '') {
|
||||
$config['enable_previews'] = getenv('OWNCLOUD_ENABLE_PREVIEWS') == 'true';
|
||||
}
|
||||
|
||||
if (getenv('OWNCLOUD_PREVIEW_MAX_X') != '') {
|
||||
$config['preview_max_x'] = (int) getenv('OWNCLOUD_PREVIEW_MAX_X');
|
||||
}
|
||||
|
||||
if (getenv('OWNCLOUD_PREVIEW_MAX_Y') != '') {
|
||||
$config['preview_max_y'] = (int) getenv('OWNCLOUD_PREVIEW_MAX_Y');
|
||||
}
|
||||
|
||||
if (getenv('OWNCLOUD_PREVIEW_MAX_SCALE_FACTOR') != '') {
|
||||
$config['preview_max_scale_factor'] = (int) getenv('OWNCLOUD_PREVIEW_MAX_SCALE_FACTOR');
|
||||
}
|
||||
|
||||
if (getenv('OWNCLOUD_PREVIEW_MAX_FILESIZE_IMAGE') != '') {
|
||||
$config['preview_max_filesize_image'] = getenv('OWNCLOUD_PREVIEW_MAX_FILESIZE_IMAGE');
|
||||
}
|
||||
|
||||
if (getenv('OWNCLOUD_PREVIEW_LIBREOFFICE_PATH') != '') {
|
||||
$config['preview_libreoffice_path'] = getenv('OWNCLOUD_PREVIEW_LIBREOFFICE_PATH');
|
||||
}
|
||||
|
||||
if (getenv('OWNCLOUD_PREVIEW_OFFICE_CL_PARAMETERS') != '') {
|
||||
$config['preview_office_cl_parameters'] = getenv('OWNCLOUD_PREVIEW_OFFICE_CL_PARAMETERS');
|
||||
}
|
||||
|
||||
if (getenv('OWNCLOUD_ENABLED_PREVIEW_PROVIDERS') != '') {
|
||||
$config['enabledPreviewProviders'] = explode(',', getenv('OWNCLOUD_ENABLED_PREVIEW_PROVIDERS'));
|
||||
}
|
||||
|
||||
if (getenv('OWNCLOUD_COMMENTS_MANAGER_FACTORY') != '') {
|
||||
$config['comments.managerFactory'] = getenv('OWNCLOUD_COMMENTS_MANAGER_FACTORY');
|
||||
}
|
||||
|
||||
if (getenv('OWNCLOUD_SYSTEMTAGS_MANAGER_FACTORY') != '') {
|
||||
$config['systemtags.managerFactory'] = getenv('OWNCLOUD_SYSTEMTAGS_MANAGER_FACTORY');
|
||||
}
|
||||
|
||||
if (getenv('OWNCLOUD_MAINTENANCE') != '') {
|
||||
$config['maintenance'] = getenv('OWNCLOUD_MAINTENANCE') == 'true';
|
||||
}
|
||||
|
||||
if (getenv('OWNCLOUD_SINGLEUSER') != '') {
|
||||
$config['singleuser'] = getenv('OWNCLOUD_SINGLEUSER');
|
||||
}
|
||||
|
||||
if (getenv('OWNCLOUD_ENABLE_CERTIFICATE_MANAGEMENT') != '') {
|
||||
$config['enable_certificate_management'] = getenv('OWNCLOUD_ENABLE_CERTIFICATE_MANAGEMENT');
|
||||
}
|
||||
|
||||
if (getenv('OWNCLOUD_MEMCACHE_LOCAL') != '') {
|
||||
$config['memcache.local'] = getenv('OWNCLOUD_MEMCACHE_LOCAL');
|
||||
}
|
||||
|
||||
if (getenv('OWNCLOUD_CACHE_PATH') != '') {
|
||||
$config['cache_path'] = getenv('OWNCLOUD_CACHE_PATH');
|
||||
}
|
||||
|
||||
if (getenv('OWNCLOUD_CACHE_CHUNK_GC_TTL') != '') {
|
||||
$config['cache_chunk_gc_ttl'] = (int) getenv('OWNCLOUD_CACHE_CHUNK_GC_TTL');
|
||||
}
|
||||
|
||||
if (getenv('OWNCLOUD_DAV_CHUNK_BASE_DIR') != '') {
|
||||
$config['dav.chunk_base_dir'] = getenv('OWNCLOUD_DAV_CHUNK_BASE_DIR');
|
||||
}
|
||||
|
||||
if (getenv('OWNCLOUD_SHARING_MANAGER_FACTORY') != '') {
|
||||
$config['sharing.managerFactory'] = getenv('OWNCLOUD_SHARING_MANAGER_FACTORY');
|
||||
}
|
||||
|
||||
if (getenv('OWNCLOUD_SHARING_FEDERATION_ALLOW_HTTP_FALLBACK') != '') {
|
||||
$config['sharing.federation.allowHttpFallback'] = getenv('OWNCLOUD_SHARING_FEDERATION_ALLOW_HTTP_FALLBACK') == 'true';
|
||||
}
|
||||
|
||||
if (getenv('OWNCLOUD_SQLITE_JOURNAL_MODE') != '') {
|
||||
$config['sqlite.journal_mode'] = getenv('OWNCLOUD_SQLITE_JOURNAL_MODE');
|
||||
}
|
||||
|
||||
if (getenv('OWNCLOUD_MYSQL_UTF8MB4') != '') {
|
||||
$config['mysql.utf8mb4'] = getenv('OWNCLOUD_MYSQL_UTF8MB4') == 'true';
|
||||
}
|
||||
|
||||
if (getenv('OWNCLOUD_TEMP_DIRECTORY') != '') {
|
||||
$config['tempdirectory'] = getenv('OWNCLOUD_TEMP_DIRECTORY');
|
||||
}
|
||||
|
||||
if (getenv('OWNCLOUD_HASHING_COST') != '') {
|
||||
$config['hashingCost'] = (int) getenv('OWNCLOUD_HASHING_COST');
|
||||
}
|
||||
|
||||
if (getenv('OWNCLOUD_BLACKLISTED_FILES') != '') {
|
||||
$config['blacklisted_files'] = explode(',', getenv('OWNCLOUD_BLACKLISTED_FILES'));
|
||||
}
|
||||
|
||||
if (getenv('OWNCLOUD_EXCLUDED_DIRECTORIES') != '') {
|
||||
$config['excluded_directories'] = explode(',', getenv('OWNCLOUD_EXCLUDED_DIRECTORIES'));
|
||||
}
|
||||
|
||||
if (getenv('OWNCLOUD_INTEGRITY_EXCLUDED_FILES') != '') {
|
||||
$config['integrity.excluded.files'] = explode(',', getenv('OWNCLOUD_INTEGRITY_EXCLUDED_FILES'));
|
||||
}
|
||||
|
||||
if (getenv('OWNCLOUD_INTEGRITY_IGNORE_MISSING_APP_SIGNATURE') != '') {
|
||||
$config['integrity.ignore.missing.app.signature'] = explode(',', getenv('OWNCLOUD_INTEGRITY_IGNORE_MISSING_APP_SIGNATURE'));
|
||||
}
|
||||
|
||||
if (getenv('OWNCLOUD_SHARE_FOLDER') != '') {
|
||||
$config['share_folder'] = getenv('OWNCLOUD_SHARE_FOLDER');
|
||||
}
|
||||
|
||||
if (getenv('OWNCLOUD_CIPHER') != '') {
|
||||
$config['cipher'] = getenv('OWNCLOUD_CIPHER');
|
||||
}
|
||||
|
||||
if (getenv('OWNCLOUD_MINIMUM_SUPPORTED_DESKTOP_VERSION') != '') {
|
||||
$config['minimum.supported.desktop.version'] = getenv('OWNCLOUD_MINIMUM_SUPPORTED_DESKTOP_VERSION');
|
||||
}
|
||||
|
||||
if (getenv('OWNCLOUD_QUOTA_INCLUDE_EXTERNAL_STORAGE') != '') {
|
||||
$config['quota_include_external_storage'] = getenv('OWNCLOUD_QUOTA_INCLUDE_EXTERNAL_STORAGE') == 'true';
|
||||
}
|
||||
|
||||
if (getenv('OWNCLOUD_FILESYSTEM_CHECK_CHANGES') != '') {
|
||||
$config['filesystem_check_changes'] = (int) getenv('OWNCLOUD_FILESYSTEM_CHECK_CHANGES');
|
||||
}
|
||||
|
||||
if (getenv('OWNCLOUD_PART_FILE_IN_STORAGE') != '') {
|
||||
$config['part_file_in_storage'] = getenv('OWNCLOUD_PART_FILE_IN_STORAGE') == 'true';
|
||||
}
|
||||
|
||||
if (getenv('OWNCLOUD_MOUNT_FILE') != '') {
|
||||
$config['mount_file'] = getenv('OWNCLOUD_MOUNT_FILE');
|
||||
}
|
||||
|
||||
if (getenv('OWNCLOUD_FILESYSTEM_CACHE_READONLY') != '') {
|
||||
$config['filesystem_cache_readonly'] = getenv('OWNCLOUD_FILESYSTEM_CACHE_READONLY') == 'true';
|
||||
}
|
||||
|
||||
if (getenv('OWNCLOUD_SECRET') != '') {
|
||||
$config['secret'] = getenv('OWNCLOUD_SECRET');
|
||||
}
|
||||
|
||||
if (getenv('OWNCLOUD_TRUSTED_PROXIES') != '') {
|
||||
$config['trusted_proxies'] = explode(',', getenv('OWNCLOUD_TRUSTED_PROXIES'));
|
||||
}
|
||||
|
||||
if (getenv('OWNCLOUD_FORWARDED_FOR_HEADERS') != '') {
|
||||
$config['forwarded_for_headers'] = explode(',', getenv('OWNCLOUD_FORWARDED_FOR_HEADERS'));
|
||||
}
|
||||
|
||||
if (getenv('OWNCLOUD_MAX_FILESIZE_ANIMATED_GIFS_PUBLIC_SHARING') != '') {
|
||||
$config['max_filesize_animated_gifs_public_sharing'] = (int) getenv('OWNCLOUD_MAX_FILESIZE_ANIMATED_GIFS_PUBLIC_SHARING');
|
||||
}
|
||||
|
||||
if (getenv('OWNCLOUD_FILELOCKING_ENABLED') != '') {
|
||||
$config['filelocking.enabled'] = getenv('OWNCLOUD_FILELOCKING_ENABLED') == 'true';
|
||||
}
|
||||
|
||||
if (getenv('OWNCLOUD_FILELOCKING_TTL') != '') {
|
||||
$config['filelocking.ttl'] = getenv('OWNCLOUD_FILELOCKING_TTL');
|
||||
}
|
||||
|
||||
if (getenv('OWNCLOUD_MEMCACHE_LOCKING') != '') {
|
||||
$config['memcache.locking'] = getenv('OWNCLOUD_MEMCACHE_LOCKING');
|
||||
}
|
||||
|
||||
if (getenv('OWNCLOUD_UPGRADE_AUTOMATIC_APP_UPDATES') != '') {
|
||||
$config['upgrade.automatic-app-update'] = getenv('OWNCLOUD_UPGRADE_AUTOMATIC_APP_UPDATES') == 'true';
|
||||
}
|
||||
|
||||
if (getenv('OWNCLOUD_DEBUG') != '') {
|
||||
$config['debug'] = getenv('OWNCLOUD_DEBUG') == 'true';
|
||||
}
|
||||
|
||||
if (getenv('OWNCLOUD_FILES_EXTERNAL_ALLOW_NEW_LOCAL') != '') {
|
||||
$config['files_external_allow_create_new_local'] = getenv('OWNCLOUD_FILES_EXTERNAL_ALLOW_NEW_LOCAL') == 'true';
|
||||
}
|
||||
|
||||
if (getenv('OWNCLOUD_SMB_LOGGING_ENABLE') != '') {
|
||||
$config['smb.logging.enable'] = getenv('OWNCLOUD_SMB_LOGGING_ENABLE');
|
||||
}
|
||||
|
||||
if (getenv('OWNCLOUD_DAV_ENABLE_ASYNC') != '') {
|
||||
$config['dav.enable.async'] = getenv('OWNCLOUD_DAV_ENABLE_ASYNC');
|
||||
}
|
||||
|
||||
if (getenv('OWNCLOUD_LICENSE_KEY') != '') {
|
||||
$config['license-key'] = getenv('OWNCLOUD_LICENSE_KEY');
|
||||
}
|
||||
|
||||
if (getenv('OWNCLOUD_MARKETPLACE_KEY') != '') {
|
||||
$config['marketplace.key'] = getenv('OWNCLOUD_MARKETPLACE_KEY');
|
||||
}
|
||||
|
||||
if (getenv('OWNCLOUD_MARKETPLACE_CA') != '') {
|
||||
$config['marketplace.ca'] = getenv('OWNCLOUD_MARKETPLACE_CA');
|
||||
}
|
||||
|
||||
if (getenv('OWNCLOUD_APPSTORE_URL') != '') {
|
||||
$config['appstoreurl'] = getenv('OWNCLOUD_APPSTORE_URL');
|
||||
}
|
||||
|
||||
if (getenv('OWNCLOUD_LOGIN_ALTERNATIVES') != '') {
|
||||
$rows = explode(',', getenv('OWNCLOUD_LOGIN_ALTERNATIVES'));
|
||||
|
||||
foreach ($rows as $key => $value) {
|
||||
parse_str($value, $opts);
|
||||
$config['login.alternatives'][$key] = $opts;
|
||||
}
|
||||
}
|
||||
|
||||
switch (true) {
|
||||
case getenv('OWNCLOUD_REDIS_ENABLED') && getenv('OWNCLOUD_REDIS_ENABLED') == 'true':
|
||||
$config = array_merge_recursive($config, [
|
||||
'memcache.distributed' => '\OC\Memcache\Redis',
|
||||
'memcache.locking' => '\OC\Memcache\Redis',
|
||||
]);
|
||||
switch (true) {
|
||||
case getenv('OWNCLOUD_REDIS_SEEDS') != '':
|
||||
$config['redis.cluster']['seeds'] = explode(',', getenv('OWNCLOUD_REDIS_SEEDS'));
|
||||
|
||||
if (getenv('OWNCLOUD_REDIS_TIMEOUT') != '') {
|
||||
$config['redis.cluster']['timeout'] = (float) getenv('OWNCLOUD_REDIS_TIMEOUT');
|
||||
}
|
||||
|
||||
if (getenv('OWNCLOUD_REDIS_READ_TIMEOUT') != '') {
|
||||
$config['redis.cluster']['read_timeout'] = (float) getenv('OWNCLOUD_REDIS_READ_TIMEOUT');
|
||||
}
|
||||
|
||||
if (getenv('OWNCLOUD_REDIS_FAILOVER_MODE') != '') {
|
||||
switch (getenv('OWNCLOUD_REDIS_FAILOVER_MODE')) {
|
||||
case 'FAILOVER_NONE':
|
||||
$config['redis.cluster']['failover_mode'] = \RedisCluster::FAILOVER_NONE;
|
||||
case 'FAILOVER_ERROR':
|
||||
$config['redis.cluster']['failover_mode'] = \RedisCluster::FAILOVER_ERROR;
|
||||
case 'FAILOVER_DISTRIBUTE':
|
||||
$config['redis.cluster']['failover_mode'] = \RedisCluster::FAILOVER_DISTRIBUTE;
|
||||
}
|
||||
}
|
||||
|
||||
case getenv('OWNCLOUD_REDIS_HOST') != '':
|
||||
$config['redis']['host'] = getenv('OWNCLOUD_REDIS_HOST');
|
||||
$config['redis']['port'] = getenv('OWNCLOUD_REDIS_PORT');
|
||||
|
||||
if (getenv('OWNCLOUD_REDIS_DB') != '') {
|
||||
$config['redis']['dbindex'] = getenv('OWNCLOUD_REDIS_DB');
|
||||
}
|
||||
|
||||
if (getenv('OWNCLOUD_REDIS_PASSWORD') != '') {
|
||||
$config['redis']['password'] = getenv('OWNCLOUD_REDIS_PASSWORD');
|
||||
}
|
||||
|
||||
if (getenv('OWNCLOUD_REDIS_TIMEOUT') != '') {
|
||||
$config['redis']['timeout'] = (float) getenv('OWNCLOUD_REDIS_TIMEOUT');
|
||||
}
|
||||
}
|
||||
|
||||
break;
|
||||
case getenv('OWNCLOUD_MEMCACHED_ENABLED') && getenv('OWNCLOUD_MEMCACHED_ENABLED') == 'true':
|
||||
$config = array_merge_recursive($config, [
|
||||
'memcache.distributed' => '\OC\Memcache\Memcached',
|
||||
'memcache.locking' => '\OC\Memcache\Memcached',
|
||||
|
||||
'memcached_servers' => [
|
||||
[
|
||||
getenv('OWNCLOUD_MEMCACHED_HOST'),
|
||||
getenv('OWNCLOUD_MEMCACHED_PORT'),
|
||||
],
|
||||
],
|
||||
]);
|
||||
|
||||
if (getenv('OWNCLOUD_MEMCACHED_OPTIONS') != '') {
|
||||
parse_str(getenv('OWNCLOUD_MEMCACHED_OPTIONS'), $opts);
|
||||
|
||||
foreach($opts as $key => $value) {
|
||||
$config['memcached_options'][constant($key)] = $value;
|
||||
}
|
||||
}
|
||||
|
||||
break;
|
||||
}
|
||||
|
||||
return $config;
|
||||
}
|
||||
|
||||
$CONFIG = getConfigFromEnv();
|
||||
@@ -1,3 +0,0 @@
|
||||
config.json
|
||||
identifier-registration.yaml
|
||||
proxy-config.json
|
||||
@@ -1,34 +0,0 @@
|
||||
{
|
||||
"server": "https://ocis.owncloud.test",
|
||||
"theme": "owncloud",
|
||||
"version": "0.1.0",
|
||||
"openIdConnect": {
|
||||
"metadata_url": "https://ocis.owncloud.test/.well-known/openid-configuration",
|
||||
"authority": "https://ocis.owncloud.test",
|
||||
"client_id": "web",
|
||||
"response_type": "code",
|
||||
"scope": "openid profile email"
|
||||
},
|
||||
"applications": [
|
||||
{
|
||||
"title": {
|
||||
"en": "Classic Design",
|
||||
"de": "Klassisches ownCloud"
|
||||
},
|
||||
"icon": "switch_ui",
|
||||
"url": "https://oc10.owncloud.test",
|
||||
"target": "_self"
|
||||
},
|
||||
{
|
||||
"title": {
|
||||
"en": "Settings",
|
||||
"de": "Einstellungen"
|
||||
},
|
||||
"icon": "application",
|
||||
"url": "https://oc10.owncloud.test/index.php/settings/personal",
|
||||
"target": "_self",
|
||||
"menu": "user"
|
||||
}
|
||||
],
|
||||
"apps": ["files", "draw-io", "markdown-editor", "media-viewer"]
|
||||
}
|
||||
-52
@@ -1,52 +0,0 @@
|
||||
---
|
||||
# OpenID Connect client registry.
|
||||
clients:
|
||||
- id: web
|
||||
name: OCIS
|
||||
application_type: web
|
||||
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
|
||||
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
|
||||
|
||||
- id: xdXOt13JKxym1B1QcEncf2XDkLAexMBFwiT9j6EfhhHFJhs2KM9jbjTmf8JBXE69
|
||||
secret: UBntmLjC2yYCeHwsyj73Uwo9TAaecAetRwMw0xYcvNL9yRdLSUi0hUAHfvCHFeFh
|
||||
name: ownCloud desktop app
|
||||
application_type: native
|
||||
redirect_uris:
|
||||
- http://127.0.0.1
|
||||
- http://localhost
|
||||
|
||||
- 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
|
||||
Loaded 100 of 417 files, more files were not shown because too many files have changed in this diff.
Show more
Reference in new issue
Block a user