-
going to the local ip of the machine that is running it does show the default NGINX start page |
Beta Was this translation helpful? Give feedback.
Replies: 9 comments 14 replies
-
alright, going to the local ip on port 8080 shows code-server, but the domain still dont work |
Beta Was this translation helpful? Give feedback.
-
Now, it just shows the ngnix start page, if I have ngnix on |
Beta Was this translation helpful? Give feedback.
-
Could you post your NGINX config and the command or config you are using
to start code-server?
|
Beta Was this translation helpful? Give feedback.
-
Your NGINX config looks good!
Ctrl-c will kill the process so you might be killing code-server.
There are a few ways around this:
- Use & to spawn in the background: `code-server & && disown`
- Use a systemd service to spawn code-server
The second option might be a bit better because it will automatically
restart code-server if it crashes. If you use our install script a
service will be installed automatically. If not then you can look at ours to
create your own: https://github.com/cdr/code-server/blob/v3.8.0/ci/build/[email protected]
The certbot command will set up TLS but I don't think it runs NGINX.
You'll need something like:
```
systemctl enable nginx # This is so it starts automatically on reboot.
systemctl start nginx # This starts NGINX.
```
|
Beta Was this translation helpful? Give feedback.
-
Here is my domain DNS settings |
Beta Was this translation helpful? Give feedback.
-
Update: typing in my public ip + :8080 works perfectly, however domain still not working, here is a FIXED picture of my dns settings for my domain |
Beta Was this translation helpful? Give feedback.
-
user www-data;
worker_processes auto;
pid /run/nginx.pid;
include /etc/nginx/modules-enabled/*.conf;
events {
worker_connections 768;
# multi_accept on;
}
http {
##
# Basic Settings
##
sendfile on;
tcp_nopush on;
tcp_nodelay on;
keepalive_timeout 65;
types_hash_max_size 2048;
# server_tokens off;
# server_names_hash_bucket_size 64;
# server_name_in_redirect off;
include /etc/nginx/mime.types;
default_type application/octet-stream;
##
# SSL Settings
##
ssl_protocols TLSv1 TLSv1.1 TLSv1.2 TLSv1.3; # Dropping SSLv3, ref: POODLE
ssl_prefer_server_ciphers on;
##
# Logging Settings
##
access_log /var/log/nginx/access.log;
error_log /var/log/nginx/error.log;
##
# Gzip Settings
##
gzip on;
# gzip_vary on;
# gzip_proxied any;
# gzip_comp_level 6;
# gzip_buffers 16 8k;
# gzip_http_version 1.1;
# gzip_types text/plain text/css application/json application/javascript text/xml application/xml application/xml+rss text/javascript;
##
# Virtual Host Configs
##
include /etc/nginx/conf.d/*.conf;
include /etc/nginx/sites-enabled/*;
}
#mail {
# # See sample authentication script at:
# # http://wiki.nginx.org/ImapAuthenticateWithApachePhpScript
#
# # auth_http localhost/auth.php;
# # pop3_capabilities "TOP" "USER";
# # imap_capabilities "IMAP4rev1" "UIDPLUS";
#
# server {
# listen localhost:110;
# protocol pop3;
# proxy on;
# }
#
# server {
# listen localhost:143;
# protocol imap;
# proxy on;
# }
#} Here is my nginx config |
Beta Was this translation helpful? Give feedback.
-
I port forwarded 80 and 433, and still nothing |
Beta Was this translation helpful? Give feedback.
-
Worked when doing |
Beta Was this translation helpful? Give feedback.
Worked when doing
code-server --link
Thank you so much asher!