Skip to content

Commit

Permalink
Pull back the upstream config file since I upstreamed lots of changes
Browse files Browse the repository at this point in the history
  • Loading branch information
TheFrenchGhosty committed May 8, 2024
1 parent 52e3ed4 commit 98e7508
Show file tree
Hide file tree
Showing 2 changed files with 18 additions and 31 deletions.
8 changes: 1 addition & 7 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -11,12 +11,6 @@ This image mostly exist for the [PussTheCat.org](https://pussthecat.org/) [insta
- Download (or copy the content of) the `docker-compose.yml`
- Download (or copy the content of) the `config.toml` from this repository, or from upstream: https://github.com/syeopite/priviblur/blob/master/config.example.toml
- Customize the `config.toml` file how you want

Note:

- deployment/host must be set to 0.0.0.0

- uncomment every functions under cache and set url to `"redis://priviblur-redis:6379"` to use Redis

- uncomment "url" under [cache] to enable Redis (Every other options in the [cache] section will use their default value (indicated next to them) if they are kept commented out.)
- Move both files to the folder you want
- `docker-compose up -d`
41 changes: 17 additions & 24 deletions config.toml
Original file line number Diff line number Diff line change
@@ -1,50 +1,43 @@
# Controls deployment options
[deployment]
host = "127.0.0.1"
host = "0.0.0.0" # Set to 127.0.0.1 if you use a reverse proxy, or access it locally
port = 8000

# Amount of worker Priviblur instances to spawn. Increases speed significantly.
# workers = 1

# # 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
#

# # Controls redis cache options
# # Ignore to disable the cache
# #
# # To enable caching, Redis is required, you then have to uncomment "url" and set it accordingly. Every other options in this section will use their default value (indicated next to them) if they are kept commented out.
# [cache]

# url =
# # For docker use the following:
# url = "redis://priviblur-redis:6379"

# Number of seconds to cache poll results from active polls
# # 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
# # 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
# # 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
# # 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
# # Number of seconds to cache individual posts for
# cache_blog_post_for = 300

# Controls behaviors pertaining to the way Priviblur requests Tumblr
# # 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
# # Timeout for fetching image responses from Tumblr
# image_response_timeout = 30


Expand All @@ -65,4 +58,4 @@

# [misc]
# # Enable sanic's dev mode
# dev_mode = false
# dev_mode = false

0 comments on commit 98e7508

Please sign in to comment.