mirror of
https://codeberg.org/icewind/haze.git
synced 2026-10-01 00:34:09 +02:00
feat(franken): Expose Caddy admin endpoints through haze proxy
Available through: `ember --addr http://<cloud-id>-franken-php.haze.test` Signed-off-by: Louis Chmn <louis@chmn.me>
This commit is contained in:
parent
cf2184bc6b
commit
a130ebcad1
3 changed files with 20 additions and 1 deletions
11
README.md
11
README.md
|
|
@ -496,3 +496,14 @@ name = "groupfolders" # name of the preset
|
|||
apps = ["groupfolders"] # app to enable
|
||||
commands = ["occ groupfolders:create gf", "occ groupfolders:group 1 admin read write share delete"] # commands to run post-setup
|
||||
```
|
||||
|
||||
## FrankenPHP (experimental)
|
||||
|
||||
You can have Nextcloud run on FrankenPHP.
|
||||
|
||||
Caddy's admin metrics are then accessible through
|
||||
`http://<cloud-id>-franken-php.haze.test`. With ember you can run:
|
||||
|
||||
```bash
|
||||
ember --addr http://<cloud-id>-franken-php.haze.test
|
||||
```
|
||||
|
|
|
|||
|
|
@ -1,5 +1,5 @@
|
|||
[program:frankenphp]
|
||||
environment = SERVER_NAME=":80"
|
||||
environment = SERVER_NAME=":80",CADDY_ADMIN=":2019"
|
||||
command = /bin/frankenphp run
|
||||
directory = /var/www/html
|
||||
user=haze
|
||||
|
|
@ -236,6 +236,14 @@ impl ServiceTrait for FrankenPhp {
|
|||
"franken-php"
|
||||
}
|
||||
|
||||
fn container_name(&self, cloud_id: &str) -> Option<String> {
|
||||
Some(cloud_id.to_string())
|
||||
}
|
||||
|
||||
fn proxy_port(&self) -> u16 {
|
||||
2019
|
||||
}
|
||||
|
||||
fn env(&self) -> &[&str] {
|
||||
&["FRANKENPHP=1"]
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue