Skip to content

Instantly share code, notes, and snippets.

@ibrahimsha23
Last active May 22, 2021 04:52
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save ibrahimsha23/527508ec90a8ba49ff71fd554eb92c0a to your computer and use it in GitHub Desktop.
Save ibrahimsha23/527508ec90a8ba49ff71fd554eb92c0a to your computer and use it in GitHub Desktop.
{
"listeners": {
"*:5000":{
"pass": "applications/flask"
},
"*:8080": {
"pass": "routes/wordpress"
},
"*:8081": {
"pass": "applications/api"
},
},
"routes": {
"wordpress": [
{
"match": {
"uri": [
"*.php",
"*.php/*",
"/wp-admin/"
]
},
"action": {
"pass": "applications/wordpress/direct"
}
},
{
"action": {
"share": "/var/apphome/wordpress",
"fallback": {
"pass": "applications/wordpress/index"
}
}
}
]
},
"applications": {
"flask": {
"type": "python",
"path": "/www/",
"module": "app"
},
"wordpress": {
"type": "php",
"user": "wordpress",
"group": "wordpress",
"targets": {
"direct": {
"root": "/var/apphome/wordpress"
},
"index": {
"root": "/var/apphome/wordpress",
"script": "index.php"
}
},
"options": {
"file": "/etc/php.ini",
"admin": {
"upload_max_filesize": "20M",
"expose_php": "0"
}
}
},
"api": {
"type": "external",
"working_directory": "/var/apphome/api/",
"executable": "server.js"
}
},
"settings": {
"http": {
"header_read_timeout": 10,
"body_read_timeout": 10,
"send_timeout": 10,
"idle_timeout": 120,
"max_body_size": 6291456,
"static": {
"mime_types": {
"text/plain": [
".log",
"README",
"CHANGES"
]
}
}
}
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment