22 lines
495 B
Plaintext
22 lines
495 B
Plaintext
# imgurxp configuration
|
|
|
|
server http {
|
|
bind 127.0.0.1 1112
|
|
tls no
|
|
}
|
|
|
|
load ./imgurxp.so
|
|
|
|
domain * {
|
|
attach http
|
|
|
|
route / asset_serve_index_html
|
|
route /style.css asset_serve_style_css
|
|
route ^/a/[a-zA-Z0-9]{1,40}$ album_or_image
|
|
route ^/album/[a-zA-Z0-9]{1,40}$ album_or_image
|
|
route ^/gallery/[a-zA-Z0-9]{1,40}$ album_or_image
|
|
route ^/[a-zA-Z0-9]{1,40}$ album_or_image
|
|
route ^/proxy/[a-zA-Z0-9]{1,40}\.[a-z]{3,4}$ proxy_image
|
|
route ^.*$ not_found
|
|
}
|