Katorly
Katorly
CCoder.com
Created by Katorly on 12/3/2024 in #help
Need help configuring Coder WebSocket behind a proxy with non-standard ports
That doesn't resolve the issue either. Nevermind, in addition to making templates, logs are not so necessary. Thanks for your help!
24 replies
CCoder.com
Created by Katorly on 12/3/2024 in #help
Need help configuring Coder WebSocket behind a proxy with non-standard ports
Thanks for mentioning, however, removing them didn't help; I have removed and added some of them one by one a few days ago, but none of them resolve the issue. I guess I'll need to leave the issue aside for now. 😢
24 replies
CCoder.com
Created by Katorly on 12/3/2024 in #help
Need help configuring Coder WebSocket behind a proxy with non-standard ports
I didn't figure it out. Maybe is that I don't know much about this Nginx and WebSocket stuff...
24 replies
CCoder.com
Created by Katorly on 12/3/2024 in #help
Need help configuring Coder WebSocket behind a proxy with non-standard ports
Thanks for pointing out this issue, however, after removing the extra location /, the problem still exist. Here is the new nginx proxy config, if you want to see whether I removed it or not:
# ------------------------------------------------------------
# *.example.com, example.com
# ------------------------------------------------------------

map $scheme $hsts_header {
https "max-age=63072000; preload";
}

server {
set $forward_scheme http;
set $server "172.20.0.1";
set $port 7080;

listen 1233;
listen [::]:1233;

listen 1234 ssl http2;
listen [::]:1234 ssl http2;

server_name *.example.com example.com;

# Let's Encrypt SSL
include conf.d/include/letsencrypt-acme-challenge.conf;
include conf.d/include/ssl-ciphers.conf;
ssl_certificate /etc/letsencrypt/live/npm-7/fullchain.pem;
ssl_certificate_key /etc/letsencrypt/live/npm-7/privkey.pem;

# Block Exploits
include conf.d/include/block-exploits.conf;

# Force SSL
include conf.d/include/force-ssl.conf;

proxy_set_header Upgrade $http_upgrade;
proxy_set_header Connection $http_connection;
proxy_http_version 1.1;

access_log /data/logs/proxy-host-1_access.log proxy;
error_log /data/logs/proxy-host-1_error.log warn;

location / {
proxy_pass http://172.20.0.1:7080;
proxy_http_version 1.1;
proxy_set_header Upgrade $http_upgrade;
proxy_set_header Connection upgrade;
proxy_set_header Host $host;
proxy_set_header X-Forwarded-Host $http_host;
proxy_set_header X-Real-IP $remote_addr;
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
proxy_set_header X-Forwarded-Proto $http_x_forwarded_proto;
add_header Strict-Transport-Security "max-age=15552000; includeSubDomains" always;
}

# Custom
include /data/nginx/custom/server_proxy[.]conf;
}
# ------------------------------------------------------------
# *.example.com, example.com
# ------------------------------------------------------------

map $scheme $hsts_header {
https "max-age=63072000; preload";
}

server {
set $forward_scheme http;
set $server "172.20.0.1";
set $port 7080;

listen 1233;
listen [::]:1233;

listen 1234 ssl http2;
listen [::]:1234 ssl http2;

server_name *.example.com example.com;

# Let's Encrypt SSL
include conf.d/include/letsencrypt-acme-challenge.conf;
include conf.d/include/ssl-ciphers.conf;
ssl_certificate /etc/letsencrypt/live/npm-7/fullchain.pem;
ssl_certificate_key /etc/letsencrypt/live/npm-7/privkey.pem;

# Block Exploits
include conf.d/include/block-exploits.conf;

# Force SSL
include conf.d/include/force-ssl.conf;

proxy_set_header Upgrade $http_upgrade;
proxy_set_header Connection $http_connection;
proxy_http_version 1.1;

access_log /data/logs/proxy-host-1_access.log proxy;
error_log /data/logs/proxy-host-1_error.log warn;

location / {
proxy_pass http://172.20.0.1:7080;
proxy_http_version 1.1;
proxy_set_header Upgrade $http_upgrade;
proxy_set_header Connection upgrade;
proxy_set_header Host $host;
proxy_set_header X-Forwarded-Host $http_host;
proxy_set_header X-Real-IP $remote_addr;
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
proxy_set_header X-Forwarded-Proto $http_x_forwarded_proto;
add_header Strict-Transport-Security "max-age=15552000; includeSubDomains" always;
}

# Custom
include /data/nginx/custom/server_proxy[.]conf;
}
24 replies
CCoder.com
Created by Katorly on 12/3/2024 in #help
Need help configuring Coder WebSocket behind a proxy with non-standard ports
No description
24 replies
CCoder.com
Created by Katorly on 12/3/2024 in #help
Need help configuring Coder WebSocket behind a proxy with non-standard ports
No description
24 replies
CCoder.com
Created by Katorly on 12/3/2024 in #help
Need help configuring Coder WebSocket behind a proxy with non-standard ports
proxy_set_header Host $host;
proxy_set_header X-Forwarded-Scheme $scheme;
proxy_set_header X-Forwarded-Proto $scheme;
proxy_set_header X-Forwarded-For $remote_addr;
proxy_set_header X-Real-IP $remote_addr;

