mirror of
https://github.com/benbusby/whoogle-search.git
synced 2026-02-07 11:33:37 -05:00
- Updated `docker-compose.yml` to remove version specification for modern compatibility. - Enhanced secret key management in `__init__.py` with a new function to load or generate a secure key. - Changed session file handling from `pickle` to `json` for improved security and compatibility. - Added security headers in `routes.py` to enhance application security. - Updated version to 1.2.1 in `version.py`. - Refactored key derivation method in `config.py` to use PBKDF2 for better security. - Improved calculator widget's evaluation method to prevent arbitrary code execution.
49 lines
1.8 KiB
YAML
49 lines
1.8 KiB
YAML
# Modern docker-compose format (v2+) does not require version specification
|
|
# Memory limits are supported in Compose v2+ without version field
|
|
|
|
services:
|
|
whoogle-search:
|
|
image: ${WHOOGLE_IMAGE:-benbusby/whoogle-search}
|
|
container_name: whoogle-search
|
|
restart: unless-stopped
|
|
pids_limit: 50
|
|
mem_limit: 256mb
|
|
memswap_limit: 256mb
|
|
# user debian-tor from tor package
|
|
user: whoogle
|
|
security_opt:
|
|
- no-new-privileges
|
|
cap_drop:
|
|
- ALL
|
|
tmpfs:
|
|
- /config/:size=10M,uid=927,gid=927,mode=1700
|
|
- /var/lib/tor/:size=15M,uid=927,gid=927,mode=1700
|
|
- /run/tor/:size=1M,uid=927,gid=927,mode=1700
|
|
#environment: # Uncomment to configure environment variables
|
|
# Basic auth configuration, uncomment to enable
|
|
#- WHOOGLE_USER=<auth username>
|
|
#- WHOOGLE_PASS=<auth password>
|
|
# Proxy configuration, uncomment to enable
|
|
#- WHOOGLE_PROXY_USER=<proxy username>
|
|
#- WHOOGLE_PROXY_PASS=<proxy password>
|
|
#- WHOOGLE_PROXY_TYPE=<proxy type (http|https|socks4|socks5)
|
|
#- WHOOGLE_PROXY_LOC=<proxy host/ip>
|
|
# Site alternative configurations, uncomment to enable
|
|
# Note: If not set, the feature will still be available
|
|
# with default values.
|
|
#- WHOOGLE_ALT_TW=farside.link/nitter
|
|
#- WHOOGLE_ALT_YT=farside.link/invidious
|
|
#- WHOOGLE_ALT_IG=farside.link/bibliogram/u
|
|
#- WHOOGLE_ALT_RD=farside.link/libreddit
|
|
#- WHOOGLE_ALT_MD=farside.link/scribe
|
|
#- WHOOGLE_ALT_TL=farside.link/lingva
|
|
#- WHOOGLE_ALT_IMG=farside.link/rimgo
|
|
#- WHOOGLE_ALT_WIKI=farside.link/wikiless
|
|
#- WHOOGLE_ALT_IMDB=farside.link/libremdb
|
|
#- WHOOGLE_ALT_QUORA=farside.link/quetre
|
|
#- WHOOGLE_ALT_SO=farside.link/anonymousoverflow
|
|
#env_file: # Alternatively, load variables from whoogle.env
|
|
#- whoogle.env
|
|
ports:
|
|
- 5000:5000
|