UNPKG

@nestjs-mod/docker-compose

Version:

Docker Compose is a tool for defining and running multi-container applications. It is the key to unlocking a streamlined and efficient development and deployment experience. (Generator docker-compose.yml for https://docs.docker.com/compose)

236 lines 11.4 kB
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.DockerComposeAuthorizerConfiguration = void 0; const tslib_1 = require("tslib"); const common_1 = require("@nestjs-mod/common"); let DockerComposeAuthorizerConfiguration = class DockerComposeAuthorizerConfiguration { }; exports.DockerComposeAuthorizerConfiguration = DockerComposeAuthorizerConfiguration; tslib_1.__decorate([ (0, common_1.ConfigModelProperty)({ description: 'Docker image name', default: 'lakhansamani/authorizer:1.3.8', }), tslib_1.__metadata("design:type", String) ], DockerComposeAuthorizerConfiguration.prototype, "image", void 0); tslib_1.__decorate([ (0, common_1.ConfigModelProperty)({ description: 'Feature name for generate prefix to environments keys', }), tslib_1.__metadata("design:type", String) ], DockerComposeAuthorizerConfiguration.prototype, "featureName", void 0); tslib_1.__decorate([ (0, common_1.ConfigModelProperty)({ description: 'Network, if not set networkNames have project name and driver=bridge', }), tslib_1.__metadata("design:type", Array) ], DockerComposeAuthorizerConfiguration.prototype, "networks", void 0); tslib_1.__decorate([ (0, common_1.ConfigModelProperty)({ description: 'External port for sharing container', transform: new common_1.NumberTransformer(), default: 8080, }), tslib_1.__metadata("design:type", Number) ], DockerComposeAuthorizerConfiguration.prototype, "externalClientPort", void 0); tslib_1.__decorate([ (0, common_1.ConfigModelProperty)({ description: 'Depends on services', }), tslib_1.__metadata("design:type", Object) ], DockerComposeAuthorizerConfiguration.prototype, "dependsOnServiceNames", void 0); tslib_1.__decorate([ (0, common_1.ConfigModelProperty)({ description: 'Which env you are running your server in. Supported envs production, development', default: 'production', }), tslib_1.__metadata("design:type", String) ], DockerComposeAuthorizerConfiguration.prototype, "env", void 0); tslib_1.__decorate([ (0, common_1.ConfigModelProperty)({ description: 'Reset password link, that can be used to send the correct forgot password link', default: '/reset-password', }), tslib_1.__metadata("design:type", String) ], DockerComposeAuthorizerConfiguration.prototype, "resetPasswordUrl", void 0); tslib_1.__decorate([ (0, common_1.ConfigModelProperty)({ description: 'Used to explicitly disable email and password based authentication', }), tslib_1.__metadata("design:type", String) ], DockerComposeAuthorizerConfiguration.prototype, "disableBasicAuthentication", void 0); tslib_1.__decorate([ (0, common_1.ConfigModelProperty)({ description: 'Used to disable the email verification while signing up', }), tslib_1.__metadata("design:type", String) ], DockerComposeAuthorizerConfiguration.prototype, "disableEmailVerification", void 0); tslib_1.__decorate([ (0, common_1.ConfigModelProperty)({ description: 'Used to disable the password less login up', }), tslib_1.__metadata("design:type", String) ], DockerComposeAuthorizerConfiguration.prototype, "disableMagicLinkLogin", void 0); tslib_1.__decorate([ (0, common_1.ConfigModelProperty)({ description: 'Used to disable the default login page that comes with authorizer instance. This is helpful when user is building their custom login page', }), tslib_1.__metadata("design:type", String) ], DockerComposeAuthorizerConfiguration.prototype, "disableLoginPage", void 0); tslib_1.__decorate([ (0, common_1.ConfigModelProperty)({ description: 'Used to disable the sign up feature. It is useful when you want to have beta release of your product and invite only limited users', }), tslib_1.__metadata("design:type", String) ], DockerComposeAuthorizerConfiguration.prototype, "disableSignUp", void 0); tslib_1.__decorate([ (0, common_1.ConfigModelProperty)({ description: 'Comma separated list of roles that your platform supports', default: 'user,admin', }), tslib_1.__metadata("design:type", String) ], DockerComposeAuthorizerConfiguration.prototype, "roles", void 0); tslib_1.__decorate([ (0, common_1.ConfigModelProperty)({ description: 'Comma separated list of roles that acts as Default roles which you would like to assign to users while they signup /login', default: 'user', }), tslib_1.__metadata("design:type", String) ], DockerComposeAuthorizerConfiguration.prototype, "defaultRoles", void 0); tslib_1.__decorate([ (0, common_1.ConfigModelProperty)({ description: 'Comma separated list of roles for which signup should be disabled. Example admin roles. This roles can only assigned manually via super admin like adminUpdateProfile', }), tslib_1.__metadata("design:type", String) ], DockerComposeAuthorizerConfiguration.prototype, "protectedRoles", void 0); tslib_1.__decorate([ (0, common_1.ConfigModelProperty)({ description: 'Claim key that will be part of JWT token', default: 'role', }), tslib_1.__metadata("design:type", String) ], DockerComposeAuthorizerConfiguration.prototype, "jwtRoleClaim", void 0); tslib_1.__decorate([ (0, common_1.ConfigModelProperty)({ description: 'Name of organization that you want on default login page', default: 'Authorizer', }), tslib_1.__metadata("design:type", String) ], DockerComposeAuthorizerConfiguration.prototype, "organizationName", void 0); tslib_1.__decorate([ (0, common_1.ConfigModelProperty)({ description: 'Logo of organization that you want on default login page', default: 'Authorizer Logo', }), tslib_1.__metadata("design:type", String) ], DockerComposeAuthorizerConfiguration.prototype, "organizationLogo", void 0); tslib_1.__decorate([ (0, common_1.ConfigModelProperty)({ description: 'Javascript function to add extra keys to your JWT id token. This feature is developed using otto and only supports writing function in ES5. Check the sample here', }), tslib_1.__metadata("design:type", String) ], DockerComposeAuthorizerConfiguration.prototype, "customAccessTokenScript", void 0); tslib_1.__decorate([ (0, common_1.ConfigModelProperty)({ description: 'AWS, region id, where dynamod db tables are to be created. Used with DATABASE_TYPE=dynamodb', }), tslib_1.__metadata("design:type", String) ], DockerComposeAuthorizerConfiguration.prototype, "awsRegion", void 0); tslib_1.__decorate([ (0, common_1.ConfigModelProperty)({ description: 'Bucket used for couchbase database. Used with DATABASE_TYPE=couchbase', default: 'authorizer', }), tslib_1.__metadata("design:type", String) ], DockerComposeAuthorizerConfiguration.prototype, "couchbaseBucket", void 0); tslib_1.__decorate([ (0, common_1.ConfigModelProperty)({ description: 'RAM Quota for the bucket used for couchbase database. It has to be numeric value only. Used with DATABASE_TYPE=couchbase', default: 1000, transform: new common_1.NumberTransformer(), }), tslib_1.__metadata("design:type", Number) ], DockerComposeAuthorizerConfiguration.prototype, "couchbaseBucketRamQuota", void 0); tslib_1.__decorate([ (0, common_1.ConfigModelProperty)({ description: 'Scope in which bucket is created. Used with DATABASE_TYPE=couchbase', default: '_default', }), tslib_1.__metadata("design:type", String) ], DockerComposeAuthorizerConfiguration.prototype, "couchbaseScope", void 0); tslib_1.__decorate([ (0, common_1.ConfigModelProperty)(), tslib_1.__metadata("design:type", String) ], DockerComposeAuthorizerConfiguration.prototype, "test", void 0); tslib_1.__decorate([ (0, common_1.ConfigModelProperty)(), tslib_1.__metadata("design:type", String) ], DockerComposeAuthorizerConfiguration.prototype, "envPath", void 0); tslib_1.__decorate([ (0, common_1.ConfigModelProperty)(), tslib_1.__metadata("design:type", String) ], DockerComposeAuthorizerConfiguration.prototype, "isEmailServiceEnabled", void 0); tslib_1.__decorate([ (0, common_1.ConfigModelProperty)(), tslib_1.__metadata("design:type", String) ], DockerComposeAuthorizerConfiguration.prototype, "isSmsServiceEnabled", void 0); tslib_1.__decorate([ (0, common_1.ConfigModelProperty)(), tslib_1.__metadata("design:type", String) ], DockerComposeAuthorizerConfiguration.prototype, "appCookieSecure", void 0); tslib_1.__decorate([ (0, common_1.ConfigModelProperty)(), tslib_1.__metadata("design:type", String) ], DockerComposeAuthorizerConfiguration.prototype, "adminCookieSecure", void 0); tslib_1.__decorate([ (0, common_1.ConfigModelProperty)(), tslib_1.__metadata("design:type", String) ], DockerComposeAuthorizerConfiguration.prototype, "jwtType", void 0); tslib_1.__decorate([ (0, common_1.ConfigModelProperty)(), tslib_1.__metadata("design:type", String) ], DockerComposeAuthorizerConfiguration.prototype, "jwk", void 0); tslib_1.__decorate([ (0, common_1.ConfigModelProperty)(), tslib_1.__metadata("design:type", String) ], DockerComposeAuthorizerConfiguration.prototype, "disableMobileBasicAuthentication", void 0); tslib_1.__decorate([ (0, common_1.ConfigModelProperty)(), tslib_1.__metadata("design:type", String) ], DockerComposeAuthorizerConfiguration.prototype, "disableRedisForEnv", void 0); tslib_1.__decorate([ (0, common_1.ConfigModelProperty)(), tslib_1.__metadata("design:type", String) ], DockerComposeAuthorizerConfiguration.prototype, "disableStrongPassword", void 0); tslib_1.__decorate([ (0, common_1.ConfigModelProperty)(), tslib_1.__metadata("design:type", String) ], DockerComposeAuthorizerConfiguration.prototype, "enforceMultiFactorAuthentication", void 0); tslib_1.__decorate([ (0, common_1.ConfigModelProperty)(), tslib_1.__metadata("design:type", String) ], DockerComposeAuthorizerConfiguration.prototype, "disableMultiFactorAuthentication", void 0); tslib_1.__decorate([ (0, common_1.ConfigModelProperty)(), tslib_1.__metadata("design:type", String) ], DockerComposeAuthorizerConfiguration.prototype, "disableTotpLogin", void 0); tslib_1.__decorate([ (0, common_1.ConfigModelProperty)(), tslib_1.__metadata("design:type", String) ], DockerComposeAuthorizerConfiguration.prototype, "disableMailOtpLogin", void 0); tslib_1.__decorate([ (0, common_1.ConfigModelProperty)(), tslib_1.__metadata("design:type", String) ], DockerComposeAuthorizerConfiguration.prototype, "disablePhoneVerification", void 0); tslib_1.__decorate([ (0, common_1.ConfigModelProperty)(), tslib_1.__metadata("design:type", String) ], DockerComposeAuthorizerConfiguration.prototype, "defaultAuthorizeResponseType", void 0); tslib_1.__decorate([ (0, common_1.ConfigModelProperty)(), tslib_1.__metadata("design:type", String) ], DockerComposeAuthorizerConfiguration.prototype, "defaultAuthorizeResponseMode", void 0); exports.DockerComposeAuthorizerConfiguration = DockerComposeAuthorizerConfiguration = tslib_1.__decorate([ (0, common_1.ConfigModel)() ], DockerComposeAuthorizerConfiguration); //# sourceMappingURL=docker-compose-authorizer.configuration.js.map