oci-images/mediawiki/config.json

64 lines
1.1 KiB
JSON
Raw Normal View History

2024-10-26 12:09:50 -05:00
{
"listeners": {
"*:80": {
"pass": "routes"
}
},
"routes": [
{
"match": {
"uri": [
"/w/index.php*",
"/w/load.php*",
"/w/api.php*",
"/w/thumb.php*",
"/w/opensearch_desc.php*",
"/w/rest.php*",
"/w/img_auth.php*"
2024-10-26 12:09:50 -05:00
]
},
"action": {
"pass": "applications/php_app/direct"
2024-10-26 12:09:50 -05:00
}
},
{
"match": {
"uri": [
"!*.php",
2024-10-26 12:09:50 -05:00
"/w/images/*",
"/w/resources/assets/*",
"/w/resources/lib/*",
"/w/resources/src/*",
"/w/extensions/*",
"/w/skins/*"
2024-10-26 12:09:50 -05:00
]
},
"action": {
"share": "/var/www/html$uri"
}
},
{
"match": {
"uri": ["/wiki/*"]
},
"action": {
"pass": "applications/php_app/index"
}
2024-10-26 12:09:50 -05:00
}
],
"applications": {
"php_app": {
"type": "php",
"targets": {
"direct": {
"root": "/var/www/html"
},
"index": {
"root": "/var/www/html",
"script": "w/index.php"
}
}
2024-10-26 12:09:50 -05:00
}
}
}