add priviblur; inv -> ratelimiters.log
This commit is contained in:
parent
491ef10392
commit
1f524d25bc
68
privfrontends/configs/priviblur/config.toml
Normal file
68
privfrontends/configs/priviblur/config.toml
Normal file
@ -0,0 +1,68 @@
|
||||
# Controls deployment options
|
||||
[deployment]
|
||||
host = "127.0.0.1"
|
||||
port = 8000
|
||||
|
||||
# Amount of worker Priviblur instances to spawn. Increases speed significantly.
|
||||
workers = 4
|
||||
|
||||
# # If you're running Priviblur behind a remote proxy, one or more of the following must be set
|
||||
# # can also be set via env variables by captialzing and prefixing with PRIVIBLUR_
|
||||
# #
|
||||
# # For more information see
|
||||
# # https://sanic.dev/en/guide/advanced/proxy-headers.html
|
||||
# #
|
||||
# # Default: None
|
||||
# #
|
||||
# forwarded_secret =
|
||||
# real_ip_header =
|
||||
# proxies_count =
|
||||
|
||||
# Controls redis cache options
|
||||
# Ignore to disable the cache
|
||||
#
|
||||
[cache]
|
||||
url = priviblur-redis:6379
|
||||
|
||||
# Number of seconds to cache poll results from active polls
|
||||
cache_active_poll_results_for = 3600
|
||||
|
||||
# Number of seconds to cache poll results from expired polls
|
||||
cache_expired_poll_results_for = 86400
|
||||
|
||||
# Number of seconds to cache feed (explore, search, etc) results for
|
||||
cache_feed_for = 3600
|
||||
|
||||
# Number of seconds to cache blog feed (blog posts, blog search, blog tagged posts, etc) results for
|
||||
cache_blog_feed_for = 3600
|
||||
|
||||
# Number of seconds to cache individual posts for
|
||||
cache_blog_post_for = 300
|
||||
|
||||
# Controls behaviors pertaining to the way Priviblur requests Tumblr
|
||||
[priviblur_backend]
|
||||
# # Timeout for requests to Tumblr's API
|
||||
main_response_timeout = 10
|
||||
|
||||
# # Timeout for fetching image responses from Tumblr
|
||||
image_response_timeout = 30
|
||||
|
||||
|
||||
# Controls logging behavior
|
||||
#
|
||||
# Use Python's numerical logging levels
|
||||
# https://docs.python.org/3/howto/logging.html#logging-levels
|
||||
# [logging]
|
||||
# # Sanic (Server)'s logging level'
|
||||
# sanic_logging_level = 30
|
||||
|
||||
# # Priviblur's logging level
|
||||
# priviblur_logging_level = 30
|
||||
|
||||
# # Priviblur extractor's logging level
|
||||
# priviblur_extractor_logging_level = 20
|
||||
|
||||
|
||||
# [misc]
|
||||
# # Enable sanic's dev mode
|
||||
# dev_mode = false
|
@ -144,6 +144,11 @@ inv.{{ server_prefix }}.projectsegfau.lt i.{{ server_prefix }}.psf.lt {
|
||||
rewrite /vi/* ?host=i.ytimg.com
|
||||
}
|
||||
header -X-Frame-Options
|
||||
log {
|
||||
# This is temporarily required to monitor nitter traffic due to scrapers being more active, so we need to monitor and rate limit them at a later date.
|
||||
output file /var/log/caddy/ratelimiters.log
|
||||
format json
|
||||
}
|
||||
import def
|
||||
import torloc inv
|
||||
}
|
||||
@ -271,3 +276,8 @@ pi.{{ server_prefix }}.psf.lt {
|
||||
header -X-Frame-Options
|
||||
import def
|
||||
}
|
||||
priviblur.{{ server_prefix }}.projectsegfau.lt priviblur.projectsegfau.lt pb.psf.lt pb.{{ server_prefix }}.psf.lt {
|
||||
import def
|
||||
reverse_proxy :9084
|
||||
import torloc priviblur
|
||||
}
|
||||
|
@ -6,6 +6,11 @@ inv.bp.projectsegfau.lt, i.bp.psf.lt, invidious.projectsegfau.lt, inv.projectseg
|
||||
reverse_proxy localhost:7573 {
|
||||
header_up Host "invidious.projectsegfau.lt"
|
||||
}
|
||||
log {
|
||||
# This is temporarily required to monitor nitter traffic due to scrapers being more active, so we need to monitor and rate limit them at a later date.
|
||||
output file /var/log/caddy/ratelimiters.log
|
||||
format json
|
||||
}
|
||||
@pipedproxy {
|
||||
path /videoplayback
|
||||
path /videoplayback/*
|
||||
|
@ -242,6 +242,24 @@ apps:
|
||||
REDIS_REPLICATION_MODE: master
|
||||
mounts:
|
||||
- "{{data_dir}}/teddit/redis-data:/data"
|
||||
priviblur:
|
||||
needs_configs_dir: true
|
||||
needs_data_dir: true
|
||||
docker_settings:
|
||||
services:
|
||||
- name: priviblur
|
||||
image: quay.io/pussthecat.org/priviblur:latest
|
||||
ports:
|
||||
- "9084:8000"
|
||||
mounts:
|
||||
- "{{configs_dir}}/priviblur/config.toml:/priviblur/config.toml:Z,ro"
|
||||
- name: priviblur-redis
|
||||
image: redis:6.2.5-alpine
|
||||
command: redis-server
|
||||
environment:
|
||||
REDIS_REPLICATION_MODE: master
|
||||
mounts:
|
||||
- "{{data_dir}}/priviblur/redis-data:/data"
|
||||
watchtower:
|
||||
needs_configs_dir: false
|
||||
needs_data_dir: false
|
||||
|
Loading…
Reference in New Issue
Block a user