proxmox-reverseProxy/lxc/nginx-proxy-manager/README.md

53 lines
2.7 KiB
Markdown
Raw Normal View History

2020-11-04 16:50:28 +00:00
# Nginx Proxy Manager in Proxmox LXC container
Many benefits can be gained by using a LXC container compared to a VM. The resources needed to run a LXC container are less than running a VM. Modifing the resouces assigned to the LXC container can be done without having to reboot the container. The serial devices connected to Proxmox can be shared with multiple LXC containers simulatenously.
## Usage
To create a new LXC container on Proxmox and setup Nginx Proxy Manager to run inside of it, run the following in a SSH connection or the Proxmox web shell.
***Note:*** _tested with proxmox 6.4+_
***Note:*** _This will create alpine container_
2020-11-04 16:50:28 +00:00
```bash
curl -sL https://raw.githubusercontent.com/ej52/proxmox/main/lxc/nginx-proxy-manager/create.sh | bash -s
```
### Command line arguments
| argument | default | description |
|--------------------|----------------------|--------------------------------------------------------|
| --id | $nextid | container id |
| --bridge | vmbr0 | bridge used for eth0 |
| --cores | 1 | number of cpu cores |
2021-11-24 19:07:45 +00:00
| --disksize | 2G | size of disk |
2020-11-04 16:50:28 +00:00
| --hostname | nginx-proxy-manager | hostname of the container |
| --memory | 512 | amount of memory |
| --storage | local-lvm | storage location for container disk |
| --templates | local | storage location for templates |
2020-11-05 07:00:04 +00:00
| --swap | 0 | amount of SWAP |
2020-11-04 16:50:28 +00:00
you can set these parameters by appending ` -- <parameter> <value>` like:
```bash
2020-11-05 07:00:04 +00:00
curl -sL https://raw.githubusercontent.com/ej52/proxmox/main/lxc/nginx-proxy-manager/create.sh | bash -s -- --cores 4
2020-11-04 16:50:28 +00:00
```
2020-11-05 07:00:04 +00:00
### Console
2020-11-04 16:50:28 +00:00
There is no login required to access the console from the Proxmox web UI. If you are presented with a blank screen, press `CTRL + C` to generate a prompt.
2020-11-05 07:00:04 +00:00
## Alternative Usage
If you are not using proxmox or want to install this on a existing Alpine box, you can run the setup script itself.
2022-01-16 17:34:35 +00:00
***Note:*** _Only Alpine, Debian and Ubuntu are currently supported by this script_
2020-11-05 07:00:04 +00:00
```bash
wget --no-cache -qO - https://raw.githubusercontent.com/ej52/proxmox/main/lxc/nginx-proxy-manager/setup.sh | sh
```
2020-11-04 16:50:28 +00:00
## Thanks
2021-11-24 19:07:45 +00:00
- [whiskerz007](https://github.com/whiskerz007?tab=repositories)