Adding a new defaultLocalHttpdPort property to the config.json

We use `defaultHttpdPort` for both exposed ports like on
seed.radicle.xyz as also for local ports e.g. radicle.local.
This worked fine, for now but has shown the first issues, when external
ports like 443 show up in the radicle.local connection dashboard.

Signed-off-by: Sebastian Martinez <me@sebastinez.dev>
This commit is contained in:
Sebastian Martinez
2023-07-31 15:38:36 +02:00
committed by Rūdolfs Ošiņš
parent 910c103a9b
commit 8d798cc93f
4 changed files with 6 additions and 1 deletions
+1
View File
@@ -2,6 +2,7 @@
"reactions": ["👍", "👎", "😄", "🎉", "🙁", "🚀", "👀"],
"seeds": {
"defaultHttpdPort": 443,
"defaultLocalHttpdPort": 8080,
"defaultHttpdScheme": "https",
"defaultNodePort": 8776,
"pinned": [
+2
View File
@@ -6,6 +6,7 @@ export interface Config {
reactions: string[];
seeds: {
defaultHttpdPort: number;
defaultLocalHttpdPort: number;
defaultNodePort: number;
defaultHttpdScheme: string;
pinned: { baseUrl: BaseUrl }[];
@@ -25,6 +26,7 @@ function getConfig(): Config {
reactions: [],
seeds: {
defaultHttpdPort: 8081,
defaultLocalHttpdPort: 8081,
defaultHttpdScheme: "http",
defaultNodePort: 8776,
pinned: [],
+1 -1
View File
@@ -25,7 +25,7 @@ export const httpdStore = derived(store, s => s);
export const api = new HttpdClient({
hostname: "127.0.0.1",
port: config.seeds.defaultHttpdPort,
port: config.seeds.defaultLocalHttpdPort,
scheme: "http",
});
+2
View File
@@ -94,6 +94,7 @@ export const test = base.extend<{
reactions: [],
seeds: {
defaultHttpdPort: 8081,
defaultLocalHttpdPort: 8081,
defaultHttpdScheme: "http",
defaultNodePort: 8776,
pinned: [
@@ -231,6 +232,7 @@ export function appConfigWithFixture() {
reactions: [],
seeds: {
defaultHttpdPort: 8081,
defaultLocalHttpdPort: 8081,
defaultHttpdScheme: "http",
defaultNodePort: 8776,
pinned: [