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)

370 lines 16.7 kB
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.DockerComposeAuthorizerEnvironments = void 0; const tslib_1 = require("tslib"); const common_1 = require("@nestjs-mod/common"); const class_validator_1 = require("class-validator"); let DockerComposeAuthorizerEnvironments = class DockerComposeAuthorizerEnvironments { }; exports.DockerComposeAuthorizerEnvironments = DockerComposeAuthorizerEnvironments; tslib_1.__decorate([ (0, common_1.EnvModelProperty)({ description: 'Super admin secret used to access the master data', }), (0, class_validator_1.IsNotEmpty)(), tslib_1.__metadata("design:type", String) ], DockerComposeAuthorizerEnvironments.prototype, "adminSecret", void 0); tslib_1.__decorate([ (0, common_1.EnvModelProperty)({ description: 'Which database you are using. Supported database types are postgres, mysql, planetscale, sqlite, sqlserver, mongodb, arangodb, yugabyte, mariadb, cassandradb, scylladb, couchbase, dynamodb', }), (0, class_validator_1.IsNotEmpty)(), tslib_1.__metadata("design:type", String) ], DockerComposeAuthorizerEnvironments.prototype, "databaseType", void 0); tslib_1.__decorate([ (0, common_1.EnvModelProperty)({ description: 'Database connection string. In case of cluster url eg. for cassandra db, you can use comma separated IPs', }), (0, class_validator_1.IsNotEmpty)(), tslib_1.__metadata("design:type", String) ], DockerComposeAuthorizerEnvironments.prototype, "databaseUrl", void 0); tslib_1.__decorate([ (0, common_1.EnvModelProperty)({ description: 'Name of database to connect to. This is useful in case of arangodb and mongodb. If not set, default value will be used', default: 'authorizer', }), tslib_1.__metadata("design:type", String) ], DockerComposeAuthorizerEnvironments.prototype, "databaseName", void 0); tslib_1.__decorate([ (0, common_1.EnvModelProperty)({ description: 'Redis URL where sessions can be persisted false sessions will be stored in memory', }), tslib_1.__metadata("design:type", String) ], DockerComposeAuthorizerEnvironments.prototype, "redisUrl", void 0); tslib_1.__decorate([ (0, common_1.EnvModelProperty)({ hidden: true, description: 'Port on which database connection should be made. This is used when DATABASE_URL is not mentioned. At the moment supported by cassandradb', }), tslib_1.__metadata("design:type", String) ], DockerComposeAuthorizerEnvironments.prototype, "databasePort", void 0); tslib_1.__decorate([ (0, common_1.EnvModelProperty)({ hidden: true, description: 'Host/IP on which database connection should be made. This is used when DATABASE_URL is not mentioned. At the moment supported by cassandradb type', }), tslib_1.__metadata("design:type", String) ], DockerComposeAuthorizerEnvironments.prototype, "databaseHost", void 0); tslib_1.__decorate([ (0, common_1.EnvModelProperty)({ hidden: true, description: 'Username for the database access with permission to create tables and records. At the moment supported by cassandradb, scylladb type', }), tslib_1.__metadata("design:type", String) ], DockerComposeAuthorizerEnvironments.prototype, "databaseUsername", void 0); tslib_1.__decorate([ (0, common_1.EnvModelProperty)({ hidden: true, description: 'Password for the database access with permission to create tables and records. At the moment supported by cassandradb, scylladb type', }), tslib_1.__metadata("design:type", String) ], DockerComposeAuthorizerEnvironments.prototype, "databasePassword", void 0); tslib_1.__decorate([ (0, common_1.EnvModelProperty)({ hidden: true, description: 'Base64 encoded certificate string used to make SSL connection. At the moment supported by cassandradb,scylladb type', }), tslib_1.__metadata("design:type", String) ], DockerComposeAuthorizerEnvironments.prototype, "databaseCert", void 0); tslib_1.__decorate([ (0, common_1.EnvModelProperty)({ hidden: true, description: 'Base64 encoded key string used to make SSL connection. At the moment supported by cassandradb,scylladb type', }), tslib_1.__metadata("design:type", String) ], DockerComposeAuthorizerEnvironments.prototype, "databaseCertKey", void 0); tslib_1.__decorate([ (0, common_1.EnvModelProperty)({ hidden: true, description: 'Base64 encoded CA certificate string used to make SSL connection. At the moment supported by cassandradb, scylladb type', }), tslib_1.__metadata("design:type", String) ], DockerComposeAuthorizerEnvironments.prototype, "databaseCaCert", void 0); tslib_1.__decorate([ (0, common_1.EnvModelProperty)({ hidden: true, description: 'Port on which server should be running', default: 8080, transform: new common_1.NumberTransformer(), }), tslib_1.__metadata("design:type", Number) ], DockerComposeAuthorizerEnvironments.prototype, "port", void 0); tslib_1.__decorate([ (0, common_1.EnvModelProperty)({ hidden: true, description: 'Domain name of the server, eg https://authorizer.herokuapp.com', }), tslib_1.__metadata("design:type", String) ], DockerComposeAuthorizerEnvironments.prototype, "authorizerUrl", void 0); tslib_1.__decorate([ (0, common_1.EnvModelProperty)({ hidden: true, description: 'Name of cookie to be set by server', default: 'authorizer', }), tslib_1.__metadata("design:type", String) ], DockerComposeAuthorizerEnvironments.prototype, "cookieName", void 0); tslib_1.__decorate([ (0, common_1.EnvModelProperty)({ hidden: true, description: 'SMTP host is used to send email verification emails and forgot password emails false If not set email sending can fail', }), tslib_1.__metadata("design:type", String) ], DockerComposeAuthorizerEnvironments.prototype, "smtpHost", void 0); tslib_1.__decorate([ (0, common_1.EnvModelProperty)({ hidden: true, description: 'SMTP Port is used along with SMTP host', }), tslib_1.__metadata("design:type", String) ], DockerComposeAuthorizerEnvironments.prototype, "smtpPort", void 0); tslib_1.__decorate([ (0, common_1.EnvModelProperty)({ hidden: true, description: 'Username for your smtp provider', }), tslib_1.__metadata("design:type", String) ], DockerComposeAuthorizerEnvironments.prototype, "smtpUsername", void 0); tslib_1.__decorate([ (0, common_1.EnvModelProperty)({ hidden: true, description: 'Password for your smt provider', }), tslib_1.__metadata("design:type", String) ], DockerComposeAuthorizerEnvironments.prototype, "smtpPassword", void 0); tslib_1.__decorate([ (0, common_1.EnvModelProperty)({ hidden: true, description: 'Email to be used in From section while sending emails', }), tslib_1.__metadata("design:type", String) ], DockerComposeAuthorizerEnvironments.prototype, "senderEmail", void 0); tslib_1.__decorate([ (0, common_1.EnvModelProperty)({ hidden: true, description: 'Email sender name that is displayed in the inbox instead of just showing the email address', }), tslib_1.__metadata("design:type", String) ], DockerComposeAuthorizerEnvironments.prototype, "senderName", void 0); tslib_1.__decorate([ (0, common_1.EnvModelProperty)({ hidden: true, description: 'To disable playground', default: true, transform: new common_1.BooleanTransformer(), }), tslib_1.__metadata("design:type", String) ], DockerComposeAuthorizerEnvironments.prototype, "disablePlayground", void 0); tslib_1.__decorate([ (0, common_1.EnvModelProperty)({ hidden: true, description: 'Time interval for how long access token will be expired in 1h15m15s format', default: '30m', }), tslib_1.__metadata("design:type", String) ], DockerComposeAuthorizerEnvironments.prototype, "accessTokenExpiryTime", void 0); tslib_1.__decorate([ (0, common_1.EnvModelProperty)({ hidden: true, description: 'AWS access key used for connecting to dynamodb. Make sure access credentials has rights for dynamodb. Used with DATABASE_TYPE=dynamodb', }), tslib_1.__metadata("design:type", String) ], DockerComposeAuthorizerEnvironments.prototype, "awsAccessKeyId", void 0); tslib_1.__decorate([ (0, common_1.EnvModelProperty)({ hidden: true, description: 'AWS secret access key used for connecting to dynamodb. Make sure access credentials has rights for dynamodb. Used with DATABASE_TYPE=dynamodb', }), tslib_1.__metadata("design:type", String) ], DockerComposeAuthorizerEnvironments.prototype, "awsSecretAccessKey", void 0); tslib_1.__decorate([ (0, common_1.EnvModelProperty)({ hidden: true, description: 'OAuth Google login client id', }), tslib_1.__metadata("design:type", String) ], DockerComposeAuthorizerEnvironments.prototype, "googleClientId", void 0); tslib_1.__decorate([ (0, common_1.EnvModelProperty)({ hidden: true, description: 'OAuth Google login client secret', }), tslib_1.__metadata("design:type", String) ], DockerComposeAuthorizerEnvironments.prototype, "googleClientSecret", void 0); tslib_1.__decorate([ (0, common_1.EnvModelProperty)({ hidden: true, description: 'OAuth Github login client id', }), tslib_1.__metadata("design:type", String) ], DockerComposeAuthorizerEnvironments.prototype, "githubClientId", void 0); tslib_1.__decorate([ (0, common_1.EnvModelProperty)({ hidden: true, description: 'OAuth Github login client secret', }), tslib_1.__metadata("design:type", String) ], DockerComposeAuthorizerEnvironments.prototype, "githubClientSecret", void 0); tslib_1.__decorate([ (0, common_1.EnvModelProperty)({ hidden: true, description: 'OAuth Facebook login client id', }), tslib_1.__metadata("design:type", String) ], DockerComposeAuthorizerEnvironments.prototype, "facebookClientId", void 0); tslib_1.__decorate([ (0, common_1.EnvModelProperty)({ hidden: true, description: 'OAuth Facebook login client secret', }), tslib_1.__metadata("design:type", String) ], DockerComposeAuthorizerEnvironments.prototype, "facebookClientSecret", void 0); tslib_1.__decorate([ (0, common_1.EnvModelProperty)({ hidden: true, description: 'OAuth LinkedIn login client id', }), tslib_1.__metadata("design:type", String) ], DockerComposeAuthorizerEnvironments.prototype, "linkedinClientId", void 0); tslib_1.__decorate([ (0, common_1.EnvModelProperty)({ hidden: true, description: 'OAuth LinkedIn login client secret', }), tslib_1.__metadata("design:type", String) ], DockerComposeAuthorizerEnvironments.prototype, "linkedinClientSecret", void 0); tslib_1.__decorate([ (0, common_1.EnvModelProperty)({ hidden: true, description: 'OAuth Apple login client id', }), tslib_1.__metadata("design:type", String) ], DockerComposeAuthorizerEnvironments.prototype, "appleClientId", void 0); tslib_1.__decorate([ (0, common_1.EnvModelProperty)({ hidden: true, description: 'OAuth Apple login client secret', }), tslib_1.__metadata("design:type", String) ], DockerComposeAuthorizerEnvironments.prototype, "appleClientSecret", void 0); tslib_1.__decorate([ (0, common_1.EnvModelProperty)({ hidden: true, description: 'OAuth Twitter login client id', }), tslib_1.__metadata("design:type", String) ], DockerComposeAuthorizerEnvironments.prototype, "twitterClientId", void 0); tslib_1.__decorate([ (0, common_1.EnvModelProperty)({ hidden: true, description: 'OAuth Twitter login client secret', }), tslib_1.__metadata("design:type", String) ], DockerComposeAuthorizerEnvironments.prototype, "twitterClientSecret", void 0); tslib_1.__decorate([ (0, common_1.EnvModelProperty)({ hidden: true, description: 'OAuth Microsoft login client id', }), tslib_1.__metadata("design:type", String) ], DockerComposeAuthorizerEnvironments.prototype, "microsoftClientId", void 0); tslib_1.__decorate([ (0, common_1.EnvModelProperty)({ hidden: true, description: 'OAuth Microsoft login client secret', }), tslib_1.__metadata("design:type", String) ], DockerComposeAuthorizerEnvironments.prototype, "microsoftClientSecret", void 0); tslib_1.__decorate([ (0, common_1.EnvModelProperty)({ hidden: true, description: 'Microsoft Active Directory Tenant ID obtained from azure portal', }), tslib_1.__metadata("design:type", String) ], DockerComposeAuthorizerEnvironments.prototype, "microsoftActiveDirectoryTenantId", void 0); tslib_1.__decorate([ (0, common_1.EnvModelProperty)({ hidden: true }), tslib_1.__metadata("design:type", String) ], DockerComposeAuthorizerEnvironments.prototype, "smtpLocalName", void 0); tslib_1.__decorate([ (0, common_1.EnvModelProperty)({ hidden: true }), tslib_1.__metadata("design:type", String) ], DockerComposeAuthorizerEnvironments.prototype, "jwtSecret", void 0); tslib_1.__decorate([ (0, common_1.EnvModelProperty)({ hidden: true }), tslib_1.__metadata("design:type", String) ], DockerComposeAuthorizerEnvironments.prototype, "jwtPrivateKey", void 0); tslib_1.__decorate([ (0, common_1.EnvModelProperty)({ hidden: true }), tslib_1.__metadata("design:type", String) ], DockerComposeAuthorizerEnvironments.prototype, "jwtPublicKey", void 0); tslib_1.__decorate([ (0, common_1.EnvModelProperty)({ hidden: true }), tslib_1.__metadata("design:type", String) ], DockerComposeAuthorizerEnvironments.prototype, "appUrl", void 0); tslib_1.__decorate([ (0, common_1.EnvModelProperty)({ hidden: true }), tslib_1.__metadata("design:type", String) ], DockerComposeAuthorizerEnvironments.prototype, "discordClientId", void 0); tslib_1.__decorate([ (0, common_1.EnvModelProperty)({ hidden: true }), tslib_1.__metadata("design:type", String) ], DockerComposeAuthorizerEnvironments.prototype, "discordClientSecret", void 0); tslib_1.__decorate([ (0, common_1.EnvModelProperty)({ hidden: true }), tslib_1.__metadata("design:type", String) ], DockerComposeAuthorizerEnvironments.prototype, "twitchClientId", void 0); tslib_1.__decorate([ (0, common_1.EnvModelProperty)({ hidden: true }), tslib_1.__metadata("design:type", String) ], DockerComposeAuthorizerEnvironments.prototype, "twitchClientSecret", void 0); tslib_1.__decorate([ (0, common_1.EnvModelProperty)({ hidden: true }), tslib_1.__metadata("design:type", String) ], DockerComposeAuthorizerEnvironments.prototype, "clientId", void 0); tslib_1.__decorate([ (0, common_1.EnvModelProperty)({ hidden: true }), tslib_1.__metadata("design:type", String) ], DockerComposeAuthorizerEnvironments.prototype, "clientSecret", void 0); tslib_1.__decorate([ (0, common_1.EnvModelProperty)({ hidden: true }), tslib_1.__metadata("design:type", String) ], DockerComposeAuthorizerEnvironments.prototype, "encryptionKey", void 0); tslib_1.__decorate([ (0, common_1.EnvModelProperty)({ hidden: true }), tslib_1.__metadata("design:type", String) ], DockerComposeAuthorizerEnvironments.prototype, "isProd", void 0); tslib_1.__decorate([ (0, common_1.EnvModelProperty)({ hidden: true }), tslib_1.__metadata("design:type", String) ], DockerComposeAuthorizerEnvironments.prototype, "allowedOrigins", void 0); tslib_1.__decorate([ (0, common_1.EnvModelProperty)({ hidden: true }), tslib_1.__metadata("design:type", String) ], DockerComposeAuthorizerEnvironments.prototype, "twilioApiKey", void 0); tslib_1.__decorate([ (0, common_1.EnvModelProperty)({ hidden: true }), tslib_1.__metadata("design:type", String) ], DockerComposeAuthorizerEnvironments.prototype, "twilioApiSecret", void 0); tslib_1.__decorate([ (0, common_1.EnvModelProperty)({ hidden: true }), tslib_1.__metadata("design:type", String) ], DockerComposeAuthorizerEnvironments.prototype, "twilioAccountSid", void 0); tslib_1.__decorate([ (0, common_1.EnvModelProperty)({ hidden: true }), tslib_1.__metadata("design:type", String) ], DockerComposeAuthorizerEnvironments.prototype, "twilioSender", void 0); exports.DockerComposeAuthorizerEnvironments = DockerComposeAuthorizerEnvironments = tslib_1.__decorate([ (0, common_1.EnvModel)() ], DockerComposeAuthorizerEnvironments); //# sourceMappingURL=docker-compose-authorizer.environments.js.map