{"id":28514206,"url":"https://github.com/xirzo/homelab","last_synced_at":"2025-07-04T11:31:36.623Z","repository":{"id":293896172,"uuid":"985355349","full_name":"xirzo/Homelab","owner":"xirzo","description":"Bootstraping stuff for my homelab","archived":false,"fork":false,"pushed_at":"2025-05-19T17:13:50.000Z","size":27,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-06-09T01:36:39.883Z","etag":null,"topics":["bootstrap-server","homelab","self-hosted"],"latest_commit_sha":null,"homepage":"","language":"Shell","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/xirzo.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"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":"2025-05-17T15:33:34.000Z","updated_at":"2025-05-19T17:13:53.000Z","dependencies_parsed_at":"2025-05-17T20:19:21.166Z","dependency_job_id":"92cc773e-e7b5-4cd7-8ece-b4a4d14a495e","html_url":"https://github.com/xirzo/Homelab","commit_stats":null,"previous_names":["xirzo/homelab"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/xirzo/Homelab","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/xirzo%2FHomelab","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/xirzo%2FHomelab/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/xirzo%2FHomelab/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/xirzo%2FHomelab/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/xirzo","download_url":"https://codeload.github.com/xirzo/Homelab/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/xirzo%2FHomelab/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":263501672,"owners_count":23476465,"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":["bootstrap-server","homelab","self-hosted"],"created_at":"2025-06-09T01:36:03.390Z","updated_at":"2025-07-04T11:31:36.581Z","avatar_url":"https://github.com/xirzo.png","language":"Shell","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Homelab\n\nThe idea of this particular repo is to hold a bootstrap script for my homelab, which I use to host some useful apps. This is meant to be used on Arch Linux, and it won`t work on other distributions.\n\n## Install\n\n- Clone repo on your home server and get into scripts directory (you should have NetworkManager installed on your machine, you may install it via **archinstall** when setting up your machine)\n\n```\ngit clone https://github.com/xirzo/homelab \u0026\u0026 cd homelab/scripts\n```\n\n- Install **wireguard** on your **VPS** and put the client config with the name **wg0.conf** into **Homelab** directory on your home server.\n\n**Client wg0.conf example:**\n\n```\n[Interface]\nAddress = 10.7.0.2/24\nDNS = 77.88.8.8, 8.8.4.4\nPrivateKey = \u003cKEY\u003e\n\n[Peer]\nPublicKey = \u003cKEY\u003e\nPresharedKey = \u003cKEY\u003e\nAllowedIPs = 10.7.0.1/32\nEndpoint = \u003cYOUR-SERVER-IP-OR-DOMAIN\u003e:51820\nPersistentKeepalive = 25\n```\n\n*Now you should have wg0.conf in `homelab` directory*\n\n- Make script executable and run it\n\n```bash\nsudo chmod +x scripts/main.sh \u0026\u0026 sudo ./main.sh\n```\n\n## Configuration\n\nYou may change docker-compose files as you wish, but do not remove **vps-network** from networks property as it is needed for forwarding ports to your VPS.\n\n### Adding new docker-compose app\n\n#### Before using main.sh\n\nCreate new docker-compose-\u003cname\u003e.yml file in docker-compose directory and then add such line to the **main.sh**. Note that in order to use WG network you should add **vps-network** to your docker-compose service.\n\n```\nbash ./create_docker_app.sh \"\u003cname\u003e\" \"../docker-compose/docker-compose-\u003cname\u003e.yml\"\n```\n\n#### After using main.sh\n\nYou may just use create_docker_app.sh script or use portainer\n\n```\n./create_docker_app.sh \"\u003cname\u003e\" \"docker-compose-\u003cname\u003e.yml\"\n```\n\n### Setting up Nextcloud AIO\n\n#### Openning Nextcloud in browser\n\nForward port from server to your machine (this command must be executed on your machine, not server nor VPS)\n\n```\nssh -L 8181:localhost:8080 server\n```\n\nThen open your browser at `localhost:8181`\n\n#### Nginx Proxy Manager\n\nConfigure NPM as such and insert domain that you chose on Nextcloud page when it asks so.\n\nNote: If you`ve lost your Nextcloud passcode obtain it with this command (use it on server):\n\n```\nsudo docker exec nextcloud-aio-mastercontainer grep password /mnt/docker-aio-config/data/configuration.json\n```\n\n![image](https://github.com/user-attachments/assets/adb06c74-124e-42bb-9b30-f452e0afb32d)\n![image](https://github.com/user-attachments/assets/05e24410-ee12-443c-a470-569f9ce07a1a)\n![image](https://github.com/user-attachments/assets/8f265120-d0bf-4e20-ad96-9bd8b9c26145)\n![image](https://github.com/user-attachments/assets/9d5e6199-4c3a-4b80-a854-948ad3762cc0)\n\n```\nclient_body_buffer_size 512k;\nproxy_read_timeout 86400s;\nclient_max_body_size 0;\n```\n\n## Enabled systemd services\n\n- sshd\n- docker\n\n## Installed apps\n\n- portainer\n- nextcloud\n- jellyfin\n\n### Used ports\n\n- portainer (12443)\n- nextcloud (90, 9080, 9443)\n\n## List of packages installed\n\n- vim\n- git\n- openssl\n- docker\n- docker-compose\n- terminus-font\n- wireguard-tools\n- resolvconf\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fxirzo%2Fhomelab","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fxirzo%2Fhomelab","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fxirzo%2Fhomelab/lists"}