Skip to content

Commit

Permalink
Update website to use HTTPS backend
Browse files Browse the repository at this point in the history
  • Loading branch information
Atlinx committed Jan 4, 2024
1 parent 28f7be7 commit 2bb2d69
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/_settings.ts
Original file line number Diff line number Diff line change
Expand Up @@ -109,13 +109,13 @@ export class SettingsService {
})();

public Backend = new (class {
public backendDomain = isDevMode() ? 'localhost:3000' : '104.237.145.80';
public backendDomain = isDevMode() ? 'localhost:3000' : 'backend.cogs.club';
public backendRelativeBaseUrl = isDevMode() ? '' : '/backend';
public graphQLRelativePath = '/graphql';

// Dev mode is unsecure
public httpsPrefix = isDevMode() ? 'http://' : 'http://';
public wssPrefix = isDevMode() ? 'ws://' : 'ws://';
public httpsPrefix = isDevMode() ? 'http://' : 'https://';
public wssPrefix = isDevMode() ? 'ws://' : 'wss://';

public get backendDomainPlusBaseUrl() {
return this.backendDomain + this.backendRelativeBaseUrl;
Expand Down

0 comments on commit 2bb2d69

Please sign in to comment.