|
@@ -47,7 +47,23 @@ docker compose up -d
|
|
|
|
|
|
```sh
|
|
|
rye sync --no-dev
|
|
|
-rye run uvicorn src.rural_dict.__main__:app --port 5758
|
|
|
+rye run uvicorn src.rural_dict.__main__:app --no-access-log --proxy-headers \
|
|
|
+ --forwarded-allow-ips '*' --host 0.0.0.0 --port 5758
|
|
|
+```
|
|
|
+
|
|
|
+### 🛡️ Running behind a reverse proxy
|
|
|
+
|
|
|
+To run the app behind a reverse proxy, ensure that the appropriate proxy headers are added.
|
|
|
+Below is a sample configuration for NGINX:
|
|
|
+
|
|
|
+```text
|
|
|
+location / {
|
|
|
+ proxy_pass http://127.0.0.1:5758;
|
|
|
+ proxy_set_header Host $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;
|
|
|
+}
|
|
|
```
|
|
|
|
|
|
## 🔧 Development
|
|
@@ -84,7 +100,7 @@ to:
|
|
|
|
|
|
## 👥 Contributors
|
|
|
|
|
|
-- [thirtysix](https://thirtysix.pw), rewrote project in more modern Python stack
|
|
|
+- [thirtysix](https://thirtysix.pw), rewrote project in a more modern libraries stack
|
|
|
- [zortazert](https://codeberg.org/zortazert), created the initial Urban Dictionary frontend using
|
|
|
JavaScript and helped develop Rural Dictionary
|
|
|
|