Help Center/ CodeArts Agent/ FAQs/ CodeArts Agent CLI/ How Do I Configure an Nginx Reverse Proxy to Enable HTTPS Access?
Updated on 2026-07-27 GMT+08:00
How Do I Configure an Nginx Reverse Proxy to Enable HTTPS Access?
You can use an Nginx reverse proxy to deploy HTTPS to meet secure access requirements.
Follow these steps to configure the reverse proxy:
- Install Nginx by referring to the official documentation.
- After installation, configure it by referring to the official documentation. Configuration example:
events { worker_connections 1024; # Specifies the maximum number of connections that can be concurrently processed by each worker process. } http { # HTTPS server server { listen 443 ssl; # Specifies the port and protocol for the server to listen on. server_name localhost; # Specifies the domain name or IP address of the server. ssl_certificate /test/public.crt; # Address of the certificate public key file ssl_certificate_key /test/private.key;# Address of the certificate private key file location / { proxy_pass http://localhost:4096; # Proxied backend server proxy_http_version 1.1; # Specifies the HTTP version used for proxy requests. proxy_set_header Host $host; # Sets the Host header and passes the Host header from the client request to the backend server. } } }
Feedback
Was this page helpful?
Provide feedbackThank you very much for your feedback. We will continue working to improve the documentation.See the reply and handling status in My Cloud VOC.
The system is busy. Please try again later.
For any further questions, feel free to contact us through the chatbot.
Chatbot