mirror of
https://github.com/vincenthsu/systemd-ngrok.git
synced 2025-02-06 06:55:30 +00:00
Add configuration files
This commit is contained in:
parent
0007321f4e
commit
0b1bca1ef8
15
README.md
Normal file
15
README.md
Normal file
|
@ -0,0 +1,15 @@
|
|||
# Installation
|
||||
|
||||
|
||||
Step 1: Place [`ngork`](https://ngrok.com/download) in `/opt/ngrok/`
|
||||
|
||||
Step 2: Get `authtoken` from ngrok website, then add it to `/opt/ngrok/ngrok.yml`
|
||||
|
||||
Step 3: Add `ngork.service` to `/etc/systemd/system/`
|
||||
|
||||
Step 4: Start ngork service by typing:
|
||||
```
|
||||
systemctl daemon-reload
|
||||
systemctl enable ngrok.service
|
||||
systemctl start ngrok.service
|
||||
```
|
13
ngrok.service
Normal file
13
ngrok.service
Normal file
|
@ -0,0 +1,13 @@
|
|||
[Unit]
|
||||
Description=ngrok
|
||||
After=network.target
|
||||
|
||||
[Service]
|
||||
ExecStart=/opt/ngrok/ngrok start --all --config /opt/ngrok/ngrok.yml
|
||||
ExecReload=/bin/kill -HUP $MAINPID
|
||||
KillMode=process
|
||||
Restart=on-failure
|
||||
Type=simple
|
||||
|
||||
[Install]
|
||||
WantedBy=multi-user.target
|
16
ngrok.yml
Normal file
16
ngrok.yml
Normal file
|
@ -0,0 +1,16 @@
|
|||
authtoken: <add_your_token_here>
|
||||
# region: ap
|
||||
tunnels:
|
||||
ssh:
|
||||
proto: tcp
|
||||
addr: 22
|
||||
# myapp-http:
|
||||
# addr: 80
|
||||
# proto: http
|
||||
# hostname: example.com
|
||||
# auth: "user:secretpassword"
|
||||
# bind_tls: false
|
||||
# myapp-https:
|
||||
# addr: 443
|
||||
# proto: tls
|
||||
# hostname: example.com
|
Loading…
Reference in New Issue
Block a user