From bb8409d431212484099b6223c493611eae012ed5 Mon Sep 17 00:00:00 2001 From: Travis Ravert Date: Thu, 23 Mar 2023 15:41:11 -0400 Subject: [PATCH] Add nonce for to js for login to work with CSP (#32) Ultimately, just remove some stuff. No nonce needed. --- form.yml.erb | 3 +-- template/script.sh.erb | 5 +---- view.html.erb | 2 +- 3 files changed, 3 insertions(+), 7 deletions(-) diff --git a/form.yml.erb b/form.yml.erb index 7b6697e..fe9e2e0 100644 --- a/form.yml.erb +++ b/form.yml.erb @@ -22,9 +22,8 @@ attributes: widget: "select" label: "Codeserver Version" options: + - ["4.8", "4.8.3"] - ["3.9", "3.9.3"] - - ["3.4", "3.4.1"] - # - ["4.5", "4.5.1"] working_dir: label: "Working Directory" diff --git a/template/script.sh.erb b/template/script.sh.erb index ba2bfc4..e1391c1 100755 --- a/template/script.sh.erb +++ b/template/script.sh.erb @@ -53,10 +53,7 @@ code-server \ --auth="password" \ --bind-addr="0.0.0.0:${port}" \ --disable-telemetry \ - <% if code_server_version < '4.5' %> - # code-server 4.5 will not accept this argument - --extra-extensions-dir="$CODE_SERVER_DATAROOT/extensions" \ - <% end %> + --ignore-last-opened \ --user-data-dir="$CODE_SERVER_DATAROOT" \ --log debug \ "<%= working_dir.to_s %>" diff --git a/view.html.erb b/view.html.erb index 4f119f6..e5bb85d 100644 --- a/view.html.erb +++ b/view.html.erb @@ -23,7 +23,7 @@ })(); -<% if code_server_version == '4.5.1' %> +<% if code_server_version == '4.8.3' %>
<% else %>