Skip to content
This repository has been archived by the owner on Dec 16, 2019. It is now read-only.
/ lilycove Public archive

A MediaWiki reverse-proxy cache purger for 52Poké Wiki.

License

Notifications You must be signed in to change notification settings

mudkipme/lilycove

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

lilycove

A MediaWiki reverse-proxy cache purger for 52Poké Wiki.

Requirements

  • MediaWiki
  • Apache Kafka
  • librdkafka

Configuration

Place a config.toml in current directory. The uris should match the

[http]
port = 8080

[queue]
type = "kafka"
group_id = "lilycove"
broker = "localhost:9092"
topic = "lilycove"
rate_limit = 5
rate_interval = 10000

[purge]
expiry = 86400000

[[purge.entries]]
host = "localhost"
method = "PURGE"
variants = ["zh", "zh-hans", "zh-hant"]
uris = [
    "http://localhost#url##variants#",
    "http://localhost#url##variants#mobile"
]

[[purge.entries]]
host = "media_proxy"
method = "PURGE"
uris = [
    "http://media_proxy#url#",
]

Also add this server to $wgSquidServers to allow MediaWiki produce PURGE requests.

If you use nginx as a reverse proxy server, you'll need libnginx-mod-http-cache-purge module installed.

About

A MediaWiki reverse-proxy cache purger for 52Poké Wiki.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published