Code center > Darwinbots Program Source Code

Use http get and set requests instead of ftp

<< < (3/4) > >>

Numsgil:

--- Quote from: theblaze on July 20, 2017, 04:41:43 AM ---For the https it's pretty simple to set it up, but if you give me access to the server hosting it I can do it for you.

--- End quote ---

Would you mind just walking me through setting it up?  I'd like to have at least some idea of what's changed so when it breaks I vaguely know what to poke :)  The server is just a linux box.


--- Quote ---Would also be neat to have a matrix.org / riot.im server if you'd like me to set one up.

--- End quote ---

Can you give me the elevator pitch for how you think it'd work?  Is it just a matter of hooking up the Darwinbots client/desktop app, and then matrix would be the server?  Do we have/get to run matrix on our own server?


--- Quote ---For the internet mode, will the DB client ask for if there's a bot available to get regularly and always take it if there is one, or is the server side more intelligent and selectively chooses DB clients?

--- End quote ---

At the moment/historically it's first-come-first-serve, and there's nothing to prevent either duplication of bots when two people download a file at once or getting your own bot back.  But we can certainly do something smarter, especially if it's only a little bit of code to enable.  But my first priority would just be getting something set up.


--- Quote ---I've got measures in place to prevent abuse (Draining all bots / pushing out a lot of your own bots)

--- End quote ---

Can you issue login credentials to people?  That would prevent at least some sorts of abuses I'm concerned with.  If we could tie it in the forum authentication that would be even better, but that might be tricky.

theblaze:

--- Quote ---Would you mind just walking me through setting it up?  I'd like to have at least some idea of what's changed so when it breaks I vaguely know what to poke :)  The server is just a linux box.
--- End quote ---

https://certbot.eff.org/ has a good quick start guide, otherwise we can chat on IRC or something if you have issues.

RE matrix, think of it as the IRC that we used to run just that it has scrollback / good web access etc. Was a bit off topic though.


--- Quote ---At the moment/historically it's first-come-first-serve, and there's nothing to prevent either duplication of bots when two people download a file at once or getting your own bot back.  But we can certainly do something smarter, especially if it's only a little bit of code to enable.  But my first priority would just be getting something set up.
--- End quote ---
So what I've been thinking is to have a URL that you can use for different environments, eg im.darwinbots.com/zerobots or a private im.darwinbots.com/myownpersonalsim732187


--- Quote ---Can you issue login credentials to people?  That would prevent at least some sorts of abuses I'm concerned with.  If we could tie it in the forum authentication that would be even better, but that might be tricky.
--- End quote ---
Should be possible, will be a bit tricky to do it with the forum details though

theblaze:

--- Quote ---two people download a file at once or getting your own bot back.
--- End quote ---

So I'm thinking for each world (better word than environment in previous reply), each client needs to stay within +10 and -10 bots (client identified by IP, not that hard to beat the restriction, but if someone wants to they'll find a way) to prevent taking all / flooding the IM with their own bots, then we keep a pool of say 100 bots on the server. If a client requests to GET a bot and they're within their limit and we have 100+ bots on the server then we choose a random bot, send it to them, and delete it from the server. Won't guarantee that you won't get the same bot right back, but you'll have a good chance it isn't the same you sent out.

theblaze:
Woot, got it running. Will make it publicly available in 2-3 hours

Numsgil:
I got the https certificates but certbot is having a hard time installing them in to apache.  We have a lot of virtual hosts that are Include'd from other files, and I think that's confusing it.  I'll need to manually add the certificates to all the virtual host files.  Sometime in the next few days hopefully.

Navigation

[0] Message Index

[#] Next page

[*] Previous page

Go to full version