mirror of
https://github.com/coder/coder.git
synced 2026-09-24 15:04:27 +08:00
This PR solves #10478 by auto-filling previously used template values in create and update workspace flows. I decided against explicit user values in settings for these reasons: * Autofill is far easier to implement * Users benefit from autofill _by default_ — we don't need to teach them new concepts * If we decide that autofill creates more harm than good, we can remove it without breaking compatibility
29 lines
797 B
TypeScript
29 lines
797 B
TypeScript
// Default port from the server
|
|
export const defaultPort = 3000;
|
|
export const prometheusPort = 2114;
|
|
|
|
// Use alternate ports in case we're running in a Coder Workspace.
|
|
export const agentPProfPort = 6061;
|
|
export const coderdPProfPort = 6062;
|
|
|
|
// Credentials for the first user
|
|
export const username = "admin";
|
|
export const password = "SomeSecurePassword!";
|
|
export const email = "admin@coder.com";
|
|
|
|
export const gitAuth = {
|
|
deviceProvider: "device",
|
|
webProvider: "web",
|
|
// These ports need to be hardcoded so that they can be
|
|
// used in `playwright.config.ts` to set the environment
|
|
// variables for the server.
|
|
devicePort: 50515,
|
|
webPort: 50516,
|
|
|
|
authPath: "/auth",
|
|
tokenPath: "/token",
|
|
codePath: "/code",
|
|
validatePath: "/validate",
|
|
installationsPath: "/installations",
|
|
};
|