Skip to content

Commit

Permalink
Purge almost all mention of tachyon
Browse files Browse the repository at this point in the history
There used to be two prototype versions of the protocol. One TLS based
and one Websocket based. None of them were fully functionning and since
the departure of Teifion from the project the protocol evolved more.

Having legacy code lingering around caused some confusion when trying to
understand the server.

Note that there may be additional cleanup required. A lot of the tachyon
system was based around Coordinator and Consul, and they may or may not
be tachyon logic in them. We'll figure that out later.

There is one piece of logic that could probably be reused almost as-is:
the function `login_from_token` (search the diffs). Swapping the token
code for the OAuth based one, the rest should be almost identical.
  • Loading branch information
geekingfrog committed Jul 31, 2024
1 parent 7f521fe commit 8ac32ad
Show file tree
Hide file tree
Showing 293 changed files with 6 additions and 17,810 deletions.
5 changes: 1 addition & 4 deletions config/config.exs
Original file line number Diff line number Diff line change
Expand Up @@ -46,15 +46,13 @@ config :esbuild,
config :teiserver, Teiserver,
ports: [
tcp: 8200,
tls: 8201,
tachyon: 8202
tls: 8201
],
website: [
url: "mywebsite.com"
],
enable_benchmark: false,
enable_hooks: true,
tachyon_schema_path: "priv/tachyon/schema_v1/*/*/*.json",

# Heatbeat interval is ms
heartbeat_interval: 30_000,
Expand All @@ -67,7 +65,6 @@ config :teiserver, Teiserver,
main_website: "https://site.com/",
discord: nil,
default_spring_protocol: Teiserver.Protocols.Spring,
default_tachyon_protocol: Teiserver.Protocols.Tachyon.V1.Tachyon,
github_repo: "https://github.com/beyond-all-reason/teiserver",
enable_discord_bridge: true,
enable_coordinator_mode: true,
Expand Down
5 changes: 1 addition & 4 deletions config/runtime.exs
Original file line number Diff line number Diff line change
Expand Up @@ -55,10 +55,7 @@ if config_env() == :prod do
enable_discord_bridge: enable_discord_bridge,
ports: [
tcp: Teiserver.ConfigHelpers.get_env("TEI_SPRING_TCP_PORT", 8200, :int),
tls: Teiserver.ConfigHelpers.get_env("TEI_SPRING_TLS_PORT", 8201, :int),
# this can likely be deprecated and removed. It's for an old version
# of tachyon running on another TLS socket
tachyon: Teiserver.ConfigHelpers.get_env("TEI_TACHYON_TLS_PORT", 8202, :int)
tls: Teiserver.ConfigHelpers.get_env("TEI_SPRING_TLS_PORT", 8201, :int)
],
certs: certificates,
website: [
Expand Down
3 changes: 1 addition & 2 deletions config/test.exs
Original file line number Diff line number Diff line change
Expand Up @@ -23,8 +23,7 @@ config :teiserver, Teiserver,
],
ports: [
tcp: 9200,
tls: 9201,
tachyon: 9202
tls: 9201
],
test_mode: true,
enable_hooks: false,
Expand Down
178 changes: 0 additions & 178 deletions documents/tachyon/auth.md

This file was deleted.

8 changes: 0 additions & 8 deletions documents/tachyon/clan.md

This file was deleted.

79 changes: 0 additions & 79 deletions documents/tachyon/client.md

This file was deleted.

Loading

0 comments on commit 8ac32ad

Please sign in to comment.