{"id":16106509,"url":"https://github.com/danb35/freenas-iocage-piwigo","last_synced_at":"2025-10-24T21:12:48.267Z","repository":{"id":92705741,"uuid":"486277118","full_name":"danb35/freenas-iocage-piwigo","owner":"danb35","description":"Script to create an iocage jail on Free/TrueNAS for the latest PiWigo release, including Caddy 2.x and MariaDB 10.3","archived":false,"fork":false,"pushed_at":"2024-01-18T19:04:05.000Z","size":16,"stargazers_count":2,"open_issues_count":2,"forks_count":2,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-04-13T09:45:39.862Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Shell","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"gpl-3.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/danb35.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null}},"created_at":"2022-04-27T16:49:31.000Z","updated_at":"2024-02-11T20:25:29.000Z","dependencies_parsed_at":"2025-04-13T09:34:04.382Z","dependency_job_id":"9255490b-a7ef-44fc-bd51-7a4c726a6d50","html_url":"https://github.com/danb35/freenas-iocage-piwigo","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/danb35/freenas-iocage-piwigo","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/danb35%2Ffreenas-iocage-piwigo","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/danb35%2Ffreenas-iocage-piwigo/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/danb35%2Ffreenas-iocage-piwigo/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/danb35%2Ffreenas-iocage-piwigo/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/danb35","download_url":"https://codeload.github.com/danb35/freenas-iocage-piwigo/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/danb35%2Ffreenas-iocage-piwigo/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":280866474,"owners_count":26404718,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","status":"online","status_checked_at":"2025-10-24T02:00:06.418Z","response_time":73,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2024-10-09T19:13:41.971Z","updated_at":"2025-10-24T21:12:48.235Z","avatar_url":"https://github.com/danb35.png","language":"Shell","funding_links":[],"categories":[],"sub_categories":[],"readme":"# freenas-iocage-piwigo\n Script to create an iocage jail on Free/TrueNAS for the latest [PiWigo](https://piwigo.org/) release, including Caddy 2.x and MariaDB 10.3\n\n# Installation\nChange to a convenient directory, clone the repository using `git clone https://github.com/danb35/freenas-iocage-piwigo`, change to the freenas-iocage-piwigo directory, and create a configuration file called `piwigo-config` with your favorite text editor (if you don't have a favorite text editor, `nano` is a good choice--run `nano piwigo-config`).  Then run the script with `script piwigo.log ./piwigo-jail.sh`.\n\n## Configuration options\nIn its minimal form, the configuration file would look like this:\n```\nJAIL_IP=\"192.168.1.78\"\nDEFAULT_GW_IP=\"192.168.1.1\"\nPOOL_PATH=\"/mnt/tank\"\n```\n\n* JAIL_IP:  The IP address to assign the jail.  You may optionally specify a netmask in CIDR notion.  If none is specified, the default is /24.  Values of less than 8 bits or more than 30 bits will also result in a 24-bit netmask.\n* DEFAULT_GW_IP:  The IP address of your default gateway.\n* POOL_PATH:  The path to your main data pool (e.g., `/mnt/tank`).  The Caddyfile and piwigo installation files (i.e., the web pages themselves) will be stored there, in $POOL_PATH/apps/piwigo.  If you have more than one pool, choose the one you want to use for this purpose.\n* JAIL_NAME:  Optional.  The name of the jail.  If not given, will default to \"piwigo\".\n\n## Post-install configuration\nThis script uses the [Caddy](https://caddyserver.com/) web server, which supports automatic HTTPS, reverse proxying, and many other powerful features.  It is configured using a Caddyfile, which is stored at `/usr/local/www/Caddyfile` in your jail, and under `/apps/piwigo/` on your main data pool.  You can edit it as desired to enable these or other features.  For further information, see [my Caddy script](https://github.com/danb35/freenas-iocage-caddy), specifically the included `Caddyfile.example`, or the [Caddy docs](https://caddyserver.com/docs/caddyfile).\n\nThis script installs Caddy from the FreeBSD binary package, which does not include any [DNS validation plugins](https://caddyserver.com/download).  If you need to use these, you'll need to build Caddy from source.  The tools to do this are installed in the jail.  To build Caddy, run these commands:\n```\ngo install github.com/caddyserver/xcaddy/cmd/xcaddy@latest\nxcaddy build --output /usr/local/bin/caddy --with github.com/caddy-dns/${DNS_PLUGIN}\n```\n...with `${DNS_PLUGIN}` representing the name of the plugin, listed on the page linked above.  You'll then need to modify your configuration as described in the Caddy docs.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdanb35%2Ffreenas-iocage-piwigo","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fdanb35%2Ffreenas-iocage-piwigo","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdanb35%2Ffreenas-iocage-piwigo/lists"}