This commit is contained in:
+1
-2
@@ -13,11 +13,10 @@ services:
|
||||
- EmailPort=${Email_Port}
|
||||
- EmailAddress=${Email_Address}
|
||||
- EmailPassword=${Email_Password}
|
||||
- JWTsecret=${JWT_Secret}
|
||||
ports:
|
||||
- 5000:5000
|
||||
depends_on:
|
||||
- boredcareers-database
|
||||
- auth-database
|
||||
|
||||
auth-database:
|
||||
container_name: auth_database
|
||||
|
||||
@@ -35,15 +35,6 @@ string dbPass = !string.IsNullOrEmpty(_dbpass) ? _dbpass : "oasv34$8gpv023dd";
|
||||
DatabaseService databaseService = new DatabaseService(connectionString: "server=" + dbserver + ";user=" + dbUser + ";database=" + dbdatabase + ";password=" + dbPass + ";port=3306;");
|
||||
builder.Services.Add( new ServiceDescriptor( typeof( DatabaseService ), databaseService ) );
|
||||
|
||||
////////////////////////////////
|
||||
////////// Auth Service ////////
|
||||
////////////////////////////////
|
||||
|
||||
// Address
|
||||
string? _jwtSecret = Environment.GetEnvironmentVariable("JWTsecret");
|
||||
string JWTsecret = !string.IsNullOrEmpty(_jwtSecret) ? _jwtSecret : "v0Ftluhdh7Nht8^2b5eaiC^IS^VS1ku0VBs3j*B2";
|
||||
AuthJWT.TokenSecretKey = JWTsecret;
|
||||
|
||||
////////////////////////////////
|
||||
///////// Email Service ////////
|
||||
////////////////////////////////
|
||||
|
||||
@@ -13,7 +13,6 @@ namespace Auth.Services {
|
||||
|
||||
public static string TokenAudience = "mistox-llc-auth-token";
|
||||
public static string TokenIssuer = "https://auth.mistox.com";
|
||||
public static string TokenSecretKey = "";
|
||||
public static string TokenName = "mistox_session";
|
||||
public static TokenValidationParameters TokenParameters = new TokenValidationParameters {
|
||||
ValidateIssuer = true,
|
||||
|
||||
Reference in New Issue
Block a user