peer-calls/src/views/index.pug
Jerko Steiner 795d31f89f Add ability to set custom base url (reverse proxy)
The URL can be set by either:

1. Setting the `baseUrl` property in `config/default.json`,
   `config/local.json`, or `config/${NODE_ENV}.json` file.
2. Setting the `PEERCALLS_BASE_URL` environment variable.

For example:

```
$ PEERCALLS_BASE_URL=/test1/test2 npm start

> peer-calls@2.0.3 start /peer-calls
> node src/index.js

  peercalls WebSocket URL: /test1/test2/ws +0ms
  peercalls Listening on: 3000 +76ms
```

In this case, opening `http://localhost:3000/test1/test2` would open the
homepage.

Fix #42
2017-08-17 20:14:17 -04:00

27 lines
1.1 KiB
Plaintext

doctype html
html
head
title Peer Calls - Video calls to anybody in the world with a private direct connection
meta(charset="utf-8")
meta(name="description" content="Make video calls to anybody in the world with a private connection. Share the conversation by sharing url.")
meta(name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=no")
meta(name="mobile-web-app-capable" content="yes")
meta(name="apple-mobile-web-app-capable" content="yes")
link(rel="apple-touch-icon" href=baseUrl + "res/icon.png")
link(rel="icon" sizes="256x256" href=baseUrl + "res/icon.png")
link(rel="stylesheet" type="text/css" href=baseUrl + "/static/style.css")
body
include ./_fork.pug
#container
form#form(method="get" action=baseUrl + "/call")
h1
img(src=baseUrl + "/res/peer-calls.svg" width="100%" alt="Peer Calls")
p Group peer-to-peer calls for everyone. Create a private room. Share the link.
input(type="submit" value="New Session")
footer
div v#{version}