Last active
May 22, 2021 04:52
-
-
Save ibrahimsha23/527508ec90a8ba49ff71fd554eb92c0a to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"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