mirror of
https://github.com/asapach/peerflix-server.git
synced 2026-04-25 06:35:48 +03:00
[GH-ISSUE #18] Password protection #18
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @diwu1989 on GitHub (Dec 31, 2014).
Original GitHub issue: https://github.com/asapach/peerflix-server/issues/18
I would like to run this on my server, can you implement password protection?
Simple http password would work
@asapach commented on GitHub (Jan 2, 2015):
I think it's really out of scope of this project. If you would like to make your server publicly available on the web, you should put a reverse proxy server in front of peerflix-server, enable SSL and basic auth. Here's my nginx config that I use on my Ubuntu 14.04 server (as mentioned here):
You can follow this guide on how to enable SSL: https://www.digitalocean.com/community/tutorials/how-to-create-an-ssl-certificate-on-nginx-for-ubuntu-14-04
And this guide on how to enable basic http authentication: https://www.digitalocean.com/community/tutorials/how-to-set-up-http-authentication-with-nginx-on-ubuntu-12-10
This config also enables websocket proxy for the socket.io endpoint.
I would also recommend to set up peerflix-server as a daemon (using
upstartor similar init system) - you can see my config here: #10@asapach commented on GitHub (Apr 13, 2015):
see #34