HelfenKannJeder / come2help

Project for recruiting and coordinating volunteer people.
http://come2.help/
GNU General Public License v3.0
3 stars 6 forks source link

Integrate backend and frontend on one server #25

Closed MariusKl closed 8 years ago

andreas-eberle commented 8 years ago

@valentinz: I think this one is finished, isn't it? I can run both together on my machine. Maybe you can add the required configs here.

vzickner commented 8 years ago

This is finished. The solution is to start the server on port 8080 (default) and the web-client on port 8000 (default). After that it is possible to run nginx with the following configuration:

server {
    # General server configuration

    location / {
        proxy_pass http://127.0.0.1:8000;
    }

    location /api {
        proxy_pass http://127.0.0.1:8080/;
    }
}

For development purpose this should be enough.