{"id":13541767,"url":"https://github.com/bpmct/code-server-azure","last_synced_at":"2025-06-14T03:03:47.894Z","repository":{"id":117906312,"uuid":"338416916","full_name":"bpmct/code-server-azure","owner":"bpmct","description":"Running code-server on Azure","archived":false,"fork":false,"pushed_at":"2021-03-03T23:50:58.000Z","size":34,"stargazers_count":49,"open_issues_count":10,"forks_count":25,"subscribers_count":2,"default_branch":"main","last_synced_at":"2025-06-14T03:01:44.088Z","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":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/bpmct.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}},"created_at":"2021-02-12T19:44:55.000Z","updated_at":"2025-03-31T08:05:00.000Z","dependencies_parsed_at":"2023-03-11T06:00:27.761Z","dependency_job_id":null,"html_url":"https://github.com/bpmct/code-server-azure","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/bpmct/code-server-azure","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bpmct%2Fcode-server-azure","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bpmct%2Fcode-server-azure/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bpmct%2Fcode-server-azure/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bpmct%2Fcode-server-azure/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/bpmct","download_url":"https://codeload.github.com/bpmct/code-server-azure/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bpmct%2Fcode-server-azure/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":259752030,"owners_count":22905968,"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":[],"created_at":"2024-08-01T10:00:56.786Z","updated_at":"2025-06-14T03:03:47.828Z","avatar_url":"https://github.com/bpmct.png","language":"Shell","funding_links":[],"categories":["Installing 💻"],"sub_categories":[],"readme":"# code-server-azure\n\nDeploying code-server on Azure App Service. Can use [--link](https://github.com/cdr/code-server#cloud-program-%EF%B8%8F) or an Azure domain. This uses the [codercom/code-server](https://hub.docker.com/r/codercom/code-server) base image, so it will always use the latest version of code-server.\n\n## This setup includes\n\n- OpenSSH (connect via Azure's portal)\n- Domain+TLS (Provided by --link or Azure)\n- Authentication (Provided by --link or password)\n- A mini redirect web server (if running --link)\n\n## How to run\n\n1. Create a [new web app](https://portal.azure.com/#create/Microsoft.WebSite) from Azure's portal\n1. Deploy this container from the Docker Hub: `bencdr/code-server-azure`\n1. Track the status of your deployment via the \"Deployment Center\"\n1. Hit \"Browse\" on the app overview page to visit your code-server workspace\n\n## Configuration\n\nAfter deploying, you can configure with the following settings (Settings \u003e Configuration \u003e Application Settings)\n\n- `LINK_NAME`: A custom name used for code-server --link (ex. `[linkname]-githubusername.cdr.co`)\n- `PASSWORD`: Password to log into code-server. Adding this will disable the use of --link\n- `GIT_REPO`: A public git repo to clone (see [#3](https://github.com/bpmct/code-server-azure/issues/3))\n- `START_DIR`: The directory code-server opens (default: `/home/coder/project`)\n- `DISABLE_SSH`: Disable SSH access via the Azure portal, saves resources\n\n⚠️  If you are using the **Free (F1) app service plan:** do not set a password. code-server --link will handle your access. See [#2](https://github.com/bpmct/code-server-azure/issues/2) for details\n\n## Troubleshooting\n\nThe web server may not redirect to the --link URL correctly off the bat. Restarting the app or waiting for the deployment to complete may fix the issue. After authenticating with GitHub, a single refresh may be necessary to connect to code-server. \n\nYou can connect to your code server instance via SSH under `Development Tools -\u003e SSH`. Logs for code-server and the mini web server are stored in `/home/coder/`.\n\nBy default, Azure does not have logging enabled. To enable logs, go to \"Monitoring -\u003e App Service Logs\" and turn on. Retention period can be set to 1 day. Then, you can preview logs under \"Monitoring \u003e Log Stream\" or via the Azure CLI:\n\n```sh\n$ az webapp log tail --name [app] --resource-group [resource group]\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbpmct%2Fcode-server-azure","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fbpmct%2Fcode-server-azure","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbpmct%2Fcode-server-azure/lists"}