mirror of https://github.com/boxyhq/jackson.git
Update port from 5000 to 5225 and 3000 to 3366 (#89)
* Update port from 5000 to 5225 and 3000 to 3366 * bumped up version Co-authored-by: Deepak Prabhakara <deepak@boxyhq.com>
This commit is contained in:
parent
6e672ba5f2
commit
af6c984a4a
|
@ -35,7 +35,7 @@ COPY --from=builder /app/package.json ./package.json
|
|||
|
||||
USER nextjs
|
||||
|
||||
EXPOSE 5000
|
||||
EXPOSE 5225
|
||||
|
||||
# Next.js collects completely anonymous telemetry data about general usage.
|
||||
# Learn more here: https://nextjs.org/telemetry
|
||||
|
|
|
@ -1,7 +1,7 @@
|
|||
import { DatabaseEngine, DatabaseType } from '@boxyhq/saml-jackson';
|
||||
|
||||
const hostUrl = process.env.HOST_URL || 'localhost';
|
||||
const hostPort = Number(process.env.PORT || '5000');
|
||||
const hostPort = Number(process.env.PORT || '5225');
|
||||
const externalUrl = process.env.EXTERNAL_URL || 'http://' + hostUrl + ':' + hostPort;
|
||||
const samlPath = '/api/oauth/saml';
|
||||
|
||||
|
|
File diff suppressed because it is too large
Load Diff
|
@ -1,7 +1,7 @@
|
|||
{
|
||||
"name": "@boxyhq/saml-jackson",
|
||||
"version": "do-not-change",
|
||||
"description": "SAML 2.0 service",
|
||||
"description": "SAML Jackson library",
|
||||
"keywords": [
|
||||
"SAML 2.0"
|
||||
],
|
||||
|
|
|
@ -61,13 +61,13 @@ export class APIController implements IAPIController {
|
|||
* in: formData
|
||||
* required: true
|
||||
* type: string
|
||||
* example: http://localhost:3000/login/saml
|
||||
* example: http://localhost:3366/login/saml
|
||||
* - name: redirectUrl
|
||||
* description: JSON encoded array containing a list of allowed redirect URLs
|
||||
* in: formData
|
||||
* required: true
|
||||
* type: string
|
||||
* example: '["http://localhost:3000/*"]'
|
||||
* example: '["http://localhost:3366/*"]'
|
||||
* - name: tenant
|
||||
* description: Tenant
|
||||
* in: formData
|
||||
|
|
|
@ -1,6 +1,6 @@
|
|||
module.exports = {
|
||||
defaultRedirectUrl: 'http://localhost:3000/sso/oauth/completed',
|
||||
redirectUrl: '["http://localhost:3000"]',
|
||||
defaultRedirectUrl: 'http://localhost:3366/sso/oauth/completed',
|
||||
redirectUrl: '["http://localhost:3366"]',
|
||||
tenant: 'boxyhq.com',
|
||||
product: 'crm',
|
||||
};
|
||||
|
|
|
@ -35,8 +35,8 @@ const options = <JacksonOption>{
|
|||
const samlConfig = {
|
||||
tenant: 'boxyhq.com',
|
||||
product: 'crm',
|
||||
redirectUrl: '["http://localhost:3000/*"]',
|
||||
defaultRedirectUrl: 'http://localhost:3000/login/saml',
|
||||
redirectUrl: '["http://localhost:3366/*"]',
|
||||
defaultRedirectUrl: 'http://localhost:3366/login/saml',
|
||||
encodedRawMetadata: null,
|
||||
};
|
||||
|
||||
|
|
|
@ -1,12 +1,12 @@
|
|||
{
|
||||
"name": "jackson",
|
||||
"version": "0.3.8",
|
||||
"version": "0.4.0",
|
||||
"lockfileVersion": 2,
|
||||
"requires": true,
|
||||
"packages": {
|
||||
"": {
|
||||
"name": "jackson",
|
||||
"version": "0.3.8",
|
||||
"version": "0.4.0",
|
||||
"license": "Apache 2.0",
|
||||
"dependencies": {
|
||||
"@boxyhq/saml-jackson": "file:./npm",
|
||||
|
|
|
@ -1,8 +1,8 @@
|
|||
{
|
||||
"name": "jackson",
|
||||
"version": "0.3.8",
|
||||
"version": "0.4.0",
|
||||
"private": true,
|
||||
"description": "SAML 2.0 service (next.js)",
|
||||
"description": "SAML 2.0 service",
|
||||
"keywords": [
|
||||
"SAML 2.0"
|
||||
],
|
||||
|
@ -13,7 +13,7 @@
|
|||
"license": "Apache 2.0",
|
||||
"scripts": {
|
||||
"build": "next build",
|
||||
"dev": "cross-env JACKSON_API_KEYS=secret IDP_ENABLED=true next dev -p 5000",
|
||||
"dev": "cross-env JACKSON_API_KEYS=secret IDP_ENABLED=true next dev -p 5225",
|
||||
"dev-dbs": "docker-compose -f ./_dev/docker-compose.yml up -d",
|
||||
"dev-dbs-destroy": "docker-compose -f ./_dev/docker-compose.yml down --volumes --remove-orphans",
|
||||
"lint": "next lint",
|
||||
|
@ -24,7 +24,7 @@
|
|||
"postgres": "cross-env JACKSON_API_KEYS=secret DB_ENGINE=sql DB_TYPE=postgres DB_URL=postgres://postgres:postgres@localhost:5432/postgres npm run dev",
|
||||
"mysql": "cross-env JACKSON_API_KEYS=secret DB_ENGINE=sql DB_TYPE=mysql DB_URL=mysql://root:mysql@localhost:3307/mysql npm run dev",
|
||||
"mariadb": "cross-env JACKSON_API_KEYS=secret DB_ENGINE=sql DB_TYPE=mariadb DB_URL=mariadb://root@localhost:3306/mysql npm run dev",
|
||||
"start": "next start -p 5000",
|
||||
"start": "next start -p 5225",
|
||||
"swagger-jsdoc": "swagger-jsdoc -d swagger/swaggerDefinition.js npm/src/**/*.ts -o swagger/swagger.json arg",
|
||||
"prepare": "husky install"
|
||||
},
|
||||
|
|
|
@ -14,7 +14,7 @@
|
|||
"url": "https://github.com/boxyhq/jackson/blob/main/LICENSE"
|
||||
}
|
||||
},
|
||||
"host": "localhost:5000",
|
||||
"host": "localhost:5225",
|
||||
"basePath": "/",
|
||||
"schemes": [
|
||||
"http",
|
||||
|
@ -61,7 +61,7 @@
|
|||
"in": "formData",
|
||||
"required": true,
|
||||
"type": "string",
|
||||
"example": "http://localhost:3000/login/saml"
|
||||
"example": "http://localhost:3366/login/saml"
|
||||
},
|
||||
{
|
||||
"name": "redirectUrl",
|
||||
|
@ -69,7 +69,7 @@
|
|||
"in": "formData",
|
||||
"required": true,
|
||||
"type": "string",
|
||||
"example": "[\"http://localhost:3000/*\"]"
|
||||
"example": "[\"http://localhost:3366/*\"]"
|
||||
},
|
||||
{
|
||||
"name": "tenant",
|
||||
|
|
|
@ -16,7 +16,7 @@ module.exports = {
|
|||
url: 'https://github.com/boxyhq/jackson/blob/main/LICENSE',
|
||||
},
|
||||
},
|
||||
host: 'localhost:5000',
|
||||
host: 'localhost:5225',
|
||||
basePath: '/',
|
||||
schemes: ['http', 'https'],
|
||||
securityDefinitions: {
|
||||
|
|
Loading…
Reference in New Issue