serviceName

This commit is contained in:
Pierre HUBERT 2021-02-13 15:33:17 +01:00
parent 77b6c4d2f3
commit f0f8d3cb71
7 changed files with 6 additions and 95 deletions

View File

@ -1,40 +0,0 @@
<?php
/**
* Online build configuration
*
* @author Pierre HUBERT
*/
//This configuration is based on the offline configuration
require_once __DIR__."/offline.config.php";
class Beta_communiquons extends Offline {
/**
* API access and credentials
*/
const API_URL = "https://api.communiquons.org/";
const API_SERVICE_NAME = "ComunicWebBeta";
const API_SERVICE_TOKEN = "txC7K5snAT";
/**
* Site URL
*/
const SITE_URL = "https://beta.communiquons.org/";
/**
* Site production mode
*/
const PROD_MODE = TRUE;
/**
* Path to assets (URL)
*/
const ASSETS_URL = "https://beta.communiquons.org/assets/".BUILD_TIME."/";
/**
* Site requires https connection
*/
const FORCE_HTTPS = true;
}

View File

@ -14,8 +14,8 @@ class Communiquons extends Offline {
* API access and credentials * API access and credentials
*/ */
const API_URL = "https://api.communiquons.org/"; const API_URL = "https://api.communiquons.org/";
const API_SERVICE_NAME = "ComunicWEB"; const API_CLIENT_NAME = "ComunicWEB";
const API_SERVICE_TOKEN = "BVuWUt4m";
/** /**
* Site URL * Site URL

View File

@ -1,45 +0,0 @@
<?php
/**
* comunic.io build configuration
*
* @author Pierre HUBERT
*/
//This configuration is based on the offline configuration
require_once __DIR__."/offline.config.php";
class Comunic_io extends Offline {
/**
* API access and credentials
*/
const API_URL = "https://api.communiquons.org/";
const API_SERVICE_NAME = "ComunicIO";
const API_SERVICE_TOKEN = "UxvYud4xSOslVFANWYcD";
/**
* Site URL
*/
const SITE_URL = "https://comunic.io/";
/**
* About website access
*/
const ABOUT_WEBSITE_URL = "https://about.comunic.io/";
/**
* Site production mode
*/
const PROD_MODE = TRUE;
/**
* Path to assets (URL)
*/
const ASSETS_URL = "https://comunic.io/assets/".BUILD_TIME."/";
/**
* Site requires https connection
*/
const FORCE_HTTPS = true;
}

View File

@ -11,8 +11,7 @@ class Dev {
* API access and credentials * API access and credentials
*/ */
const API_URL = "https://devweb.local/comunic/api-v2/"; //"http://devweb.local/comunic/api/"; const API_URL = "https://devweb.local/comunic/api-v2/"; //"http://devweb.local/comunic/api/";
const API_SERVICE_NAME = "ComunicWeb"; const API_CLIENT_NAME = "ComunicWeb";
const API_SERVICE_TOKEN = "12XU67pJUlnNQ";
/** /**
* Site URL * Site URL

View File

@ -19,8 +19,7 @@ class Docker extends Offline {
* API access and credentials * API access and credentials
*/ */
const API_URL = self::CONTAINER_URL."api/"; const API_URL = self::CONTAINER_URL."api/";
const API_SERVICE_NAME = "client"; const API_CLIENT_NAME = "client";
const API_SERVICE_TOKEN = "token";
/** /**
* Site URL * Site URL

View File

@ -11,8 +11,7 @@ class Offline {
* API access and credentials * API access and credentials
*/ */
const API_URL = "https://devweb.local/comunic/api-v2/"; const API_URL = "https://devweb.local/comunic/api-v2/";
const API_SERVICE_NAME = "ComunicWeb"; const API_CLIENT_NAME = "ComunicWeb";
const API_SERVICE_TOKEN = "12XU67pJUlnNQ";
/** /**
* About website access * About website access

View File

@ -85,8 +85,7 @@ function get_javascript_config($config) : string {
//API configuration //API configuration
apiURL: '".$config::API_URL."', apiURL: '".$config::API_URL."',
apiServiceName: '".$config::API_SERVICE_NAME."', apiClientName: '".$config::API_CLIENT_NAME."',
apiServiceToken: '".$config::API_SERVICE_TOKEN."',
//About website URL //About website URL
aboutWebsiteURL: '".$config::ABOUT_WEBSITE_URL."', aboutWebsiteURL: '".$config::ABOUT_WEBSITE_URL."',