Skip to content
This repository was archived by the owner on Mar 19, 2025. It is now read-only.

Commit d3ff6b0

Browse files
authored
Merge pull request #24 from schemen/master
Add single user mode as enviroment variable
2 parents 182e85b + 99bcf17 commit d3ff6b0

File tree

2 files changed

+16
-5
lines changed

2 files changed

+16
-5
lines changed

README.md

Lines changed: 10 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -79,9 +79,9 @@ A nice thing to have is jwilder's [nginx-proxy](https://github.com/jwilder/nginx
7979
Docker container running on the same machine as this one.
8080

8181
That way you easily can integrate your TT-RSS instance with an existing domain by using a sub domain
82-
(e.g. https://ttrss.yourdomain.tld).
82+
(e.g. https://ttrss.yourdomain.tld).
8383

84-
### Enabling SSL/TLS encryption support
84+
### Enabling SSL/TLS encryption support
8585

8686
In combination with an official Let's Encrypt certificate you
8787
can get a nice A+ encryption/security rating over at [SSLLabs](https://www.ssllabs.com/ssltest/).
@@ -166,6 +166,11 @@ minimum:
166166
```
167167
## Useful stuff to know
168168

169+
### Single User mode
170+
In case you are running behind a proxy that has basic auth and you do not wish to use
171+
ttrss auth, you can set the enviroment variable TTRSS_SINGLEUSER to true and it
172+
will change the setup to single user mode
173+
169174
### Backing up / moving to another server
170175

171176
Decided to back up your data container and/or move to another server? Here's how
@@ -200,11 +205,11 @@ this container takes the burden any checks for updates of TT-RSS and the accompa
200205
plugins/themes every day via an own update script (see `root/srv/update-ttrss.sh`).
201206

202207
By default the update script checks every 24 hours if there are updates for TT-RSS,
203-
the plugins or the theme(s) available.
208+
the plugins or the theme(s) available.
204209

205-
If you want to change the update interval you just need to edit the file
210+
If you want to change the update interval you just need to edit the file
206211
`root/etc/services.d/ttrss-updater/run` and change the `--wait-exit 24h` to fit your needs, whereas
207-
the suffix `h` stands for hours, `m` for minutes and `s` for seconds.
212+
the suffix `h` stands for hours, `m` for minutes and `s` for seconds.
208213

209214

210215
### Want to contribute?

root/srv/setup-ttrss.sh

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -103,6 +103,12 @@ setup_ttrss()
103103
# Patch URL path.
104104
sed -i -e 's@htt.*/@'"${TTRSS_SELF_URL}"'@g' ${TTRSS_PATH}/config.php
105105

106+
# Check if single user mode is selected
107+
if [ "$TTRSS_SINGLEUSER" = true ]; then
108+
echo "Single User mode Selected"
109+
sed -i -e "s/.*define('SINGLE_USER_MODE'.*/define('SINGLE_USER_MODE', 'true');/g" ${TTRSS_PATH}/config.php
110+
fi
111+
106112
# Enable additional system plugins.
107113
if [ -z ${TTRSS_PLUGINS} ]; then
108114

0 commit comments

Comments
 (0)