Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Host ARCHUB locally #3

Open
Freddo3000 opened this issue May 13, 2020 · 7 comments
Open

Host ARCHUB locally #3

Freddo3000 opened this issue May 13, 2020 · 7 comments

Comments

@Freddo3000
Copy link
Member

Seems doable, and should save on hosting costs.

@WirelessPillow
Copy link
Collaborator

Server does not have the storage space at this time, looking at options to expand to cut costs. Will advise when feasible to have the Hub on the server

@Freddo3000
Copy link
Member Author

Server does not have the storage space at this time, looking at options to expand to cut costs. Will advise when feasible to have the Hub on the server

One year after the ticket was opened, forgot I even put one up. Anyhow I find it doubtful that ARCHUB takes such a huge amount of storage space. I'd expect it to take at most 1-3GB with the entire database and mission files, though correct me if I'm wrong.

@TomBurch
Copy link
Member

Current disk space is 3.4GB, which probably contains a lot of things that could be removed. Mission files are stored on google cloud rather than locally.

The first step towards hosting locally should be to remove our dependency on Laravel Forge, which would include being able to setup and manage things like SSL, nginx, and deployments ourselves - potentially by using Docker.

@Freddo3000
Copy link
Member Author

Certainly seems possible. SSL would just need Let's Encrypt set up, deployment can probably be handled via Github Actions using Docker or similar. Is using specifically nginx necessary? Currently the server is running Windows IIS to host the modpack, though swapping over to nginx shouldn't be a problem.

@TomBurch
Copy link
Member

We shouldn't start by considering moving the server to using Windows - that would complicate and require re-evaluating both our use of PHP and MySQL.
You can use Docker compose to set up containers with LetsEncrypt (certbot) and nginx

It would probably be best to set up a proper CI/CD pipeline with Github for testing + deployment

@Freddo3000
Copy link
Member Author

Setting up a CI/CD pipeline would probably tie into it well.

@TomBurch
Copy link
Member

To put it in perspective we spend $12 a month on forge and probably $6-12 on the actual server depending on which type we use, so cutting out forge would save a significant amount.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants