Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
D
docker-code-server
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package Registry
Container Registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
MyDockerImages
docker-code-server
Commits
00afdeb4
Unverified
Commit
00afdeb4
authored
4 years ago
by
aptalca
Committed by
GitHub
4 years ago
Browse files
Options
Downloads
Plain Diff
Merge pull request #30 from n-i-x/n-i-x-patch-1
Add support for --proxy-domain
parents
b456c30f
08841b0f
No related branches found
No related tags found
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
readme-vars.yml
+2
-0
2 additions, 0 deletions
readme-vars.yml
root/etc/services.d/code-server/run
+7
-0
7 additions, 0 deletions
root/etc/services.d/code-server/run
with
9 additions
and
0 deletions
readme-vars.yml
+
2
−
0
View file @
00afdeb4
...
@@ -49,6 +49,7 @@ opt_param_usage_include_env: true
...
@@ -49,6 +49,7 @@ opt_param_usage_include_env: true
opt_param_env_vars
:
opt_param_env_vars
:
-
{
env_var
:
"
PASSWORD"
,
env_value
:
"
password"
,
desc
:
"
Optional
web
gui
password,
if
not
provided,
there
will
be
no
auth."
}
-
{
env_var
:
"
PASSWORD"
,
env_value
:
"
password"
,
desc
:
"
Optional
web
gui
password,
if
not
provided,
there
will
be
no
auth."
}
-
{
env_var
:
"
SUDO_PASSWORD"
,
env_value
:
"
password"
,
desc
:
"
If
this
optional
variable
is
set,
user
will
have
sudo
access
in
the
code-server
terminal
with
the
specified
password."
}
-
{
env_var
:
"
SUDO_PASSWORD"
,
env_value
:
"
password"
,
desc
:
"
If
this
optional
variable
is
set,
user
will
have
sudo
access
in
the
code-server
terminal
with
the
specified
password."
}
-
{
env_var
:
"
PROXY_DOMAIN"
,
env_value
:
"
code-server.my.domain"
,
desc
:
"
If
this
optional
variable
is
set,
this
domain
will
be
proxied
for
subdomain
proxying.
See
[Documentation](https://github.com/cdr/code-server/blob/master/doc/FAQ.md#sub-domains)"
}
optional_block_1
:
false
optional_block_1
:
false
optional_block_1_items
:
"
"
optional_block_1_items
:
"
"
...
@@ -67,6 +68,7 @@ app_setup_block: |
...
@@ -67,6 +68,7 @@ app_setup_block: |
# changelog
# changelog
changelogs
:
changelogs
:
-
{
date
:
"
29.05.20:"
,
desc
:
"
Add
--domain-proxy
support."
}
-
{
date
:
"
21.05.20:"
,
desc
:
"
Shrink
images,
install
via
yarn,
fix
arm32v7
build."
}
-
{
date
:
"
21.05.20:"
,
desc
:
"
Shrink
images,
install
via
yarn,
fix
arm32v7
build."
}
-
{
date
:
"
18.05.20:"
,
desc
:
"
Switch
to
multi-arch
images,
install
via
npm."
}
-
{
date
:
"
18.05.20:"
,
desc
:
"
Switch
to
multi-arch
images,
install
via
npm."
}
-
{
date
:
"
29.04.20:"
,
desc
:
"
Update
start
arguments."
}
-
{
date
:
"
29.04.20:"
,
desc
:
"
Update
start
arguments."
}
...
...
This diff is collapsed.
Click to expand it.
root/etc/services.d/code-server/run
+
7
−
0
View file @
00afdeb4
...
@@ -7,6 +7,12 @@ else
...
@@ -7,6 +7,12 @@ else
echo
"starting with no password"
echo
"starting with no password"
fi
fi
if
[
-z
${
PROXY_DOMAIN
+x
}
]
;
then
PROXY_DOMAIN_ARG
=
""
else
PROXY_DOMAIN_ARG
=
"--proxy-domain=
${
PROXY_DOMAIN
}
"
fi
exec
\
exec
\
s6-setuidgid abc
\
s6-setuidgid abc
\
/usr/bin/code-server
\
/usr/bin/code-server
\
...
@@ -15,4 +21,5 @@ exec \
...
@@ -15,4 +21,5 @@ exec \
--extensions-dir
/config/extensions
\
--extensions-dir
/config/extensions
\
--disable-telemetry
\
--disable-telemetry
\
--auth
"
${
AUTH
}
"
\
--auth
"
${
AUTH
}
"
\
"
${
PROXY_DOMAIN_ARG
}
"
\
/config/workspace
/config/workspace
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment