* Changin public_url & public_ws_url to shorter url & wsurl respectively

There's also some miscellaneous changes  that don't fit anywhere in this patch (mostly dev qol of roadmap updates)
This commit is contained in:
shockrah 2021-05-09 23:08:55 -07:00
parent efac097645
commit a79195076d
4 changed files with 8 additions and 5 deletions

View File

@ -7,5 +7,8 @@ dep:
run: run:
cargo run --features rtc --release -- -s cargo run --features rtc --release -- -s
test:
cd ../ && bash scripts/run-api-tests.sh
clean: clean:
cargo clean cargo clean

View File

@ -37,7 +37,7 @@ class Admin:
'secret': self.secret, 'secret': self.secret,
'jwt': self.jwt, 'jwt': self.jwt,
} }
container = {'user': acc, 'server': str(server)} container = {'user': acc, 'server': str(self.server)}
return str(container) return str(container)
def create_admin() -> Admin : def create_admin() -> Admin :
@ -57,6 +57,6 @@ def create_admin() -> Admin :
else: else:
return Admin(user, server) return Admin(user, server)
except Exception as e: except Exception as e:
print(f'General exception caught in parsing => {e}', file=sys.stderr) print(f'[create_admin] General exception caught in parsing => {e}', file=sys.stderr)
return None return None

View File

@ -7,8 +7,8 @@
"wss_hmac_path": "wss-hmac.secret", "wss_hmac_path": "wss-hmac.secret",
"name": "Freechat Server", "name": "Freechat Server",
"description": "Chatting server", "description": "Chatting server",
"public_url": "http://localhost:4536", "url": "http://localhost:4536",
"public_ws_url": "ws://localhost:5648", "wsurl": "ws://localhost:5648",
"tags": [ "tags": [
"Freechat", "Freechat",

View File

@ -39,7 +39,7 @@ I'd like to be able to support people that make good software and give them a pl
* More server meta endpoint support: Some basic server metadata is stored in environment vars but we can probably store these somewhere a bit smarter idk. * More server meta endpoint support: Some basic server metadata is stored in environment vars but we can probably store these somewhere a bit smarter idk.
Basically this work has to be put in so that we can further decentralize Freechat Ecosystem * This is now actively being worked with /neighbor/list and /neighbor/add now being added to the supported routes. Further testing is required, as well as relevant documentation. At least this should be done within the next few days as I find time for it among other projects.
* RTC Permissions: Unprivileged users shouldn't receive messaegs if they don't have the required permissions * RTC Permissions: Unprivileged users shouldn't receive messaegs if they don't have the required permissions