-
Notifications
You must be signed in to change notification settings - Fork 6.4k
Closed
Milestone
Description
Pressing the F5 key does not directly start debug. Instead, the select environment prompt box appears every time.

sudo docker run -d \
--name=code-server \
-e PUID=1000 \
-e PGID=1000 \
-e PASSWORD=password \
-e SUDO_PASSWORD=0415oo \
-e PROXY_DOMAIN=linuxserver.666baby.com \
-p 8443:8443 \
-v /path/to/appdata/config:/config \
--restart unless-stopped \
linuxserver/code-serverapache config
<VirtualHost *:80>
ServerAdmin [email protected]
DocumentRoot "/www/wwwroot/code.666baby.com/linuxserver.666baby.com"
ServerName fd96025a.linuxserver.666baby.com
ServerAlias linuxserver.666baby.com
#errorDocument 404 /404.html
ErrorLog "/www/wwwlogs/linuxserver.666baby.com-error_log"
CustomLog "/www/wwwlogs/linuxserver.666baby.com-access_log" combined
#HTTP_TO_HTTPS_START
<IfModule mod_rewrite.c>
RewriteEngine on
RewriteCond %{SERVER_PORT} !^443$
RewriteRule (.*) https://%{SERVER_NAME}$1 [L,R=301]
</IfModule>
#HTTP_TO_HTTPS_END
#DENY FILES
<Files ~ (\.user.ini|\.htaccess|\.git|\.svn|\.project|LICENSE|README.md)$>
Order allow,deny
Deny from all
</Files>
#PHP
<FilesMatch \.php$>
SetHandler "proxy:unix:/tmp/php-cgi-00.sock|fcgi://localhost"
</FilesMatch>
#PATH
<Directory "/www/wwwroot/code.666baby.com/linuxserver.666baby.com">
SetOutputFilter DEFLATE
Options FollowSymLinks
AllowOverride All
Require all granted
DirectoryIndex index.php index.html index.htm default.php default.html default.htm
</Directory>
</VirtualHost>
<VirtualHost *:443>
ServerAdmin [email protected]
DocumentRoot "/www/wwwroot/code.666baby.com/linuxserver.666baby.com/"
ServerName SSL.linuxserver.666baby.com
ServerAlias linuxserver.666baby.com
#errorDocument 404 /404.html
ErrorLog "/www/wwwlogs/linuxserver.666baby.com-error_log"
CustomLog "/www/wwwlogs/linuxserver.666baby.com-access_log" combined
RewriteEngine On
ProxyRequests On
ProxyVia On
# Proxy Traffic
RewriteCond %{HTTP:Upgrade} =websocket
RewriteRule /(.*) ws://localhost:8443/$1 [P,L]
RewriteCond %{HTTP:Upgrade} !=websocket
RewriteRule /(.*) http://localhost:8443/$1 [P,L]
#SSL
SSLEngine On
SSLCertificateFile /www/server/panel/vhost/cert/linuxserver.666baby.com/fullchain.pem
SSLCertificateKeyFile /www/server/panel/vhost/cert/linuxserver.666baby.com/privkey.pem
SSLCipherSuite EECDH+CHACHA20:EECDH+CHACHA20-draft:EECDH+AES128:RSA+AES128:EECDH+AES256:RSA+AES256:EECDH+3DES:RSA+3DES:!MD5
SSLProtocol All -SSLv2 -SSLv3 -TLSv1
SSLHonorCipherOrder On
#PHP
<FilesMatch \.php$>
SetHandler "proxy:unix:/tmp/php-cgi-00.sock|fcgi://localhost"
</FilesMatch>
#DENY FILES
<Files ~ (\.user.ini|\.htaccess|\.git|\.svn|\.project|LICENSE|README.md)$>
Order allow,deny
Deny from all
</Files>
#PATH
<Directory "/www/wwwroot/code.666baby.com/linuxserver.666baby.com/">
SetOutputFilter DEFLATE
Options FollowSymLinks
AllowOverride All
Require all granted
DirectoryIndex index.php index.html index.htm default.php default.html default.htm
</Directory>
</VirtualHost>
In the code-server terminal
sudo apt install gcc g++ gdb
Install cpptools form https://github.com/microsoft/vscode-cpptools/releases/tag/1.7.1
Version 3.11.1 does not have this problem,Version 3.11.1 does not have this problem, it seems to be the bug that appeared since 3.12.0.
Test url:https://linuxserver.666baby.com/
password: password
zhouym233
Metadata
Metadata
Assignees
Labels
No labels