mirror of
https://github.com/coder/code-server.git
synced 2024-12-29 20:52:16 +03:00
16 lines
282 B
Caddyfile
16 lines
282 B
Caddyfile
|
{
|
||
|
admin localhost:4444
|
||
|
}
|
||
|
:8000 {
|
||
|
@portLocalhost path_regexp port ^/([0-9]+)\/ide
|
||
|
handle @portLocalhost {
|
||
|
uri strip_prefix {re.port.1}/ide
|
||
|
reverse_proxy localhost:{re.port.1}
|
||
|
}
|
||
|
|
||
|
handle {
|
||
|
respond "Bad hostname" 400
|
||
|
}
|
||
|
|
||
|
}
|