{"id":29403539,"url":"https://github.com/songdrop/forgejo-azure","last_synced_at":"2026-05-20T14:36:10.870Z","repository":{"id":303091177,"uuid":"1014377756","full_name":"SongDrop/forgejo-azure","owner":"SongDrop","description":"python script to install forgejo on Azure","archived":false,"fork":false,"pushed_at":"2025-07-05T16:09:43.000Z","size":22,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":0,"default_branch":"main","last_synced_at":"2025-07-05T17:05:31.301Z","etag":null,"topics":["azure","forgejo","python"],"latest_commit_sha":null,"homepage":"","language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/SongDrop.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":"2025-07-05T15:51:29.000Z","updated_at":"2025-07-05T16:09:47.000Z","dependencies_parsed_at":"2025-07-05T17:16:06.867Z","dependency_job_id":null,"html_url":"https://github.com/SongDrop/forgejo-azure","commit_stats":null,"previous_names":["songdrop/forego-azure"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/SongDrop/forgejo-azure","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/SongDrop%2Fforgejo-azure","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/SongDrop%2Fforgejo-azure/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/SongDrop%2Fforgejo-azure/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/SongDrop%2Fforgejo-azure/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/SongDrop","download_url":"https://codeload.github.com/SongDrop/forgejo-azure/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/SongDrop%2Fforgejo-azure/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":264637857,"owners_count":23642062,"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":["azure","forgejo","python"],"created_at":"2025-07-10T19:00:39.056Z","updated_at":"2026-05-20T14:36:10.835Z","avatar_url":"https://github.com/SongDrop.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"```\n ▄▄▄▄▄▄▄ ▄▄▄▄▄▄▄ ▄▄▄▄▄▄   ▄▄▄▄▄▄▄ ▄▄▄▄▄▄▄     ▄▄▄ ▄▄▄▄▄▄▄\n█       █       █   ▄  █ █       █       █   █   █       █\n█    ▄▄▄█   ▄   █  █ █ █ █   ▄▄▄▄█    ▄▄▄█   █   █   ▄   █\n█   █▄▄▄█  █ █  █   █▄▄█▄█  █  ▄▄█   █▄▄▄ ▄  █   █  █ █  █\n█    ▄▄▄█  █▄█  █    ▄▄  █  █ █  █    ▄▄▄█ █▄█   █  █▄█  █\n█   █   █       █   █  █ █  █▄▄█ █   █▄▄▄█       █       █\n█▄▄▄█   █▄▄▄▄▄▄▄█▄▄▄█  █▄█▄▄▄▄▄▄▄█▄▄▄▄▄▄▄█▄▄▄▄▄▄▄█▄▄▄▄▄▄▄█\n\n```\n\n# Forgejo Self-Hosted Git Client Server on Azure\n\nThis is an **automatic installation** on Azure to set up a forgejo self-hosted git server.\n\n---\n\n## Step 1: Create a Microsoft Azure account on https://portal.azure.com\n\n## Step 2: Point your DNS records to Microsoft Azure\n\n## Step 3: Create a new Application in Microsoft Entra ID and fill out the .evn\n\n## Step 4: Run setup script for automatic software installation on the virtual machine\n\n---\n\n---\n\n\u003e **Important:**  \n\u003e You will need to update your domain's nameservers at your registrar (e.g., Namecheap) to the following Azure DNS nameservers:\n\u003e\n\u003e - ns1-01.azure-dns.com\n\u003e - ns2-01.azure-dns.net\n\u003e - ns3-01.azure-dns.org\n\u003e - ns4-01.azure-dns.info\n\u003e\n\u003e Make sure your DNS records point to Azure **before** you start the installation.\n\n---\n\n## Required `.env` values for Azure:\n\nYou need to provide the following values in your `.env` file:\n\n```\nAzure subscription -\u003e portal.azure.com\n\nAZURE_SUBSCRIPTION_ID=''  # https://portal.azure.com/#view/Microsoft_Azure_Billing/SubscriptionsBladeV2\nAZURE_TENANT_ID=''        # https://portal.azure.com/#view/Microsoft_AAD_IAM/ActiveDirectoryMenuBlade/~/Overview\nAZURE_APP_CLIENT_ID=''\nAZURE_APP_CLIENT_SECRET=''\nAZURE_APP_TENANT_ID=''\n```\n\nYou also need to create a new Azure Application in Azure Entra ID (Azure Active Directory) to get these credentials.\n\n---\n\n## To start:\n\n```bash\npython3 -m venv myenv\nsource myenv/bin/activate\npip install -r requirements.txt\npython3 create_vm.py\n```\n\n---\n\n## After that, just input these values when prompted, and your forgejo service will be up and running within 5 minutes:\n\n```\nEnter VM username [azureuser]:\nEnter VM password [azurepassword1234!]:\nEnter main domain [example.com]:\nEnter subdomain (e.g., 'forgejo') [forgejo]:\n[INFO] Full domain to configure: forgejo.example.com\nEnter resource group name [forgejogroup]:\nEnter VM name [forgejo]:\nEnter Azure region [uksouth]:\nEnter VM size [Standard_B2s]:\nEnter admin email [admin@example.com]:\nEnter admin password [forgejopass123!]:\nEnter disk size in GB [1024]:\n```\n\n\u003e You might also need to request Azure quota increase for the specific virtual machine size you plan to use.\n\n---\n\nHappy mailing with your new forgejo setup on Azure! 🚀\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsongdrop%2Fforgejo-azure","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fsongdrop%2Fforgejo-azure","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsongdrop%2Fforgejo-azure/lists"}