-
Notifications
You must be signed in to change notification settings - Fork 97
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 #91 from camicroscope/develop
For 3.9.2
- Loading branch information
Showing
8 changed files
with
555 additions
and
44 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,46 @@ | ||
# | ||
# REQUIRED fields | ||
# | ||
|
||
# jwks url for id provider | ||
JWK_URL=http://localhost:3000 | ||
|
||
# | ||
# Optional Fields | ||
# | ||
|
||
# number of child processes | ||
WORKERS = 4 | ||
|
||
# the port to use | ||
PORT = 4010 | ||
|
||
# jwt audience to accept, (if unset, does not check) | ||
AUD = false | ||
|
||
# jwt issuer to accept, (if unset, does not check) | ||
ISS = true | ||
|
||
# expire in time for jwks | ||
EXPIRY = 1d | ||
|
||
# set truthy to disable permission and login handlers | ||
DISABLE_SEC = false | ||
|
||
# set truthy to allow public users | false | | ||
ALLOW_PUBLIC = false | ||
|
||
# IIP server location | ||
IIP_PATH = http://ca-iip | ||
|
||
# Database (mongo) connection uri | ||
MONGO_URI = mongodb://localhost | ||
|
||
# mongo db to use | ||
MONGO_DB = camic | ||
|
||
# automatic generate key in server in not found | ||
GENERATE_KEY_IF_MISSING = false | ||
|
||
# time at which to enable security, see parsable times at https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Date/parse | ||
ENABLE_SECURITY_AT = false |
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,29 @@ | ||
# This workflow will do a clean install of node dependencies, build the source code and run tests across different versions of node | ||
# For more information see: https://help.github.com/actions/language-and-framework-guides/using-nodejs-with-github-actions | ||
|
||
name: Node.js CI | ||
|
||
on: [push] | ||
|
||
jobs: | ||
build: | ||
|
||
runs-on: ubuntu-latest | ||
|
||
strategy: | ||
matrix: | ||
node-version: [10.x] | ||
# See supported Node.js release schedule at https://nodejs.org/en/about/releases/ | ||
|
||
steps: | ||
- uses: actions/checkout@v2 | ||
- name: Use Node.js ${{ matrix.node-version }} | ||
uses: actions/setup-node@v1 | ||
with: | ||
node-version: ${{ matrix.node-version }} | ||
- run: npm ci | ||
- run: npm install -g mocha | ||
- run: npm install eslint | ||
- run: npm install eslint-config-google | ||
- run: npm run build --if-present | ||
- run: npm run lint |
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,38 @@ | ||
{ | ||
"defaultSrc": [ | ||
"'self'" | ||
], | ||
"scriptSrc": [ | ||
"'self'", | ||
"'unsafe-inline'", | ||
"'unsafe-eval'", | ||
"code.jquery.com", | ||
"stackpath.bootstrapcdn.com", | ||
"apis.google.com", | ||
"ajax.googleapis.com", | ||
"cdn.jsdelivr.net", | ||
"unpkg.com", | ||
"http://openseadragon.github.io" | ||
], | ||
"styleSrc": [ | ||
"'self'", | ||
"'unsafe-inline'", | ||
"fonts.googleapis.com", | ||
"use.fontawesome.com", | ||
"stackpath.bootstrapcdn.com", | ||
"cdnjs.cloudflare.com" | ||
], | ||
"fontSrc": [ | ||
"'self'", | ||
"use.fontawesome.com", | ||
"fonts.gstatic.com", | ||
"cdnjs.cloudflare.com" | ||
], | ||
"imgSrc": [ | ||
"'self'" | ||
], | ||
"frameSrc": [ | ||
"'self'", | ||
"accounts.google.com" | ||
] | ||
} |
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 +1,6 @@ | ||
openssl req -subj '/CN=www.camicroscope.com/O=caMicroscope Local Instance Key./C=US' -x509 -nodes -newkey rsa:2048 -keyout key -out key.pub | ||
#!/usr/bin/env bash | ||
|
||
# to generate keys only in the /keys directory. | ||
PWD="$(dirname "$0")" | ||
|
||
openssl req -subj '/CN=www.camicroscope.com/O=caMicroscope Local Instance Key./C=US' -x509 -nodes -newkey rsa:2048 -keyout $PWD/key -out $PWD/key.pub |
Oops, something went wrong.