Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

bind to localhost only & nginx config file #31

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,6 @@ cargo run pull #Pulls data, without updating anything
You can find more in `main.rs`


Once the database is setup you can start a local server that is accessible on `localhost`
Once the database is setup you can start a local server that is accessible on `localhost:8085`
with `cargo run`. By default the server will continuously pull down new replays and update the rankings. If you do not
want this behaviour you may run `cargo run -- nothoughts` instead to only start the website.
4 changes: 2 additions & 2 deletions Rocket.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[default]
address = "0.0.0.0"
port = 80
address = "127.0.0.1"
port = 8085

[global.databases]
ratings = { url = "ratings.sqlite" }
11 changes: 11 additions & 0 deletions nginx-example.conf
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
server {
server_name ratingupdate.info;
# access_log /var/log/nginx/ratingupdate.log
location / {
proxy_pass http://127.0.0.1:8085;
}

location ~ /\.well-known/acme-challenge {
root /var/lib/letsencrypt/;
}
}