mirror of
https://github.com/OneUptime/oneuptime.git
synced 2026-04-06 00:32:12 +02:00
chore: update to use pascalcase
This commit is contained in:
@@ -48,7 +48,7 @@ export const DatabaseSslCert: string | undefined =
|
||||
export const DatabaseRejectUnauthorized: boolean =
|
||||
Boolean(process.env['DATABASE_SSL_REJECT_UNAUTHORIZED']) || false;
|
||||
|
||||
export const shouldDatabaseSslEnable: boolean = Boolean(
|
||||
export const ShouldDatabaseSslEnable: boolean = Boolean(
|
||||
DatabaseSslCa || (DatabaseSslCert && DatabaseSslKey)
|
||||
);
|
||||
|
||||
@@ -64,7 +64,7 @@ export const ClusterKey: ObjectID = new ObjectID(
|
||||
process.env['ONEUPTIME_SECRET'] || 'secret'
|
||||
);
|
||||
|
||||
export const hasClusterKey: boolean = Boolean(process.env['ONEUPTIME_SECRET']);
|
||||
export const HasClusterKey: boolean = Boolean(process.env['ONEUPTIME_SECRET']);
|
||||
|
||||
export const Domain: Hostname = Hostname.fromString(
|
||||
process.env['DOMAIN'] || 'localhost'
|
||||
|
||||
@@ -9,7 +9,7 @@ import {
|
||||
DatabaseSslKey,
|
||||
DatabaseSslCert,
|
||||
DatabaseRejectUnauthorized,
|
||||
shouldDatabaseSslEnable,
|
||||
ShouldDatabaseSslEnable,
|
||||
Env,
|
||||
} from '../Config';
|
||||
import Entities from 'Model/Models/Index';
|
||||
@@ -28,7 +28,7 @@ export const dataSourceOptions: DataSourceOptions = {
|
||||
migrationsTableName: 'migrations',
|
||||
migrations: Migrations,
|
||||
entities: Entities,
|
||||
ssl: shouldDatabaseSslEnable
|
||||
ssl: ShouldDatabaseSslEnable
|
||||
? {
|
||||
rejectUnauthorized: DatabaseRejectUnauthorized,
|
||||
ca: DatabaseSslCa,
|
||||
|
||||
@@ -7,7 +7,7 @@ import {
|
||||
PROBE_NAME,
|
||||
} from '../Config';
|
||||
import URL from 'Common/Types/API/URL';
|
||||
import { ClusterKey, hasClusterKey } from 'CommonServer/Config';
|
||||
import { ClusterKey, HasClusterKey } from 'CommonServer/Config';
|
||||
import logger from 'CommonServer/Utils/Logger';
|
||||
import HTTPResponse from 'Common/Types/API/HTTPResponse';
|
||||
import { JSONObject } from 'Common/Types/JSON';
|
||||
@@ -15,7 +15,7 @@ import LocalCache from 'CommonServer/Infrastructure/LocalCache';
|
||||
|
||||
export default class Register {
|
||||
public static async registerProbe(): Promise<void> {
|
||||
if (hasClusterKey) {
|
||||
if (HasClusterKey) {
|
||||
const resullt: HTTPResponse<JSONObject> = await API.post(
|
||||
URL.fromString(PROBE_API_URL.toString()).addRoute('/register'),
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user