-
Notifications
You must be signed in to change notification settings - Fork 58
feat(filebrowser): support subdomain = false #286
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thank you @Seppdo for the contribution.
I have requested a few changes to make it more optimized.
filebrowser/README.md
Outdated
### Serve from the same domain (no subdomain) | ||
|
||
Make sure to set both workspace_name and owner_name. | ||
|
||
```tf | ||
module "filebrowser" { | ||
source = "registry.coder.com/modules/filebrowser/coder" | ||
agent_id = coder_agent.main.id | ||
workspace_name = data.coder_workspace.me.name | ||
owner_name = data.coder_workspace_owner.me.name | ||
} | ||
``` |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Also update the example accordingly.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
You may have to adjust a few places.
You can also check my review for #288 and do a similar approach. In this case you can discard the requested changes. |
Co-authored-by: Muhammad Atif Ali <[email protected]>
Co-authored-by: Muhammad Atif Ali <[email protected]>
Co-authored-by: Muhammad Atif Ali <[email protected]>
Co-authored-by: Muhammad Atif Ali <[email protected]>
Co-authored-by: Muhammad Atif Ali <[email protected]>
Co-authored-by: Muhammad Atif Ali <[email protected]>
Co-authored-by: Muhammad Atif Ali <[email protected]>
Add missing subdomain variable
- Fix subdomain variable expected as number by count in data fields - Add test case for subdomain=false
Co-authored-by: Muhammad Atif Ali <[email protected]>
- Add agent_name to test cases since it is a required variable (even on those cases where it is not actually needed) - Prettify README.md
Since agent_name is a required parameter, it must be set even in cases where it is not actually needed (e.g. every case with subdomain=true) I think users are fine with this, especially since they can just copy the example in the readme. |
I don't know how to fix the error in the pretty check |
@Seppdo can you run |
Resolves #285.
Add variables
workspace_name
,owner_name
andresource_name
to be able to infer the directory the module is served at. Set this directory in the filebrowser app via thefilebrowser config set --baseurl
function.Added an example to readme.