Git Product home page Git Product logo

goldmonolith's Introduction

Go old monolith

A collection of services from my distant past rewritten in go and all stuck together in one monolithic service.

I simply don't care much about these and don't want to individually manage them as we inexorably move servers throughout the future.

About

This is a monolithic collection of services, but each service is isolated from one another such that they COULD be split out if desired. Each service is a separate package that exposes some function to generate the http handler which can be mounted to some endpoint at the top level.

All services use the same config file, config.toml, for ease of management. However, each service doesn't know it gets its config from the same file, as each is configured with a unique and independent struct.

All files are set to write next to the service, which may not be desired in all instances. It's desired here: it's easier to move the entire thing when everything is in the same place.

All services should enable limits to prevent misuse of the filesystem. These are old services nobody is using anymore (except maybe me sometimes), so limits should be highly restrictive. For instance, the webstream service only allows a limited number of rooms to be created on the filesystem, and only allows a very small number of active rooms in memory. Many of these services were written without limits in mind, so some larger modifications are sometimes necessary. These may break some systems; if anybody somehow ends up using one of these, just create an issue and I'll fix it.

Publishing

On the current production server (2024), there is a publish script you can use. It should do everything other than actually creating the service or setting up the nginx proxies.

Caveats

Make sure you set appropriate nginx proxy_read_timeout values for endpoints that have longpolling (you want the services to time themselves out rather than nginx doing it).

If you have previously deployed the service and made updates to the config, you will have to add the new values manually, or delete the config and regenerate it on startup.

goldmonolith's People

Contributors

randomouscrap98 avatar

Watchers

 avatar

goldmonolith's Issues

Kland needs database size restriction

Even if the uploads are restricted, there is still a way for bad actors to fill up the databsae. As such, also include a database size restriction check upon upload.

Add drawing management back to makai draw

Makai draw static rendering is fine, but there's no management engine underneath, remember to add that (along with limits for total folder size and total artist amount).

Test raw upload on kland

The only service which uses the raw upload is makai draw. Perhaps implement that first, then use it to test?

Implement chat search

This one will be interesting, because I don't want to use grep:

  • Maybe find a library for searching files like grep
  • Or just do it yourself with goroutines

I think someone wanted a way to view chat drawings or something, or maybe you should just reimplement whatever chatdraw browser you used to have

Add animation conversion to kland

This one should be relatively testable, using known good animation text files. You can also use the animator to test this, which I believe doesn't use any server-side anything to run...

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.