Skip to content

Commit

Permalink
Introduce multiple backends support
Browse files Browse the repository at this point in the history
  • Loading branch information
Ilya Cohn committed May 11, 2016
2 parents 6f8f589 + c12d1e7 commit feb7bcd
Show file tree
Hide file tree
Showing 25 changed files with 3,535 additions and 1,720 deletions.
7 changes: 5 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,12 +1,14 @@
# pyp-vanila-html
The master branch is available at [http://moimosk.ru/frf/](http://moimosk.ru/frf/)
# pyt-vanila-html
The master branch is available at [http://myfeed.rocks/b/](http://myfeed.rocks/b/)
## Setup
You may whant to edit domains.json for information about supported back ends.
Use `tools/deploy.sh` to collect all the necessary stuff in a desired deployment directory
Then put there and edit `config.josn`:
- the path on your server as "front"
- the path to the files as "static"
- the backend as "serverURL"
- the real-time socket URL as "rtURL"
- the list back ends you whant to serve in "domains"

Then set up the web server to rewrite all the requests to `index.html`, accept those whitch go to `static`

Expand Down Expand Up @@ -34,6 +36,7 @@ var gConfig = {
, "front":"https://{mydomain}/vainlla/"
, "static":"https://{mydomain}/vainlla/s/"
, "rtURL":"{backend real-time}"
, domains: ["FreeFeed", "MyOtherFF"]
...
```

Expand Down
Loading

0 comments on commit feb7bcd

Please sign in to comment.