set $proxy_forward_scheme http;
set $proxy_server "172.20.0.1";
set $proxy_port 7080;

proxy_pass $proxy_forward_scheme://$proxy_server:$proxy_port;

# Block Exploits
include conf.d/include/block-exploits.conf;

# Force SSL
include conf.d/include/force-ssl.conf;

proxy_set_header Upgrade $http_upgrade;
proxy_set_header Connection $http_connection;
proxy_http_version 1.1;

}

# Custom
include /data/nginx/custom/server_proxy[.]conf;
}
proxy_set_header Host $host;
proxy_set_header X-Forwarded-Scheme $scheme;
proxy_set_header X-Forwarded-Proto $scheme;
proxy_set_header X-Forwarded-For $remote_addr;
proxy_set_header X-Real-IP $remote_addr;

set $proxy_forward_scheme http;
set $proxy_server "172.20.0.1";
set $proxy_port 7080;

proxy_pass $proxy_forward_scheme://$proxy_server:$proxy_port;

# Block Exploits
include conf.d/include/block-exploits.conf;

# Force SSL
include conf.d/include/force-ssl.conf;

proxy_set_header Upgrade $http_upgrade;
proxy_set_header Connection $http_connection;
proxy_http_version 1.1;

}

# Custom
include /data/nginx/custom/server_proxy[.]conf;
}
24 replies
CCoder.com
Created by Katorly on 12/3/2024 in #help
Need help configuring Coder WebSocket behind a proxy with non-standard ports
This is my Nginx proxy config (Using Nginx Proxy Manager). As you can see, WebSocket is enabled.
# ------------------------------------------------------------
# *.example.com, example.com
# ------------------------------------------------------------

map $scheme $hsts_header {
https "max-age=63072000; preload";
}

