Radish alpha
r
Radicle web interface
Radicle
Git (anonymous pull)
Log in to clone via SSH
Adding a new `defaultLocalHttpdPort` property to the config.json
Sebastian Martinez committed 2 years ago
commit 8d798cc93f381038abc2fc095b70d9556a5ef9a4
parent 910c103a9b66ee1187b1ee17c2190aae31b25c55
4 files changed +6 -1
modified src/config.json
@@ -2,6 +2,7 @@
  "reactions": ["👍", "👎", "😄", "🎉", "🙁", "🚀", "👀"],
  "seeds": {
    "defaultHttpdPort": 443,
+
    "defaultLocalHttpdPort": 8080,
    "defaultHttpdScheme": "https",
    "defaultNodePort": 8776,
    "pinned": [
modified src/lib/config.ts
@@ -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: [],
modified src/lib/httpd.ts
@@ -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",
});

modified tests/support/fixtures.ts
@@ -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: [