Coder Social home page Coder Social logo

cla66ic's People

Stargazers

 avatar

Watchers

 avatar  avatar

cla66ic's Issues

How to run locally.

Start an S3 emulator; connect to it's web interface and create values for S3 Access and secret. Also note the API url that is NOT the localhost address.

docker run --rm -it \
    -u $UID \
    -p 9000:9000 -p 9001:9001 \
    -v "$(pwd)"/minio:/data minio/minio \
    server /data --console-address ":9001"

Example contents of the pass.txt file.

HASH=WUQrI3pMZ1ZkRz1Iclk
S3_ACCESS_KEY_ID=MCp5Q146Iyl6TUVX
S3_SECRET_KEY=IkMkZj4pamFCWWMkbFAuSEh6WHViQnBg
S3_ENDPOINT_URL=http://192.168.115.2:9000

Required patch to configure endpoint.

diff --git a/deps.ts b/deps.ts
index 98647eb..605757f 100644
--- a/deps.ts
+++ b/deps.ts
@@ -15,7 +15,7 @@ export const s3 = new ApiFactory({
     awsAccessKeyId: Deno.env.get("S3_ACCESS_KEY_ID")!,
     awsSecretKey: Deno.env.get("S3_SECRET_KEY")!,
   },
-  fixedEndpoint: "https://s3.us-west-004.backblazeb2.com",
+  fixedEndpoint: Deno.env.get("S3_ENDPOINT_URL"),
   region: "us-west-004",
 }).makeNew(S3);

Start the service ...

docker run --rm -it -p 6969:6969 \
    -v "$(pwd)":/app \
    --env PORT=6969 \
    --env 'OPS=["superop"]' \
    --env ONLINEMODE=true \
    --env $(grep ^HASH pass.txt) \
    --env $(grep ^S3_ACCESS_KEY_ID pass.txt) \
    --env $(grep ^S3_SECRET_KEY pass.txt) \
    --env $(grep ^S3_ENDPOINT_URL pass.txt) \
    --workdir /app \
    denoland/deno deno run --allow-env --allow-net --allow-read index.ts

Packets other than 'Indent' are decoded before logon

If you telnet to the port. Hit return then more than 64 X characters the service tries to decode the message packet but fails when there isn't a logged in user.

...
INFO Listening on port 6969!
error: Uncaught (in promise) TypeError: Cannot read properties of undefined (reading 'username')
      if (config.ops.includes(player.username)) {
                                     ^
    at Server.handlePacket (file:///app/classes/Server.ts:255:38)
    at Server.startSocket (file:///app/classes/Server.ts:356:14)
localhost-cla66ic$

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.