Git Product home page Git Product logo

Comments (4)

tasn avatar tasn commented on July 28, 2024

You did everything right, the only thing missing is that "0.0.0.0:8000" means that you can access the server on any address that leads to this computer. So from the same computer you can use: localhost:8000, from another computer, you'd need to use your computer's IP address.

I understand where you are coming from with the instructions being raw and require a lot of prior knowledge - because it's true. There is A LOT to cover when it comes to setting up your own server, and as you briefly mentioned, there are also a lot of alternatives. For example nginx vs Apache. Trying to cover all of them is just infeasible, and anyhow, even if we do manage, there are a lot of implications for every decision you make. The surface area is just too large.
Another such example: even if you got everything working, you'd probably need to set up port forwarding so your server can be accessed from the outside internet. Same with opening firewall ports. There really is just too much, and your setup (of having the server run on Windows) is rather unique which doesn't help. :)

As for packages: we wish, though it's a lot of work as you said and for not a lot of benefit. Only recently we added packages for some popular Linux distros and even that was a community contribution.

With that being said, if you see an easy way to improve it (now that you got it working), please open a PR! We would love to improve!

I'm closing this as I assume it works (the only thing you have missing is knowing which IP to connect to). Please reopen if it doesn't.

from server.

e-t-l avatar e-t-l commented on July 28, 2024

Thanks for the fast response. I should have mentioned, in addition to trying 0.0.0.0:8000 in the browser, I did also already try localhost:8000 and [my local IP]:8000, but both of those returned "Bad Request (400)" errors (that was why I thought I was missing a step in regards to nginx, port-forwarding, etc). However, when I navigated to localhost:8000, I did notice that my console output the following:
[date & time] "GET / HTTP/1.1" 400 26

And navigating to [my local IP]:8000 output:
[date & time] "GET / HTTP/1.1" 400 26
[date & time] "GET /favicon.ico HTTP/1.1" 400 26

Unfortunately, I don't know what that means. I'm guessing I'm successfully connecting to the port, but there's something wrong with my install? Not sure how to troubleshoot further though.

(Btw, I totally understand why making a Win package isn't worth the effort. As you can tell, I'm not the most experienced programmer, but I'm trying to run etesync as a pet project to learn from the process. Ideally, I would have a dedicated Linux device to host on, but since a Windows desktop is all I have at the moment, that's what I'm trying to make work.)

from server.

e-t-l avatar e-t-l commented on July 28, 2024

Update: After doing a bit of research into the 400 error I found this article: https://stackoverflow.com/questions/19875789/django-gives-bad-request-400-when-debug-false and realized I had configured allowed_host1 wrong in etesync-server.ini. Now when I navigate to localhost:8000 I get a message reading: "It works!" and instructions to read the readme. I assume that once I forward the port in my router and assign a URL to it, I should be able to plug that into the etesync app and connect.

from server.

tasn avatar tasn commented on July 28, 2024

Yes, that is correct, it looks like it works. :)
Just to make sure: don't forget to use nginx/apache in front of the server and in general follow the django security best practices (there's a link from the readme).

from server.

Related Issues (20)

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.