mirror of
https://github.com/sct/overseerr.git
synced 2025-09-17 17:24:35 +02:00
fix(ip logging): add env var for proxy to fix ip logging on failed logins (#756)
This commit is contained in:
@@ -46,7 +46,7 @@
|
|||||||
|
|
||||||
## Getting Started
|
## Getting Started
|
||||||
|
|
||||||
Check out our documenation for steps on how to install and run Overseerr:
|
Check out our documentation for steps on how to install and run Overseerr:
|
||||||
|
|
||||||
https://docs.overseerr.dev/getting-started/installation
|
https://docs.overseerr.dev/getting-started/installation
|
||||||
|
|
||||||
@@ -58,6 +58,7 @@ Currently, Overseerr is only distributed through Docker images. If you have Dock
|
|||||||
docker run -d \
|
docker run -d \
|
||||||
-e LOG_LEVEL=info \
|
-e LOG_LEVEL=info \
|
||||||
-e TZ=Asia/Tokyo \
|
-e TZ=Asia/Tokyo \
|
||||||
|
-e PROXY=<yes|no>
|
||||||
-p 5055:5055 \
|
-p 5055:5055 \
|
||||||
-v /path/to/appdata/config:/app/config \
|
-v /path/to/appdata/config:/app/config \
|
||||||
--restart unless-stopped \
|
--restart unless-stopped \
|
||||||
|
@@ -122,6 +122,8 @@ server {
|
|||||||
add_header X-Frame-Options "SAMEORIGIN" always;
|
add_header X-Frame-Options "SAMEORIGIN" always;
|
||||||
# Prevent Sniff Mimetype (X-Content-Type-Options)
|
# Prevent Sniff Mimetype (X-Content-Type-Options)
|
||||||
add_header X-Content-Type-Options "nosniff" always;
|
add_header X-Content-Type-Options "nosniff" always;
|
||||||
|
# Tell crawling bots to not index the site
|
||||||
|
add_header X-Robots-Tag "noindex, nofollow" always;
|
||||||
|
|
||||||
access_log /var/log/nginx/overseerr.example.com-access.log;
|
access_log /var/log/nginx/overseerr.example.com-access.log;
|
||||||
error_log /var/log/nginx/overseerr.example.com-error.log;
|
error_log /var/log/nginx/overseerr.example.com-error.log;
|
||||||
@@ -131,4 +133,3 @@ server {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
```
|
```
|
||||||
|
|
||||||
|
@@ -17,6 +17,7 @@ After running Overseerr for the first time, configure it by visiting the web UI
|
|||||||
docker run -d \
|
docker run -d \
|
||||||
-e LOG_LEVEL=info \
|
-e LOG_LEVEL=info \
|
||||||
-e TZ=Asia/Tokyo \
|
-e TZ=Asia/Tokyo \
|
||||||
|
-e PROXY=<yes|no> \
|
||||||
-p 5055:5055 \
|
-p 5055:5055 \
|
||||||
-v /path/to/appdata/config:/app/config \
|
-v /path/to/appdata/config:/app/config \
|
||||||
--restart unless-stopped \
|
--restart unless-stopped \
|
||||||
@@ -32,6 +33,7 @@ docker run -d \
|
|||||||
--user=[ user | user:group | uid | uid:gid | user:gid | uid:group ] \
|
--user=[ user | user:group | uid | uid:gid | user:gid | uid:group ] \
|
||||||
-e LOG_LEVEL=info \
|
-e LOG_LEVEL=info \
|
||||||
-e TZ=Asia/Tokyo \
|
-e TZ=Asia/Tokyo \
|
||||||
|
-e PROXY=<yes|no> \
|
||||||
-p 5055:5055 \
|
-p 5055:5055 \
|
||||||
-v /path/to/appdata/config:/app/config \
|
-v /path/to/appdata/config:/app/config \
|
||||||
--restart unless-stopped \
|
--restart unless-stopped \
|
||||||
|
@@ -61,6 +61,9 @@ app
|
|||||||
startJobs();
|
startJobs();
|
||||||
|
|
||||||
const server = express();
|
const server = express();
|
||||||
|
if (process.env.PROXY === 'yes') {
|
||||||
|
server.enable('trust proxy');
|
||||||
|
}
|
||||||
server.use(cookieParser());
|
server.use(cookieParser());
|
||||||
server.use(bodyParser.json());
|
server.use(bodyParser.json());
|
||||||
server.use(bodyParser.urlencoded({ extended: true }));
|
server.use(bodyParser.urlencoded({ extended: true }));
|
||||||
|
Reference in New Issue
Block a user