mcpa-stlouis / hack-the-arch

Welcome to HackTheArch! A free open source scoring server for cyber Capture the Flag competitions!
https://hackthearch.herokuapp.com
MIT License
66 stars 27 forks source link

how can I run it on http #35

Closed berTrAM888 closed 6 years ago

berTrAM888 commented 7 years ago

how can I run it on http?

stela-kucek commented 6 years ago

I'm also struggling with accessing the app inside a browser. I tried to access the IP of my docker machine, as described in https://github.com/mcpa-stlouis/hack-the-arch/blob/dev/DOCKER_README.md, but this doesn't seem to work...

Can someone provide clearer/more precise instructions for this? Thank you in advance!

paullj1 commented 6 years ago

So pardon my stupid question, but how are you running Docker? The compose file will map the ports you need to the host running the Docker engine. Docker machine != Docker container. If you’re running the engine natively, then you can browse to localhost.

Does that make sense? On Tue, Nov 21, 2017 at 05:21 Stela Kucek notifications@github.com wrote:

I'm also struggling with accessing the app inside a browser. I tried to access the IP of my docker machine, as described in https://github.com/mcpa-stlouis/hack-the-arch/blob/dev/DOCKER_README.md, but this doesn't seem to work...

Can someone provide clearer/more precise instructions for this? Thank you in advance!

— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub https://github.com/mcpa-stlouis/hack-the-arch/issues/35#issuecomment-345981909, or mute the thread https://github.com/notifications/unsubscribe-auth/AIb5B1vqSjBzkb3YoEwYRo-g9HfNdL1cks5s4qQvgaJpZM4QRc9r .

paullj1 commented 6 years ago

To answer the original question, running HTA over http is not recommended/supported since passwords are transmitted. Https, is the recommended way, and if you start puma the way the compose file is written, then you should have no problem.

stela-kucek commented 6 years ago

@paullj1 Thank you for answering. I'm sorry, but I've read your instructions numerous times now, and still can't help but feeling that there are some guidelines missing. Important to note here: I'm not a pro, so my issues might not seem reasonable or worthwhile to you. Nevertheless, I would really like to successfully configure and test your platform. So, here is what I (didn't) understand following your Getting Started section:

?

It would be nice to have more detailed instructions on the initial configuration process. Maybe not every single command but at least a full (up-to-date) list of requirements and a list of necessary steps.

Thanks in advance!

paullj1 commented 6 years ago

@veryredheaded, I'll do my best to answer some of your questions. Before I start though, it might be worth mentioning that my instructions do assume a bit of background in rails development. In other words, I assumed that anyone who might be trying to deploy a rails web app would have some experience doing so. That said, the reason I created the docker container and deployment option was for those without that experience. I'd strongly suggest pursuing that option though you might have to checkout the dev branch and follow the DOCKER_README instructions.

I'm sorry that probably wasn't the step-by-step directions you were looking for. My base level assumption when writing this app was basic understanding of the rails platform. That said, if you are interested in learning rails, there's a fantastic guide for free on the internet here: http://railstutorial.org/. Otherwise, please use the docker deployment option.

I hope this helps.

stela-kucek commented 6 years ago

@paullj1 thank you so much for the detailed answer. I will definitely look into rails apps for better understanding.

Since I have no experience with it, I have tried the docker option first, but didn't know how to actually access HTA via browser. That was my main problem. But I will try to do it again, with the dev branch this time...

Thanks for your efforts and sorry for all the stupid questions :/

paullj1 commented 6 years ago

Accessing it will be your docker host's IP (depends on how you're running the docker engine). If you're running it in an Ubuntu VM natively, you should be able to access it at: https://UBUNTU_VM_IP/

On Wed, Nov 22, 2017 at 7:27 AM Stela Kucek notifications@github.com wrote:

@paullj1 https://github.com/paullj1 thank you so much for the detailed answer. I will definitely look into rails apps for better understanding.

Since I have no experience with it, I have tried the docker option first, but didn't know how to actually access HTA via browser. That was my main problem. But I will try to do it again, with the dev branch this time...

Thanks for your efforts and sorry for all the stupid questions :/

— You are receiving this because you were mentioned.

Reply to this email directly, view it on GitHub https://github.com/mcpa-stlouis/hack-the-arch/issues/35#issuecomment-346336160, or mute the thread https://github.com/notifications/unsubscribe-auth/AIb5B5aXJAuIdjBDYwWj965TwORfk9Reks5s5BNAgaJpZM4QRc9r .

stela-kucek commented 6 years ago

@paullj1 Thank you so much! It finally works :)

hta_screenshot

paullj1 commented 6 years ago

Great to hear! On Wed, Nov 22, 2017 at 08:01 Stela Kucek notifications@github.com wrote:

@paullj1 https://github.com/paullj1 Thank you so much! It finally works :)

[image: hta_screenshot] https://user-images.githubusercontent.com/18488581/33128680-8a24f9e8-cf8d-11e7-8b94-8d65ac9355a9.png

— You are receiving this because you were mentioned.

Reply to this email directly, view it on GitHub https://github.com/mcpa-stlouis/hack-the-arch/issues/35#issuecomment-346343605, or mute the thread https://github.com/notifications/unsubscribe-auth/AIb5B9zHLnXVVfNX9eGHqM4F9DBJQzI-ks5s5BsfgaJpZM4QRc9r .