server {
set $forward_scheme http;
# The internal Docker localhost
set $server "172.20.0.1";
set $port 7080;

listen 1233;
listen [::]:1233;

listen 1234 ssl http2;
listen [::]:1234 ssl http2;

server_name *.example.com example.com;

# Let's Encrypt SSL
include conf.d/include/letsencrypt-acme-challenge.conf;
include conf.d/include/ssl-ciphers.conf;
ssl_certificate /etc/letsencrypt/live/npm-7/fullchain.pem;
ssl_certificate_key /etc/letsencrypt/live/npm-7/privkey.pem;

# Block Exploits
include conf.d/include/block-exploits.conf;

# Force SSL
include conf.d/include/force-ssl.conf;

proxy_set_header Upgrade $http_upgrade;
proxy_set_header Connection $http_connection;
proxy_http_version 1.1;

access_log /data/logs/proxy-host-1_access.log proxy;
error_log /data/logs/proxy-host-1_error.log warn;

location / {
location / {
proxy_pass http://172.20.0.1:7080;
proxy_http_version 1.1;
proxy_set_header Upgrade $http_upgrade;
proxy_set_header Connection upgrade;
proxy_set_header Host $host;
proxy_set_header X-Forwarded-Host $http_host;
proxy_set_header X-Real-IP $remote_addr;
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
proxy_set_header X-Forwarded-Proto $http_x_forwarded_proto;
add_header Strict-Transport-Security "max-age=15552000; includeSubDomains" always;
}
# ------------------------------------------------------------
# *.example.com, example.com
# ------------------------------------------------------------

map $scheme $hsts_header {
https "max-age=63072000; preload";
}

server {
set $forward_scheme http;
# The internal Docker localhost
set $server "172.20.0.1";
set $port 7080;

listen 1233;
listen [::]:1233;

listen 1234 ssl http2;
listen [::]:1234 ssl http2;

server_name *.example.com example.com;

# Let's Encrypt SSL
include conf.d/include/letsencrypt-acme-challenge.conf;
include conf.d/include/ssl-ciphers.conf;
ssl_certificate /etc/letsencrypt/live/npm-7/fullchain.pem;
ssl_certificate_key /etc/letsencrypt/live/npm-7/privkey.pem;

# Block Exploits
include conf.d/include/block-exploits.conf;

# Force SSL
include conf.d/include/force-ssl.conf;

proxy_set_header Upgrade $http_upgrade;
proxy_set_header Connection $http_connection;
proxy_http_version 1.1;

access_log /data/logs/proxy-host-1_access.log proxy;
error_log /data/logs/proxy-host-1_error.log warn;

location / {
location / {
proxy_pass http://172.20.0.1:7080;
proxy_http_version 1.1;
proxy_set_header Upgrade $http_upgrade;
proxy_set_header Connection upgrade;
proxy_set_header Host $host;
proxy_set_header X-Forwarded-Host $http_host;
proxy_set_header X-Real-IP $remote_addr;
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
proxy_set_header X-Forwarded-Proto $http_x_forwarded_proto;
add_header Strict-Transport-Security "max-age=15552000; includeSubDomains" always;
}
24 replies
CCoder.com
Created by Katorly on 11/17/2024 in #help
Git commit still uses the email from my Coder account
Thanks! Problem resolved!
9 replies
CCoder.com
Created by Katorly on 11/17/2024 in #help
Git commit still uses the email from my Coder account
No description
9 replies
CCoder.com
Created by Katorly on 11/17/2024 in #help
Git commit still uses the email from my Coder account
No description
9 replies
CCoder.com
Created by Andrej on 10/18/2024 in #help
Create template by zip upload hangs
I zip the content, not the folder and still get stuck in this...
28 replies
CCoder.com
Created by Andrej on 10/18/2024 in #help
Create template by zip upload hangs
I deployed Coder inside a Docker container, is there a place to access the Coder CLI?
28 replies
CCoder.com
Created by Andrej on 10/18/2024 in #help
Create template by zip upload hangs
I also encountered the same problem, which forced me to give up uploading templates.
28 replies
CCoder.com
Created by Katorly on 10/10/2024 in #help
Where can I find settings.json for vscode web?
Thank you. Problem solved. I'll switch back to code-server then 😂
11 replies
CCoder.com
Created by Katorly on 10/10/2024 in #help
Where can I find settings.json for vscode web?
There is an additional information that I forgot to mention: the settings of VS Code Web seem to be stored in the browser, because when I modified settings.json and switched to another device, settings.json became the default; when I switched back to the previous device, settings.json changed back to the one I modified before.
11 replies
CCoder.com
Created by Katorly on 10/10/2024 in #help
Where can I find settings.json for vscode web?
Thanks for the reply. However, in my case, after making changes to the settings in VS Code Web, ~/.local/share/code-server/User/settings.json was not created, and if it was manually created before, it was not modified.
11 replies
CCoder.com
Created by Katorly on 10/10/2024 in #help
Where can I find settings.json for vscode web?
Nope, the content in ~/.vscode-server/data/Machine/settings.json is completely different from the content in the settings.json of VS Code Web opened manually. When the settings.json of VS Code Web is
{
}
{
}
, the content in ~/.vscode-server/data/Machine/settings.json is
{
"git.useIntegratedAskPass": false,
"github.gitAuthentication": false
}
{
"git.useIntegratedAskPass": false,
"github.gitAuthentication": false
}
11 replies
CCoder.com
Created by Djinn on 10/2/2024 in #help
Virtual Keyboard opens all the time
I was experiencing this issue as well, and all VS Code in the browser would cause this issue
13 replies