Skip to content

Commit

Permalink
update readme
Browse files Browse the repository at this point in the history
  • Loading branch information
ornicar committed Jan 27, 2014
1 parent 80e2e25 commit c9e3b18
Show file tree
Hide file tree
Showing 4 changed files with 7 additions and 51 deletions.
6 changes: 3 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -88,7 +88,7 @@ From here you can now run the application (`run`).
}
```

#### JSONP
Example usage with JSONP:

```javascript
$.ajax({
Expand Down Expand Up @@ -131,7 +131,7 @@ name | type | default | description
}
```

#### JSONP
Example usage with JSONP:

```javascript
$.ajax({
Expand Down Expand Up @@ -200,7 +200,7 @@ name | type | default | description

### `POST /api/game/new` create a new game

You can create a new casual game by just POSTing to that url.
You can create a new casual game by just `POST`ing to this url.
You get back two links, for the white player and for the black player.
One could use that API to provide chess capabilities to an online chat, for instance.

Expand Down
8 changes: 3 additions & 5 deletions conf/application.conf.dist
Original file line number Diff line number Diff line change
@@ -1,10 +1,8 @@
include "base"

# Use l.org as local development domain
net {
domain = "l.org"
asset.domain = "static.l.org"
}
# Define application domain name
net.domain = "l.org"

# Use local artificial intelligence
ai {
server = false
Expand Down
38 changes: 1 addition & 37 deletions doc/nginx/l.org.conf
Original file line number Diff line number Diff line change
@@ -1,63 +1,27 @@
# /etc/nginx/lichess.org.conf
# requires lila-proxy.conf
# /etc/nginx/l.org.conf
# assuming lila installed on /home/thib/lila
# running on 127.0.0.1:9663
# and using the local domain l.org

# redirect www.
server {
listen 80;
server_name www.l.org ~^www\.\w\w\.l\.org$;
return 301 https://l.org$request_uri;
}

# proxy websockets
server {
listen 80;
server_name ~^socket\.\w\w\.l\.org$;

location / {
include lila-proxy.conf;
proxy_http_version 1.1;
proxy_set_header Upgrade $http_upgrade;
proxy_set_header Connection "upgrade";
proxy_pass https://127.0.0.1:9663/;
}
}

# serve static files
server {
listen 80;
server_name static.l.org;

# game CSV exports
location /serve {
alias /home/thib/lila/serve;
}

# assets
location / {
alias /home/thib/lila/public;
}
}

# serve HTTP requests
server {
listen 80;
server_name l.org ~^\w\w\.l\.org$;

# maintenance assets can't know about the static domain
location /assets {
alias /home/thib/lila/public;
}

location / {
add_header "X-UA-Compatible" "IE=Edge,chrome=1";
include lila-proxy.conf;
proxy_pass https://127.0.0.1:9663/;
}

location = /robots.txt {
root /home/thib/lila/public/;
}
}
6 changes: 0 additions & 6 deletions doc/nginx/lila-proxy.conf

This file was deleted.

0 comments on commit c9e3b18

Please sign in to comment.