Homelab - Reverse Proxy Certificate Management Panel Nginx Proxy Manager

原文约1300字,阅读约需4分钟。发表于:

Homelab - Reverse Proxy Certificate Management Panel Nginx Proxy Manager Nginx Proxy Manager is a graphical panel for Nginx that allows users to easily configure reverse proxies and apply SSL certificates to websites through a web interface, without needing to understand the underlying principles of Nginx/Letsencrypt. Deployment (Docker Compose) First, create a compose.yaml file and paste the following content: yaml title="compose.yaml" version: "3" services: nginx-proxy-manager: container_name: ${STACK_NAME}_app image: "jc21/nginx-proxy-manager:${APP_VERSION}" ports: - "${APP_PORT}:81" # Panel address - "80:80" - "443:443" volumes: - ${STACK_DIR}/data:/data - ${STACK_DIR}/letsencrypt:/etc/letsencrypt restart: unless-stopped (Optional) It is recommended to create a .env file in the same directory as compose.yaml and customize your environment variables. If you do not want to use environment variables, you can also customize your parameters directly in compose.yaml (such as replacing ${STACK_NAME} with nginx-proxy-manager). ```dotenv title=".env" STACK_NAME=nginx-proxy-manager STACK_DIR=xxx # Custom project storage path, such as ./nginx-proxy-manager nginx-proxy-manager APP_VERSION=latest APP_PORT=81 # Default is 81, refer to documentation for changes ``` Finally, execute the command docker compose up -d in the same directory as compose.yaml to start the orchestrated containers. Configuration Instructions Initial account credentials: Email: admin@example.com Password: changeme To obtain the IP address of Docker: shell ip addr show docker0 Note: For self-hosted services, it is recommended to use reverse proxy and bind to a second-level domain for access (port 80/443), and close other ports in the firewall of the public server management console to improve security. References and Acknowledgements Official Website Documentation GitHub repo Docker Hub Original: https://wiki-power.com/ This post is protected by CC BY-NC-SA 4.0 agreement, should be reproduced with attribution. This post is translated using ChatGPT, please feedback if any omissions.

Nginx Proxy Manager是一个Nginx图形化面板,可轻松配置反向代理和SSL证书。使用Docker Compose部署,推荐使用反代绑定二级域名访问以提高安全性。初始账户密码为admin@example.com和changeme。

Homelab - Reverse Proxy Certificate Management Panel Nginx Proxy Manager
相关推荐 去reddit讨论