document usage with nginx
See original GitHub issuecode-server
version: 1.31.1-100- OS Version: Debian 9
I have set up code-server on my server, and now I would like to access it externally. So I have set up a reverse proxy using Nginx. However when I navigate to the url I get an error in Chrome telling me that the page keeps redirecting (ERR_TOO_MANY_REDIRECTS
).
If I shut down the code-server and go to the url I just get an error message, so this is correct.
server {
listen 80;
listen 443 ssl;
ssl_certificate /etc/nginx/ssl/nginx.crt;
ssl_certificate_key /etc/nginx/ssl/nginx.key;
server_name ide.server.com; # Removed real url
location ~ ^/ {
proxy_pass http://localhost:8443;
proxy_set_header Host $host;
proxy_set_header X-Real-IP $remote_addr;
proxy_read_timeout 1800;
proxy_connect_timeout 1800;
auth_basic "Restricted";
auth_basic_user_file /etc/nginx/.htpasswd;
}
}
Issue Analytics
- State:
- Created 5 years ago
- Comments:9 (3 by maintainers)
Top Results From Across the Web
nginx documentation - Nginx.org
nginx documentation. Introduction. Installing nginx · Building nginx from Sources · Beginner's Guide · Admin's Guide · Controlling nginx ...
Read more >Understanding the Nginx Configuration File Structure and ...
The Nginx documentation contains information about which contexts ... Defining an HTTP context is probably the most common use of Nginx.
Read more >openresty/lua-nginx-module: Embed the Power of ... - GitHub
This document interchangeably uses the terms "Lua" and "LuaJIT" to refer to the LuaJIT interpreter. By leveraging Nginx's subrequests, this module allows ...
Read more >ConfigMap - NGINX Ingress Controller - Kubernetes
name type default
add‑headers string ""
allow‑backend‑server‑header bool "false"
allow‑snippet‑annotations bool true
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
After hours trying, finally this config works for me. code-server v 3.1.0 at ubuntu 16
Not too sure what happens to yours but… Heres my nginx proxy script, it works…