-
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.
Merge pull request #10 from wuespace/config-rewrite
Rewrite configuration / environment logic using `@wuespace/envar`
- Loading branch information
Showing
25 changed files
with
718 additions
and
263 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 |
---|---|---|
@@ -1,16 +1,36 @@ | ||
name: deno-asn-generator | ||
|
||
services: | ||
app: | ||
image: asngenerator | ||
asn-generator: | ||
image: ghcr.io/wuespace/deno-asn-generator | ||
build: | ||
context: . | ||
dockerfile: Dockerfile | ||
ports: | ||
- "127.0.0.1:8080:8080" | ||
env_file: | ||
- .env | ||
- "127.0.0.1:8080:${PORT:-8080}" | ||
volumes: | ||
- asn-generator-data:/app/data | ||
environment: | ||
ASN_NAMESPACE_RANGE: 50 | ||
ASN_PREFIX: WBD | ||
ASN_BARCODE_TYPE: CODE128 | ||
- PORT=${PORT:-8080} | ||
- ASN_PREFIX | ||
- ASN_NAMESPACE_RANGE | ||
- ASN_ENABLE_NAMESPACE_EXTENSION | ||
- ADDITIONAL_MANAGED_NAMESPACES | ||
- ASN_LOOKUP_URL | ||
- ASN_LOOKUP_INCLUDE_PREFIX | ||
- ASN_BARCODE_TYPE | ||
- DATA_DIR | ||
- DB_FILE_NAME | ||
- DENO_KV_ACCESS_TOKEN | ||
- OIDC_ISSUER | ||
- OIDC_AUTH_SECRET | ||
- OIDC_CLIENT_ID | ||
- OIDC_CLIENT_SECRET | ||
- OIDC_REDIRECT_URI | ||
- OIDC_SCOPES | ||
- OIDC_UID_CLAIM | ||
- OIDC_NAME_CLAIM | ||
- OIDC_ROLES_CLAIM | ||
|
||
volumes: | ||
asn-generator-data: |
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 |
---|---|---|
|
@@ -13,7 +13,10 @@ | |
"test": "DATA_DIR=data-test ASN_PREFIX=ASN ASN_NAMESPACE_RANGE=50 ASN_ENABLE_NAMESPACE_EXTANSION=1 deno test -A", | ||
"docs": "deno doc --reload --html main.ts", | ||
"lint": "DENO_FUTURE=1 deno lint && deno doc --lint main.ts lib/*/mod.ts", | ||
"check": "deno check main.ts lib/**/*.ts" | ||
"check": "deno check main.ts lib/**/*.ts", | ||
"env:all": "deno task env:example && deno task env:docs", | ||
"env:example": "deno run --allow-read --allow-write jsr:@wuespace/[email protected] example -r example.env", | ||
"env:docs": "deno run --allow-read --allow-write jsr:@wuespace/[email protected] docs -o env.md example.env" | ||
}, | ||
"imports": { | ||
"$/": "./", | ||
|
@@ -27,23 +30,15 @@ | |
"@std/assert": "jsr:@std/assert@^1.0.4", | ||
"@std/cli": "jsr:@std/cli@^1.0.5", | ||
"@std/datetime": "jsr:@std/datetime@^0.225.2", | ||
"@std/dotenv": "jsr:@std/dotenv@^0.225.2" | ||
"@std/dotenv": "jsr:@std/dotenv@^0.225.2", | ||
"@wuespace/envar": "jsr:@wuespace/envar@^1.1.1" | ||
}, | ||
"unstable": [ | ||
"kv" | ||
], | ||
"unstable": ["kv"], | ||
"compilerOptions": { | ||
"jsx": "precompile", | ||
"jsxImportSource": "@hono/hono/jsx" | ||
}, | ||
"lint": { | ||
"exclude": [ | ||
"deps/", | ||
"dist/", | ||
"docs/", | ||
"node_modules/", | ||
"vendor/", | ||
"data/" | ||
] | ||
"exclude": ["deps/", "dist/", "docs/", "node_modules/", "vendor/", "data/"] | ||
} | ||
} |
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
Oops, something went wrong.