set new domain in configs

master
Tudor Stanciu 2022-12-28 18:01:14 +02:00
parent 218993dad5
commit e866410c79
7 changed files with 629 additions and 656 deletions

2
.npmrc
View File

@ -1 +1 @@
@flare:registry=https://toodle.ddns.net/public-node-registry @flare:registry=https://lab.code-rove.com/public-node-registry

View File

@ -1,14 +1,14 @@
# Reverse proxy UI # Reverse proxy UI
This project is the web interface component for my reverse proxy activity. More information about the reverse-proxy project can be found in my portfolio: [Tudor Stanciu's portfolio](https://toodle.ddns.net/tsp/). This project is the web interface component for my reverse proxy activity. More information about the reverse-proxy project can be found in my portfolio: [Tudor Stanciu's portfolio](https://lab.code-rove.com/tsp/).
## Samples ## Samples
This is the chart showing the reverse proxy sessions: This is the chart showing the reverse proxy sessions:
![ReverseProxyChart](https://toodle.ddns.net/cdn/images/reverse-proxy-chart.png) ![ReverseProxyChart](https://lab.code-rove.com/cdn/images/reverse-proxy-chart.png)
The entire dashboard page: The entire dashboard page:
![ReverseProxyChart](https://toodle.ddns.net/cdn/images/reverse-proxy-dashboard.png) ![ReverseProxyChart](https://lab.code-rove.com/cdn/images/reverse-proxy-dashboard.png)
## Stack ## Stack

View File

@ -8,7 +8,7 @@ const dev = {
APP_DATE: appDate, APP_DATE: appDate,
REVERSE_PROXY_API_URL: "http://localhost:5050", REVERSE_PROXY_API_URL: "http://localhost:5050",
CHATBOT_API_URL: "http://localhost:5061", CHATBOT_API_URL: "http://localhost:5061",
REVERSE_PROXY_DOCS_URL: "https://toodle.ddns.net/hedgedoc/s/UkJ6S5NJz" REVERSE_PROXY_DOCS_URL: "https://lab.code-rove.com/hedgedoc/s/UkJ6S5NJz"
}; };
const prod = { const prod = {
@ -16,15 +16,15 @@ const prod = {
APP_VERSION: appVersion, APP_VERSION: appVersion,
APP_DATE: appDate, APP_DATE: appDate,
PUBLIC_URL: "/reverse-proxy", PUBLIC_URL: "/reverse-proxy",
REVERSE_PROXY_API_URL: "https://toodle.ddns.net/reverse-proxy-api", REVERSE_PROXY_API_URL: "https://lab.code-rove.com/reverse-proxy-api",
CHATBOT_API_URL: "https://toodle.ddns.net/chatbot-api", CHATBOT_API_URL: "https://lab.code-rove.com/chatbot-api",
REVERSE_PROXY_DOCS_URL: "https://toodle.ddns.net/hedgedoc/s/UkJ6S5NJz" REVERSE_PROXY_DOCS_URL: "https://lab.code-rove.com/hedgedoc/s/UkJ6S5NJz"
}; };
const getConfig = env => { const getConfig = (env) => {
const config = env === "prod" ? prod : dev; const config = env === "prod" ? prod : dev;
let configs = {}; let configs = {};
Object.keys(config).forEach(z => { Object.keys(config).forEach((z) => {
configs[`process.env.${z}`] = JSON.stringify(config[z]); configs[`process.env.${z}`] = JSON.stringify(config[z]);
}); });
return configs; return configs;

1255
package-lock.json generated

File diff suppressed because it is too large Load Diff

View File

@ -1,12 +1,12 @@
{ {
"name": "reverse-proxy-frontend", "name": "reverse-proxy-frontend",
"version": "1.4.5", "version": "1.4.6",
"private": true, "private": true,
"description": "Reverse proxy frontend application", "description": "Reverse proxy frontend application",
"author": { "author": {
"name": "Tudor Stanciu", "name": "Tudor Stanciu",
"email": "tudor.stanciu94@gmail.com", "email": "tudor.stanciu94@gmail.com",
"url": "https://toodle.ddns.net/tsp" "url": "https://lab.code-rove.com/tsp"
}, },
"scripts": { "scripts": {
"start": "run-p start:dev", "start": "run-p start:dev",

View File

@ -1,7 +1,7 @@
#!/bin/bash #!/bin/bash
echo "Welcome!" echo "Welcome!"
version="1.4.5" version="1.4.6"
platform="linux/amd64,linux/arm64,linux/arm/v7" platform="linux/amd64,linux/arm64,linux/arm/v7"
appSubfolder="/reverse-proxy" appSubfolder="/reverse-proxy"
localRegistryPass="******************" localRegistryPass="******************"

View File

@ -1,8 +1,8 @@
#!/bin/sh #!/bin/sh
echo "Welcome!" echo "Welcome!"
version="1.4.5" version="1.4.6"
oldver="1.4.2" oldver="1.4.5"
echo "Pull docker image reverse-proxy-frontend:$version from registry." echo "Pull docker image reverse-proxy-frontend:$version from registry."
docker pull alpine-nexus:8500/reverse-proxy/reverse-proxy-frontend:$version docker pull alpine-nexus:8500/reverse-proxy/reverse-proxy-frontend:$version