-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[docs] Simplify configs by using serviceType and more INHERITS.
- Loading branch information
Showing
15 changed files
with
135 additions
and
79 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -24,6 +24,8 @@ | |
|
||
|
||
- if: isLoggedIn | ||
unless: | ||
slotEmpty: serviceType | ||
aclSubChain: logged_in_users | ||
|
||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,49 @@ | ||
%YAML 1.2 | ||
# -*- coding: UTF-8, tab-width: 4 -*- | ||
--- | ||
|
||
^: | ||
# This data is used for `INHERITS` in service config example files. | ||
|
||
approvalFeed: | ||
type: 'approval' | ||
feedTitle: 'Annos waiting for approval' # optional | ||
|
||
linkTpl: '/static/local/redir/approve-anno.html?%as' | ||
# Many RSS readers require an absolute URL. Our RSS formatter | ||
# will thus replace a leading slash with its public base URL. | ||
# For available slots, see `src/hnd/anno/rssLinkSlots.mjs`. | ||
|
||
|
||
diglit-like: | ||
targetUrlMetadata: | ||
vSubDirs: | ||
- 'projectName' | ||
- 'pageNumStr' | ||
# vSubDir = virtual subdirectory maps parts of the URL into the | ||
# ACL meta data namespace, so you can use it in ACL conditions. | ||
# They will also be displayed in "access denied" error messages | ||
# to help debug the conitions that caused the error. | ||
|
||
staticAclMeta: | ||
serviceType: 'diglit-like' | ||
|
||
|
||
|
||
journals-like: | ||
targetUrlMetadata: | ||
vSubDirs: | ||
- 'zsKuerzel' | ||
- null # expected to always be 'article' | ||
- null # expected to always be 'view' | ||
- 'submissionId' | ||
|
||
staticAclMeta: | ||
serviceType: 'journals-like' | ||
|
||
|
||
|
||
|
||
|
||
|
||
... |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,39 @@ | ||
%YAML 1.2 | ||
# -*- coding: UTF-8, tab-width: 4 -*- | ||
--- | ||
|
||
'': | ||
annoBrowserRedirect: '%sc/%bi/image,info' | ||
# ^-- For available slots, see `src/hnd/anno/browserRedirect.mjs` | ||
|
||
approvalRequired: true | ||
|
||
autoRequestNextVersionDoi: true | ||
# ^- If enabled, when a revision is submitted for a version that has | ||
# a DOI, a DOI request is stamped onto the newly submitted version. | ||
|
||
|
||
rssFeeds: | ||
'': # <- Empty sub URL = Defaults for all feeds for this service. | ||
# And since this is in the service defaults, these settings | ||
# will set the defaults for all feeds in all services. | ||
|
||
keyHash: '' | ||
# Empty key hash disables access to the feed. | ||
# This is usually a good default because usually you want a | ||
# different key for each feed. | ||
# For your convenience, we include a bcrypt token generator: | ||
# `../../../../util/create_bcrypt_rss_token.sh` | ||
|
||
# prefix: 'https://…' | ||
# ^-- When omitted, assumes `1` (the number); and numbers | ||
# denote the n-th item from targetUrlMetadata. | ||
# Thus, omitting the prefix means to use the first | ||
# targetUrlMetadata prefix URL. | ||
|
||
|
||
|
||
|
||
|
||
|
||
... |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
%YAML 1.2 | ||
# -*- coding: UTF-8, tab-width: 4 -*- | ||
--- | ||
|
||
^: | ||
INHERITS: 'svctpl.diglit-like' | ||
|
||
targetUrlMetadata: | ||
prefixes: | ||
- 'https://digi.hadw-bw.de/view/' | ||
|
||
|
||
... |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters