rename podman_ projects to container_
This commit is contained in:
36
active/container_nginx/nginx.md
Normal file
36
active/container_nginx/nginx.md
Normal file
@@ -0,0 +1,36 @@
|
||||
# Ngnix
|
||||
|
||||
## TCP Stream Proxy
|
||||
|
||||
```bash
|
||||
# Get the initial configuration
|
||||
scp active/podman_nginx/nginx.conf proxy:/etc/nginx/nginx.conf
|
||||
```
|
||||
|
||||
```bash
|
||||
vim /etc/containers/systemd/nginx.container
|
||||
```
|
||||
|
||||
```conf
|
||||
[Unit]
|
||||
Description=Nginx
|
||||
|
||||
[Container]
|
||||
AddCapability=NET_ADMIN
|
||||
ContainerName=nginx
|
||||
Image=docker.io/nginx
|
||||
Network=host
|
||||
SecurityLabelDisable=true
|
||||
Volume=/etc/nginx:/etc/nginx
|
||||
|
||||
[Service]
|
||||
Restart=always
|
||||
|
||||
[Install]
|
||||
WantedBy=default.target
|
||||
```
|
||||
|
||||
```bash
|
||||
systemctl daemon-reload
|
||||
systemctl start nginx
|
||||
```
|
||||
Reference in New Issue
Block a user