From 2281b3e478bb5220c1711900af9c956106e3bc80 Mon Sep 17 00:00:00 2001 From: sam Date: Wed, 25 Dec 2024 14:03:15 -0500 Subject: [PATCH] fix: replace port 5000 in example docs with port 6000 macOS runs a service on port 5000 by default. this doesn't actually prevent the backend server from *starting*, or the rate limiter proxy from working, but it *does* mean that when the backend restarts, if the proxy sends a request, it will stop working until it's restarted. the easiest way to work around this is by just changing the port the backend listens on. this does not change the ports used in the docker configuration. --- Foxnouns.Backend/config.example.ini | 2 +- Foxnouns.Frontend/.env.example | 4 ++-- rate/proxy-config.example.json | 2 +- 3 files changed, 4 insertions(+), 4 deletions(-) diff --git a/Foxnouns.Backend/config.example.ini b/Foxnouns.Backend/config.example.ini index 7522cba..9c6097e 100644 --- a/Foxnouns.Backend/config.example.ini +++ b/Foxnouns.Backend/config.example.ini @@ -1,7 +1,7 @@ ; The host the server will listen on Host = localhost ; The port the server will listen on -Port = 5000 +Port = 6000 ; The base *external* URL BaseUrl = https://pronouns.localhost ; The base URL for media, without a trailing slash. This must be publicly accessible. diff --git a/Foxnouns.Frontend/.env.example b/Foxnouns.Frontend/.env.example index d79c672..2931832 100644 --- a/Foxnouns.Frontend/.env.example +++ b/Foxnouns.Frontend/.env.example @@ -1,7 +1,7 @@ -# Example .env file--DO NOT EDIT +# Example .env file--DO NOT EDIT, copy to .env or .env.local then edit PUBLIC_LANGUAGE=en PUBLIC_BASE_URL=https://pronouns.cc PUBLIC_SHORT_URL=https://prns.cc PUBLIC_API_BASE=https://pronouns.cc/api PRIVATE_API_HOST=http://localhost:5003/api -PRIVATE_INTERNAL_API_HOST=http://localhost:5000/api +PRIVATE_INTERNAL_API_HOST=http://localhost:6000/api diff --git a/rate/proxy-config.example.json b/rate/proxy-config.example.json index 427acef..1ec9e59 100644 --- a/rate/proxy-config.example.json +++ b/rate/proxy-config.example.json @@ -1,6 +1,6 @@ { "port": 5003, - "proxy_target": "http://localhost:5000", + "proxy_target": "http://localhost:6000", "debug": true, "powered_by": "5 gay rats" }