forked from lichess-org/lila
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
4 changed files
with
7 additions
and
51 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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/; | ||
} | ||
} |
This file was deleted.
Oops, something went wrong.