Use SELFHOST_DOMAIN instead of caas custom domain
This commit is contained in:
parent
f7cbb2288f
commit
49ea131234
@ -20,7 +20,7 @@ require('colors');
|
||||
|
||||
process.env.NODE_TLS_REJECT_UNAUTHORIZED = '0';
|
||||
const BOX_VERSION = process.env.BOX_VERSION;
|
||||
const CUSTOM_DOMAIN = process.env.CUSTOM_DOMAIN;
|
||||
const SELFHOST_DOMAIN = process.env.SELFHOST_DOMAIN;
|
||||
const EC2_TYPE = 't2.micro';
|
||||
const EC2_SIZE = 40;
|
||||
const EC2_REGION = 'eu-central-1';
|
||||
@ -60,7 +60,7 @@ describe('Selfhost EC2 Cloudron creation', function () {
|
||||
|
||||
it('can create a cloudron', function () {
|
||||
var params = [
|
||||
'--fqdn ' + CUSTOM_DOMAIN,
|
||||
'--fqdn ' + SELFHOST_DOMAIN,
|
||||
'--type ' + EC2_TYPE,
|
||||
'--size ' + EC2_SIZE,
|
||||
'--region ' + EC2_REGION,
|
||||
@ -87,7 +87,7 @@ describe('Selfhost EC2 Cloudron creation', function () {
|
||||
console.log('New instance created with ID', instanceId);
|
||||
|
||||
cloudron = new Cloudron({
|
||||
domain: CUSTOM_DOMAIN,
|
||||
domain: SELFHOST_DOMAIN,
|
||||
setupToken: null,
|
||||
version: BOX_VERSION,
|
||||
ip: null
|
||||
@ -104,7 +104,7 @@ describe('Selfhost EC2 Cloudron creation', function () {
|
||||
});
|
||||
|
||||
it('send mail to cloudron user', function (done) {
|
||||
mailer.sendMailToCloudronUser(owner.username + '@' + CUSTOM_DOMAIN, done);
|
||||
mailer.sendMailToCloudronUser(owner.username + '@' + SELFHOST_DOMAIN, done);
|
||||
});
|
||||
|
||||
var location = 'test' + (Math.random() * 10000).toFixed();
|
||||
@ -128,7 +128,7 @@ describe('Selfhost EC2 Cloudron creation', function () {
|
||||
|
||||
it('can restore the box', function () {
|
||||
var params = [
|
||||
'--fqdn ' + CUSTOM_DOMAIN,
|
||||
'--fqdn ' + SELFHOST_DOMAIN,
|
||||
'--type ' + EC2_TYPE,
|
||||
'--size ' + EC2_SIZE,
|
||||
'--region ' + EC2_REGION,
|
||||
|
Loading…
Reference in New Issue
Block a user