فهرست منبع

Issue #12 - Pointers from actions to documentation

jamesread 5 سال پیش
والد
کامیت
6a47938aa9
2فایلهای تغییر یافته به همراه11 افزوده شده و 8 حذف شده
  1. 6 1
      README.md
  2. 5 7
      var/config.yaml

+ 6 - 1
README.md

@@ -49,7 +49,9 @@ Mobile screen size (responsive layout);
 
 
 All documentation can be found at http://docs.olivetin.app . This includes installation and usage guide, etc. 
 All documentation can be found at http://docs.olivetin.app . This includes installation and usage guide, etc. 
 
 
-## Example `config.yaml` 
+## Example `config.yaml`
+
+Lots of documentation for how to write your `config.yaml` can be found at [the documentation site.](https://docs.olivetin.app)
 
 
 Put this `config.yaml` in `/etc/OliveTin/` if you're running a standard service, or mount it at `/config` if running in a container.
 Put this `config.yaml` in `/etc/OliveTin/` if you're running a standard service, or mount it at `/config` if running in a container.
 
 
@@ -57,15 +59,18 @@ Put this `config.yaml` in `/etc/OliveTin/` if you're running a standard service,
 listenAddressWebUI: 0.0.0.0:1337 # Listen on all addresses available, port 1337
 listenAddressWebUI: 0.0.0.0:1337 # Listen on all addresses available, port 1337
 logLevel: "INFO"
 logLevel: "INFO"
 actions: 
 actions: 
+  # Docs: https://docs.olivetin.app/action-container-control.html 
 - title: Restart Plex
 - title: Restart Plex
   icon: smile
   icon: smile
   shell: docker restart plex
   shell: docker restart plex
   
   
   # This will send 1 ping 
   # This will send 1 ping 
+  # Docs: https://docs.olivetin.app/action-ping.html
 - title: Ping Google.com
 - title: Ping Google.com
   shell: ping google.com -c 1
   shell: ping google.com -c 1
   
   
   # Restart lightdm on host "overseer"
   # Restart lightdm on host "overseer"
+  # Docs: https://docs.olivetin.app/action-ssh.html
 - title: restart lightdm
 - title: restart lightdm
   icon: poop
   icon: poop
   shell: ssh root@overseer 'service lightdm restart'
   shell: ssh root@overseer 'service lightdm restart'

+ 5 - 7
var/config.yaml

@@ -9,11 +9,13 @@ logLevel: "INFO"
 # Actions (buttons) to show up on the WebUI:
 # Actions (buttons) to show up on the WebUI:
 actions:   
 actions:   
   # This will send 1 ping (-c 1)
   # This will send 1 ping (-c 1)
+  # Docs: https://docs.olivetin.app/action-ping.html
 - title: Ping Google.com
 - title: Ping Google.com
   shell: ping google.com -c 1
   shell: ping google.com -c 1
   icon: ping
   icon: ping
   
   
   # Restart lightdm on host "overseer"
   # Restart lightdm on host "overseer"
+  # Docs: https://docs.olivetin.app/action-ping.html
 - title: restart lightdm
 - title: restart lightdm
   icon: poop
   icon: poop
   shell: ssh root@overseer 'service lightdm restart'
   shell: ssh root@overseer 'service lightdm restart'
@@ -39,14 +41,10 @@ actions:
 
 
   # OliveTin can control containers - docker is just a command line app.
   # OliveTin can control containers - docker is just a command line app.
   # 
   # 
-  # However, if you are running in a container you will need to do some setup;
-  #
-  # 1) When creating the container, bind mount the docker sock like this;
-  # docker create -v /var/run/docker.sock:/container/path/docker.sock ...additional args here... 
-  #
-  # 2) Install the docker client like this (if using the Fedora base image)
-  # - docker exec -it olivetin dnf install -y docker 
+  # However, if you are running in a container you will need to do some setup,
+  # see the docs below.
   #
   #
+  # Docs: https://docs.olivetin.app/action-container-control.html
 - title: Restart Plex
 - title: Restart Plex
   icon: smile
   icon: smile
   shell: docker restart plex
   shell: docker restart plex