mirror of
https://github.com/vimagick/dockerfiles.git
synced 2024-12-21 01:27:01 +02:00
update nginx-sso
This commit is contained in:
parent
a08f493804
commit
471495f395
@ -11,14 +11,12 @@ docker-compose.yml
|
||||
```yaml
|
||||
dsvpn:
|
||||
image: vimagick/dsvpn
|
||||
command: server vpn.key auto 1959
|
||||
command: server vpn.key auto 443
|
||||
ports:
|
||||
- "1959:1959"
|
||||
- "443:443"
|
||||
volumes:
|
||||
- ./data:/etc/dsvpn
|
||||
working_dir: /etc/dsvpn
|
||||
devices:
|
||||
- /dev/net/tun
|
||||
tty: true
|
||||
privileged: true
|
||||
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