Title: Allow serving apps at `/` · Issue #3378 · coder/coder · GitHub
Open Graph Title: Allow serving apps at `/` · Issue #3378 · coder/coder
X Title: Allow serving apps at `/` · Issue #3378 · coder/coder
Description: Problem Statement resource "coder_app" "code-server" { agent_id = coder_agent.main.id url = "http://localhost:8080/?folder=/home/coder" icon = "/icon/code.svg" } And then is accessed at a URL like https://dev.coder.com/@ammario/moria/app...
Open Graph Description: Problem Statement resource "coder_app" "code-server" { agent_id = coder_agent.main.id url = "http://localhost:8080/?folder=/home/coder" icon = "/icon/code.svg" } And then is accessed at a URL like ...
X Description: Problem Statement resource "coder_app" "code-server" { agent_id = coder_agent.main.id url = "http://localhost:8080/?folder=/home/coder" icon = "/icon/code.svg&quo...
Opengraph URL: https://github.com/coder/coder/issues/3378
X: @github
Domain: github.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"Allow serving apps at `/`","articleBody":"## Problem Statement\r\n\r\n```hcl\r\nresource \"coder_app\" \"code-server\" {\r\n agent_id = coder_agent.main.id\r\n url = \"http://localhost:8080/?folder=/home/coder\"\r\n icon = \"/icon/code.svg\"\r\n}\r\n```\r\nAnd then is accessed at a URL like `https://dev.coder.com/@ammario/moria/apps/code-server`.\r\n\r\nWhile many web applications can be configured to serve at specific paths instead of root, [it's not always obvious](https://coder.com/docs/coder-oss/latest/ides/configuring-web-ides#jupyterlab), possible, or convenient.\r\n\r\nIn these cases, an organization may prefer setting up a wildcard domain so their users can use apps at `/`. We should add this setting in `coderd` since it would likely be configured alongside the main access URL. A coder admin could set it to `cdr.app` and then requests for `{agent_id}-{app_name}.cdr.app` could forward to a particular app.\r\n\r\n## Definition of done \r\n\r\nUsers can access `coder_app` via a subdomain instead of a path\r\n\r\nexample schema:\r\n\r\n```diff\r\nresource \"coder_app\" \"code-server\" {\r\n agent_id = coder_agent.main.id\r\n url = \"http://localhost:8080/?folder=/home/coder\"\r\n icon = \"/icon/code.svg\"\r\n+ relative = true\r\n}\r\n\r\n- # url is https://coder.example.com/@workspace/app\r\n+ # url is https://workspace-app.coder.example.com/\r\n\r\n```","author":{"url":"https://github.com/ammario","@type":"Person","name":"ammario"},"datePublished":"2022-08-03T22:49:04Z","url":"https://github.com/coder/coder/issues/3378"}
| react-profiling | 0 |
| react-import-map | react,react-dom,react-dom/client,react-dom/profiling,react-is,react/compiler-runtime,react/jsx-dev-runtime,react/jsx-runtime,scheduler@b8488ee2c322 |
| route-pattern | /_view_fragments/issues/show/:user_id/:repository/:id/issue_layout(.:format) |
| route-controller | voltron_issues_fragments |
| route-action | issue_layout |
| fetch-nonce | v2:525d7ca2-87bb-3973-c18d-16fdda9a56a4 |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | C208:2463BD:2A5FF22:361D200:6B019C3D |
| html-safe-nonce | 7ad0d8df2c94e5b2c5763cf7b87f0a9317fdfa9d8d44bec3f19f9a9eb5d867b5 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJDMjA4OjI0NjNCRDoyQTVGRjIyOjM2MUQyMDA6NkIwMTlDM0QiLCJ2aXNpdG9yX2lkIjoiMzU1MTE2Mjk1NDUwODUwODIyMSIsInJlZ2lvbl9lZGdlIjoiaWFkIiwicmVnaW9uX3JlbmRlciI6ImlhZCJ9 |
| visitor-hmac | 86a77efe4c5f7e98fd445c69e670b22e2c2564e7207f4778844c016f8838dad7 |
| hovercard-subject-tag | issue:1327864667 |
| github-keyboard-shortcuts | repository,issues,copilot |
| google-site-verification | Apib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I |
| octolytics-url | https://collector.github.com/github/collect |
| analytics-location | / |
| fb:app_id | 1401488693436528 |
| apple-itunes-app | app-id=1477376905, app-argument=https://github.com/_view_fragments/issues/show/coder/coder/3378/issue_layout |
| twitter:image | https://opengraph.githubassets.com/20d573bafb8863c7d2b93c0f0000a60bccfb49828f4be0b7ed44b47dfa14a050/coder/coder/issues/3378 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/20d573bafb8863c7d2b93c0f0000a60bccfb49828f4be0b7ed44b47dfa14a050/coder/coder/issues/3378 |
| og:image:alt | Problem Statement resource "coder_app" "code-server" { agent_id = coder_agent.main.id url = "http://localhost:8080/?folder=/home/coder" icon = "/icon/code.svg" } And then is accessed at a URL like ... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | ammario |
| hostname | github.com |
| expected-hostname | github.com |
| None | cc5dfdd32f62ebd3223cab3af3aa2b268d3605218237326a48a99d1efd89495c |
| turbo-cache-control | no-preview |
| go-import | github.com/coder/coder git https://github.com/coder/coder.git |
| octolytics-dimension-user_id | 95932066 |
| octolytics-dimension-user_login | coder |
| octolytics-dimension-repository_id | 440752086 |
| octolytics-dimension-repository_nwo | coder/coder |
| octolytics-dimension-repository_public | true |
| octolytics-dimension-repository_is_fork | false |
| octolytics-dimension-repository_network_root_id | 440752086 |
| octolytics-dimension-repository_network_root_nwo | coder/coder |
| turbo-body-classes | logged-out env-production page-responsive |
| disable-turbo | false |
| browser-stats-url | https://api.github.com/_private/browser/stats |
| browser-errors-url | https://api.github.com/_private/browser/errors |
| release | 8c77c9e8439031ad54c75a250694842892f693e1 |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
| react-app-name | issues |
Links:
Viewport: width=device-width