Projects STRLCPY pikvm Commits 9cb12a4d
🤬
  • ■ ■ ■ ■ ■ ■
    docs/cloudflared.md
    skipped 42 lines
    43 43   
    44 44  2. Create the service configuration file
    45 45  
    46  - ```
    47  - # systemctl edit --full cloudflared.service
    48  - ```
     46 + ```
     47 + # systemctl edit --full cloudflared.service
     48 + ```
    49 49   
    50 50  3. Insert the following configuration replacing TOKEN VALUE with your token from the Cloudflare tunnel step.
    51 51   
    52  - ```ini
    53  - [Unit]
    54  - Description=Cloudflare Tunnel
    55  - After=network.target
     52 + ```ini
     53 + [Unit]
     54 + Description=Cloudflare Tunnel
     55 + After=network.target
    56 56   
    57  - [Service]
    58  - TimeoutStartSec=0
    59  - Type=notify
    60  - ExecStart=/usr/bin/cloudflared --protocol quic tunnel run --token <TOKEN VALUE>
    61  - Restart=on-failure
    62  - RestartSec=5s
    63  - ```
     57 + [Service]
     58 + TimeoutStartSec=0
     59 + Type=notify
     60 + ExecStart=/usr/bin/cloudflared --protocol quic tunnel run --token <TOKEN VALUE>
     61 + Restart=on-failure
     62 + RestartSec=5s
     63 + ```
    64 64   
    65 65  4. Afterwards verify service is started and stays running
    66 66   
    67  - ```
    68  - # systemctl enable --now cloudflared
    69  - # systemctl status cloudflared
    70  - ```
     67 + ```
     68 + # systemctl enable --now cloudflared
     69 + # systemctl status cloudflared
     70 + ```
    71 71   
    72 72  5. Open a web browser and attempt
    73 73   
    74 74   
    75 75  ## Updating cloudflared
    76 76   
    77  -1. Use these commands to update the ```cloudflared``` daemon:
     77 +Use these commands to update the ```cloudflared``` daemon:
    78 78  
    79  - ```
    80  - # rw
    81  - # rm -rf cloudflared/
    82  - # curl -s https://api.github.com/repos/cloudflare/cloudflared/releases/latest | grep "tarball_url" | cut -d '"' -f 4 | xargs curl -LJo cloudflared-latest.tar.gz
    83  - # tar -xzvf cloudflared-latest.tar.gz --transform 's|[^/]*/|cloudflared/|'
    84  - # cd cloudflared/cmd/cloudflared/
    85  - # go build && mv cloudflared /usr/bin/cloudflared
    86  - # systemctl restart cloudflared
    87  - ```
     79 +```
     80 +# rw
     81 +# rm -rf cloudflared/
     82 +# curl -s https://api.github.com/repos/cloudflare/cloudflared/releases/latest | grep "tarball_url" | cut -d '"' -f 4 | xargs curl -LJo cloudflared-latest.tar.gz
     83 +# tar -xzvf cloudflared-latest.tar.gz --transform 's|[^/]*/|cloudflared/|'
     84 +# cd cloudflared/cmd/cloudflared/
     85 +# go build && mv cloudflared /usr/bin/cloudflared
     86 +# systemctl restart cloudflared
     87 +```
    88 88   
Please wait...
Page is in error, reload to recover