All checks were successful
Reese's Arch Toolbox / build-and-push-arch-toolbox (push) Successful in 14s
38 lines
566 B
Markdown
38 lines
566 B
Markdown
# Ngnix
|
|
|
|
## TCP Stream Proxy
|
|
|
|
```bash
|
|
# Get the initial configuration
|
|
podman run --rm --entrypoint=cat docker.io/nginx /etc/nginx/nginx.conf > nginx.conf
|
|
scp nginx.conf 3dserver:/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
|
|
```
|