Skip to content

Commit

Permalink
add instructions for nginx proxy setup
Browse files Browse the repository at this point in the history
  • Loading branch information
PhilReinking committed Mar 22, 2024
1 parent 53ea1aa commit bd000e8
Showing 1 changed file with 17 additions and 0 deletions.
17 changes: 17 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -99,6 +99,23 @@ docker run -d -p 8080:8080 --name input \
ghcr.io/deck9/input:main
```

Also make sure that the proxy is configured to pass forward important request information like the scheme, host and IP.

```nginx
location / {
proxy_set_header Connection "";
proxy_set_header Host $http_host;
proxy_set_header X-Real-IP $remote_addr;
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
proxy_set_header X-Forwarded-Proto $scheme;
proxy_set_header X-Frame-Options SAMEORIGIN;
proxy_http_version 1.1;
# Pass the request to the address of the docker container
proxy_pass http://127.0.0.1:8080;
}
```

### With MySQL

```bash
Expand Down

0 comments on commit bd000e8

Please sign in to comment.