mirror of
https://github.com/tobychui/zoraxy.git
synced 2025-05-31 04:37:20 +02:00
A help file is not necessary.
parent
a479f42fda
commit
2b8d1618cd
@ -32,24 +32,9 @@ services:
|
||||
|
||||
# Create a systemd-service for Zoraxy
|
||||
|
||||
|
||||
Create start.sh in the zoraxy folder with:
|
||||
|
||||
`nano start.sh`
|
||||
|
||||
Put in those lines
|
||||
|
||||
```
|
||||
#!/bin/bash
|
||||
./zoraxy -port=:8000
|
||||
```
|
||||
If you want faster GeoIP-Lookup, you can add `-fastgeoip=true` after `-port=:8000`. Zoraxy will then use more RAM.
|
||||
[See v2.6.6 Release](https://github.com/tobychui/zoraxy/releases/tag/2.6.6)
|
||||
|
||||
Make it executable with
|
||||
|
||||
`chmod +x start.sh`
|
||||
|
||||
Create systemd-service file with
|
||||
|
||||
`sudo nano /etc/systemd/system/zoraxy.service`
|
||||
@ -57,23 +42,20 @@ Create systemd-service file with
|
||||
Put in following lines:
|
||||
|
||||
```
|
||||
GNU nano 7.2 /etc/systemd/system/zoraxy.service
|
||||
[Unit]
|
||||
Description=Zoraxy Reverse Proxy Server
|
||||
#Waits for network to be online
|
||||
After=network-online.target
|
||||
Wants=network-online.target
|
||||
Description=Zoraxy Service
|
||||
After=network.target
|
||||
|
||||
[Service]
|
||||
Type=simple
|
||||
|
||||
#No sudo required in start.sh
|
||||
User=root
|
||||
User=root
|
||||
Group=root
|
||||
|
||||
#Folder where zoraxy is located
|
||||
WorkingDirectory=/zoraxy
|
||||
#absolute path for start.sh
|
||||
ExecStart=/bin/bash /zoraxy/start.sh
|
||||
WorkingDirectory=/opt/zoraxy/src
|
||||
ExecStart=/opt/zoraxy/src/zoraxy -port=:8000
|
||||
Restart=always
|
||||
|
||||
[Install]
|
||||
WantedBy=multi-user.target
|
||||
|
Loading…
x
Reference in New Issue
Block a user