mirror of
https://seed.radicle.dev/rad:z4V1sjrXqjvFdnCUbxPFqd5p4DtH5.git
synced 2026-11-16 03:40:37 +08:00
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:
@@ -2,6 +2,7 @@
|
||||
"reactions": ["👍", "👎", "😄", "🎉", "🙁", "🚀", "👀"],
|
||||
"seeds": {
|
||||
"defaultHttpdPort": 443,
|
||||
"defaultLocalHttpdPort": 8080,
|
||||
"defaultHttpdScheme": "https",
|
||||
"defaultNodePort": 8776,
|
||||
"pinned": [
|
||||
|
||||
@@ -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
@@ -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",
|
||||
});
|
||||
|
||||
|
||||
@@ -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: [
|
||||
|
||||
Reference in New Issue
Block a user