mirror of
https://github.com/vimagick/dockerfiles
synced 2024-06-20 22:08:39 +00:00
update nginx-sso
This commit is contained in:
parent
a08f493804
commit
471495f395
@ -11,14 +11,12 @@ docker-compose.yml
|
|||||||
```yaml
|
```yaml
|
||||||
dsvpn:
|
dsvpn:
|
||||||
image: vimagick/dsvpn
|
image: vimagick/dsvpn
|
||||||
command: server vpn.key auto 1959
|
command: server vpn.key auto 443
|
||||||
ports:
|
ports:
|
||||||
- "1959:1959"
|
- "443:443"
|
||||||
volumes:
|
volumes:
|
||||||
- ./data:/etc/dsvpn
|
- ./data:/etc/dsvpn
|
||||||
working_dir: /etc/dsvpn
|
tty: true
|
||||||
devices:
|
|
||||||
- /dev/net/tun
|
|
||||||
privileged: true
|
privileged: true
|
||||||
restart: unless-stopped
|
restart: unless-stopped
|
||||||
```
|
```
|
||||||
|
14
nginx-sso/systemd/nginx-sso.service
Normal file
14
nginx-sso/systemd/nginx-sso.service
Normal file
@ -0,0 +1,14 @@
|
|||||||
|
[Unit]
|
||||||
|
Description=nginx sso service
|
||||||
|
After=network.target
|
||||||
|
|
||||||
|
[Service]
|
||||||
|
User=nobody
|
||||||
|
WorkingDirectory=/etc/nginx-sso
|
||||||
|
ExecStart=/usr/local/bin/nginx-sso
|
||||||
|
ExecReload=/bin/kill -s HUP $MAINPID
|
||||||
|
RestartSec=5
|
||||||
|
Restart=always
|
||||||
|
|
||||||
|
[Install]
|
||||||
|
WantedBy=multi-user.target
|
Loading…
Reference in New Issue
Block a user