ayunami2000 / ayunpictojava

PictoChat web app with a server written in Java!
https://pict.chat
139 stars 14 forks source link

Instructions for self-hosting ? #4

Closed creeper451 closed 6 months ago

creeper451 commented 10 months ago

I cloned this repo and I haven't been able to host it on my own could you add some instructions on how to self host like which web server you're using and how to disable the captcha functionality. Thanks you.

8bitbunny commented 10 months ago

i did a quick glance, and it seems the strength of this web app is based around cloudflare's security. it is possible to remove it for say, a offline server self hosted, but will require work from what i quickly saw in the java files. mainly it uses a data element called "secret" which has to be removed all over the place, best option would be making a startup variable that does this upon launching.

i have no idea if the creator has intent to do this, or not, but i might give it a go and make a pull request if i succeed?

ayunami2000 commented 10 months ago

Oops I forgot to reply. To disable captcha, simply leave the secret field blank, and edit the index page to remove the captcha field, and then it will work without captchas. https://github.com/ayunami2000/ayunpictojava/blob/master/src/main/java/me/ayunami2000/ayunpictojava/Main.java#L809

On Thu, Nov 9, 2023, 1:28 PM 8bit @.***> wrote:

i did a quick glance, and it seems the strength of this web app is based around cloudflare's security. it is possible to remove it for say, a offline server self hosted, but will require work from what i quickly saw in the java files. mainly it uses a data element called "secret" which has to be removed all over the place, best option would be making a startup variable that does this upon launching.

i have no idea if the creator has intent to do this, or not, but i might give it a go and make a pull request if i succeed?

— Reply to this email directly, view it on GitHub https://github.com/ayunami2000/ayunpictojava/issues/4#issuecomment-1804341303, or unsubscribe https://github.com/notifications/unsubscribe-auth/AF5DB4CXATRXDMPPBXJSSS3YDUOEJAVCNFSM6AAAAAA65AOENOVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMYTQMBUGM2DCMZQGM . You are receiving this because you are subscribed to this thread.Message ID: @.***>

creeper451 commented 10 months ago

Alright 👍, but my main question is about getting simple instructions for noobies like myself on how to self-host on a Linux server. Thank you.

Kippykip commented 6 months ago

I'd also like to know, I've been looking for an alternative chat client backup in case discord deletes my discord. Would love to self host

nico721GD commented 6 months ago

i just created a pull request with a step by step tutorial on how to self host it, should get merged pretty soon

creeper451 commented 6 months ago

Thanks! I was able to build and host it but I wasn't able to remove the captcha.

nico721GD commented 6 months ago

If you want to make the captcha work, you need to go to the settings.json to set it up. To remove the captcha you need to modify index.html in the www folder, where exactly i cant tell you but this was said by ayun

creeper451 commented 6 months ago

I removed the line "" and it removed the captcha but when I press the "PICTOCHAT ONLINE" button it doesn't do anything.

creeper451 commented 6 months ago

@nico721GD could you make another pull request on how to remove the captcha just like how you wrote it for the build instructions it 🙏 , I'm still new to these stuff.

nico721GD commented 6 months ago

@creeper451 om still currently learning on how to do it, once i figured it out i'll update the pull request. Still learning on how to remove the captcha, remove the kick timer and maybe even remove the limit of peoples in 1 room

ayunami2000 commented 6 months ago

added details to the README, refer to it :D