{"id":18929147,"url":"https://github.com/jwillikers/nginx-config","last_synced_at":"2025-04-15T15:30:45.009Z","repository":{"id":205360893,"uuid":"714055305","full_name":"jwillikers/nginx-config","owner":"jwillikers","description":"NGINX configuration files for services on running on my various devices.","archived":true,"fork":false,"pushed_at":"2024-10-02T12:00:54.000Z","size":30,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-04-06T21:52:13.575Z","etag":null,"topics":["config","nginx","podman","proxy","reverse-proxy"],"latest_commit_sha":null,"homepage":"https://codeberg.org/jwillikers/nginx-config","language":null,"has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"other","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/jwillikers.png","metadata":{"files":{"readme":"README.adoc","changelog":null,"contributing":null,"funding":null,"license":"LICENSE.adoc","code_of_conduct":"CODE_OF_CONDUCT.adoc","threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null}},"created_at":"2023-11-03T20:18:43.000Z","updated_at":"2024-10-02T12:01:39.000Z","dependencies_parsed_at":null,"dependency_job_id":"8bdc0944-e437-4bf9-81f2-2ff8154c2f06","html_url":"https://github.com/jwillikers/nginx-config","commit_stats":null,"previous_names":["jwillikers/nginx-config"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jwillikers%2Fnginx-config","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jwillikers%2Fnginx-config/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jwillikers%2Fnginx-config/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jwillikers%2Fnginx-config/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/jwillikers","download_url":"https://codeload.github.com/jwillikers/nginx-config/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":249097767,"owners_count":21212349,"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":["config","nginx","podman","proxy","reverse-proxy"],"created_at":"2024-11-08T11:30:32.210Z","updated_at":"2025-04-15T15:30:44.750Z","avatar_url":"https://github.com/jwillikers.png","language":null,"funding_links":[],"categories":[],"sub_categories":[],"readme":"= NGINX Config\nJordan Williams \u003cjordan@jwillikers.com\u003e\n:experimental:\n:icons: font\nifdef::env-github[]\n:tip-caption: :bulb:\n:note-caption: :information_source:\n:important-caption: :heavy_exclamation_mark:\n:caution-caption: :fire:\n:warning-caption: :warning:\nendif::[]\n:Asciidoctor_: https://asciidoctor.org/[Asciidoctor]\n:NGINX: https://www.nginx.com/[NGINX]\n:Fedora-IoT: https://getfedora.org/en/iot/[Fedora IoT]\n:Podman: https://podman.io/[Podman]\n:pre-commit: https://pre-commit.com/[pre-commit]\n\nimage:https://img.shields.io/badge/pre--commit-enabled-brightgreen?logo=pre-commit\u0026logoColor=white[pre-commit, link=https://github.com/pre-commit/pre-commit]\n\n{NGINX} configuration files for services on running on my various devices.\n\n== Synopsis\n\nThese instructions are for using this NGINX configuration via a container using rootless {Podman} on {Fedora-IoT}.\nThe instructions for building will assume that you are on Fedora.\n\n== Usage\n\n. Allow rootless containers to publish to ports 80 and 443 by lowering the starting port for the range of unprivileged ports to which users are allowed to publish.\n+\n./etc/sysctl.d/99-ip_unprivileged_port_start.conf\n[,ini]\n----\n; Allow publishing to lower port numbers without requiring superuser privileges.\nnet.ipv4.ip_unprivileged_port_start=80\n----\n\n. Load the new sysctl configuration.\n+\n[,sh]\n----\nsudo sysctl --system\n----\n\n. Open the default HTTP and HTTPS ports in the firewall, since rootless Podman won't be able to open this for us.\n+\n[,sh]\n----\nsudo firewall-cmd --add-port=80/tcp --add-port=443/tcp  --permanent\n----\n\n. Reload the firewall rules that were just saved.\n+\n[,sh]\n----\nsudo firewall-cmd --reload\n----\n\n. Clone the repository.\n+\n[,sh]\n----\ngit clone git@codeberg.org:jwillikers/nginx-config.git\n----\n\n. Change into the project directory.\n+\n[,sh]\n----\ncd nginx-config\n----\n\n. Symlink sites from the `sites-available` subdirectory to the `sites-enabled` subdirectory to enable them.\n+\n[,sh]\n----\nln --relative --symbolic sites-available/electrs.conf sites-enabled/electrs.conf\n----\n\n. Mount the configuration files inside the NGINX container when running like in the following example.\n+\n[,sh]\n----\npodman run \\\n  --detach \\\n  --label \"io.containers.autoupdate=registry\" \\\n  --network systemd-podman \\\n  --name nginx \\\n  --publish 80:80/tcp \\\n  --publish 443:443/tcp \\\n  --rm \\\n  --volume $PWD:/etc/nginx/:ro,Z \\\n  --volume certbot-certificates:/etc/nginx/ssl:ro,z \\\n  docker.io/nginx:latest\n----\n\n== Develop\n\n. Install the pre-commit in the toolbox.\n+\n[,sh]\n----\nsudo dnf -y install pre-commit\n----\n\n. Install pre-commit's Git hooks.\n+\n[,sh]\n----\npre-commit install\n----\n\n== Contributing\n\nContributions in the form of issues, feedback, and even pull requests are welcome.\nMake sure to adhere to the project's link:CODE_OF_CONDUCT.adoc[Code of Conduct].\n\n== Open Source Software\n\nThis project is built on the hard work of countless open source contributors.\nSeveral of these projects are enumerated below.\n\n* {Asciidoctor_}\n* {Fedora-IoT}\n* {NGINX}\n* {Podman}\n* {pre-commit}\n\n== Code of Conduct\n\nRefer to the project's link:CODE_OF_CONDUCT.adoc[Code of Conduct] for details.\n\n== License\n\nThis repository is licensed under the https://www.gnu.org/licenses/gpl-3.0.html[GPLv3], a copy of which is provided in the link:LICENSE.adoc[license file].\n\n© 2023-2024 Jordan Williams\n\n== Authors\n\nmailto:{email}[{author}]\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjwillikers%2Fnginx-config","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fjwillikers%2Fnginx-config","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjwillikers%2Fnginx-config/lists"}