diff --git a/README.md b/README.md index 6feae7b..a1768f0 100644 --- a/README.md +++ b/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://-franken-php.haze.test`. With ember you can run: + +```bash +ember --addr http://-franken-php.haze.test +``` diff --git a/nix/image/configs/supervisor/frankenphp.conf b/nix/image/configs/supervisor/frankenphp.conf index 54bf787..cc88f7d 100644 --- a/nix/image/configs/supervisor/frankenphp.conf +++ b/nix/image/configs/supervisor/frankenphp.conf @@ -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 \ No newline at end of file diff --git a/src/service.rs b/src/service.rs index 233e88f..42646fb 100644 --- a/src/service.rs +++ b/src/service.rs @@ -236,6 +236,14 @@ impl ServiceTrait for FrankenPhp { "franken-php" } + fn container_name(&self, cloud_id: &str) -> Option { + Some(cloud_id.to_string()) + } + + fn proxy_port(&self) -> u16 { + 2019 + } + fn env(&self) -> &[&str] { &["FRANKENPHP=1"] }