{"id":22488647,"url":"https://github.com/pipelight/jucenit","last_synced_at":"2025-03-31T09:47:21.237Z","repository":{"id":239088146,"uuid":"797156425","full_name":"pipelight/jucenit","owner":"pipelight","description":"Nginx-unit web server with automatic ssl.","archived":false,"fork":false,"pushed_at":"2024-05-28T16:30:24.000Z","size":322,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2024-05-29T07:39:27.127Z","etag":null,"topics":["nginx-unit","reverse-proxy","server"],"latest_commit_sha":null,"homepage":"https://github.com/pipelight/jucenit","language":"Rust","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"gpl-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/pipelight.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE.md","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}},"created_at":"2024-05-07T09:53:51.000Z","updated_at":"2024-05-30T14:53:51.313Z","dependencies_parsed_at":"2024-05-28T19:11:44.964Z","dependency_job_id":null,"html_url":"https://github.com/pipelight/jucenit","commit_stats":null,"previous_names":["pipelight/jucenit"],"tags_count":1,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/pipelight%2Fjucenit","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/pipelight%2Fjucenit/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/pipelight%2Fjucenit/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/pipelight%2Fjucenit/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/pipelight","download_url":"https://codeload.github.com/pipelight/jucenit/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":246450403,"owners_count":20779406,"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","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":["nginx-unit","reverse-proxy","server"],"created_at":"2024-12-06T17:18:13.171Z","updated_at":"2025-03-31T09:47:21.206Z","avatar_url":"https://github.com/pipelight.png","language":"Rust","funding_links":[],"categories":["Rust"],"sub_categories":[],"readme":"# Jucenit - A simple web server.\n\nWarning:\n\n**Early development stage.**\nDo not use at home.\nYou might not want to come back to other web servers.\n\nThe API is still undergoing some small changes.\n\nJucenit is a web server configurable through short scattered toml files.\nInternally uses [nginx unit](https://github.com/nginx/unit).\n\n## Features\n\n- **Split** your configuration across multiple files in **Toml**.\n- **Easy ssl** renewal.\n\n## Usage\n\n### Expose services\n\n**Your configuration chunks must be uniquely identified with a mandatory uuid.**\n\nUse it as a reverse-proxy.\n\n```toml\n# jucenit.toml\n[[unit]]\nuuid = \"d3630938-5851-43ab-a523-84e0c6af9eb1\"\nlisteners = [\"*:443\"]\n[unit.match]\nhosts = [\"example.com\"]\n[unit.action]\nproxy = \"http://127.0.0.1:8888\"\n```\n\nOn queries like \"https://example.com\"\nit redirects to the port 8888 on private network.\n\nOr for file sharing\n\n```toml\n# jucenit.toml\n[[unit]]\nuuid = \"f37490cb-d4eb-4f37-bb85-d39dad6a21ab\"\nlisteners = [\"*:443\"]\n[unit.match]\nhosts = [\"test.com\"]\nuri = \"/static\"\n[unit.action]\nshare = [\"/home/website/static\"]\n```\n\nOn queries like \"https://test.com/static/index.html\"\nit redirects to /home/website/static/index.html\n\nAnd many more possibilities at [nginx unit](https://github.com/nginx/unit).\nUpdate the global configuration with your configuration chunks.\n\n```sh\njucenit push\n# or\njucenit push --file jucenit.toml\n```\n\n### Edit the global configuration\n\nThe only way to cherry remove chunks from the global configuration\nis to edit the main configuration with:\n\n```sh\njucenit edit\n```\n\nOr to delete everything previously pushed to the global configuration\n\n```sh\njucenit clean\n```\n\n### Tls/Ssl management\n\nAdd new certificates or Renew almost expired certificates.\n\n```sh\njucenit ssl --renew\n```\n\nRemove every certificates.\n\n```sh\njucenit ssl --clean\n```\n\nRun the daemon for automatic certificate creation and renewal\n\n```sh\njucenit ssl --watch\n```\n\n## How it works ?\n\nSee detailed project structure and functionning at [INTERNALS.md](https://github.com/pipelight/jucenit/INTERNALS.md)\n\n## Install\n\n### with Nix and Nixos\n\nFirst, add the flake url to your flakes **inputs**.\n\n```nix\ninputs = {\n    jucenit.url = \"github:pipelight/jucenit\";\n};\n```\n\nAnd enable the service in your configuration file;\n\n```nix\nservices.jucenit.enable = true;\n```\n\n### with Cargo\n\nYou first need a running instance of nginx-unit.\nSee the [installation guide](https://unit.nginx.org/installation/):\n\nAdd the following configuration changes:\n\n```sh\nunitd --control '127.0.0.1:8080'\n```\n\nSo it listens on tcp port 8080 instead of default unix socket.\n\nInstall on any linux distribution with cargo.\n\n```sh\ncargo install --git https://github.com/pipelight/jucenit\n```\n\nYou need to run a background deamon for autossl.\n\nCreate a file like a systemd-unit file or an initd file\nfor autossl.\n\nIt must run the following command:\n\n```sh\njucenit ssl --watch\n```\n\n## Roadmap\n\ncli:\n\n- [x] add command to edit global configuration with favorite editor.\n- [x] add option to allow passing a toml string instead of a config file path to the executable.\n- [ ] add \"push -d\" to remove a chunk from global configuration.\n\nssl certificates:\n\n- [x] parallel certificate renewal\n- [x] provide a template systemd unit (with nginx-unit sandboxing of course)\n- [x] add support for acme challenge http-01\n- [ ] add support for acme challenge tls-ALPN-01\n\nautomation:\n\n- [x] make a daemon that watches certificates validity\n\nglobal improvements:\n\n- [ ] add a verbosity flag and better tracing\n\n## Authors note\n\n_We need better tooling to easily share our makings to the world._\n\nLicensed under GNU GPLv2 Copyright (C) 2023 Areskul\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fpipelight%2Fjucenit","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fpipelight%2Fjucenit","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fpipelight%2Fjucenit/lists"}