mirror of
https://github.com/Erreur32/nginx-proxy-manager-Bash-API.git
synced 2024-10-18 09:20:13 +02:00
Merge branch 'main' of https://github.com/Erreur32/nginx-proxy-manager-API
This commit is contained in:
commit
bad8a351bd
23
README.md
23
README.md
@ -96,6 +96,29 @@ API_PASS="password"
|
|||||||
./nginx_proxy_manager_cli.sh -d example.com -i 192.168.1.10 -p 8080 -a 'proxy_set_header X-Real-IP $remote_addr; proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;'
|
./nginx_proxy_manager_cli.sh -d example.com -i 192.168.1.10 -p 8080 -a 'proxy_set_header X-Real-IP $remote_addr; proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;'
|
||||||
|
|
||||||
```
|
```
|
||||||
|
|
||||||
|
# Procedure to Enable SSL for the First Time
|
||||||
|
|
||||||
|
## Generate SSL Certificate:
|
||||||
|
|
||||||
|
./nginx_proxy_manager_cli.sh --generate-cert example.com admin@example.com
|
||||||
|
|
||||||
|
## Enable SSL for the Host:
|
||||||
|
|
||||||
|
Assuming the host ID is *1*, you would enable SSL for the host as follows:
|
||||||
|
|
||||||
|
./nginx_proxy_manager_cli.sh --ssl-host-enable 1
|
||||||
|
|
||||||
|
## Verifying the Configuration
|
||||||
|
|
||||||
|
After running the above commands, you can verify the SSL configuration by checking the details of the proxy host.
|
||||||
|
|
||||||
|
./nginx_proxy_manager_cli.sh --show-host 1
|
||||||
|
|
||||||
|
This command will show the full details of the proxy host with ID *1*, including whether SSL is enabled.
|
||||||
|
|
||||||
|
By following these steps, you can enable SSL for your proxy host for the first time using Let's Encrypt.
|
||||||
|
|
||||||
|
|
||||||
![https://github.com/Erreur32/nginx-proxy-manager-API/blob/main/screen-nginx-proxy-default.png](https://github.com/Erreur32/nginx-proxy-manager-API/blob/main/screen-nginx-proxy-default.png)
|
![https://github.com/Erreur32/nginx-proxy-manager-API/blob/main/screen-nginx-proxy-default.png](https://github.com/Erreur32/nginx-proxy-manager-API/blob/main/screen-nginx-proxy-default.png)
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user