scripts and tools to administer the lingy.in public unix / tilde
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

README.md 1.3KB

3 years ago
3 years ago
1234567891011121314151617181920212223242526272829303132333435363738394041424344
  1. # lyadmin #
  2. ## install ##
  3. Setup a clean instance of OpenBSD
  4. Login as root
  5. Run the below command to automatically provision the tilde instance
  6. ```
  7. pkg_add wget && wget 'https://git.lain.church/gashapwn/lyadmin/raw/branch/master/perl-script/provision.pl'; perl provision.pl
  8. ```
  9. or
  10. ```
  11. pkg_add wget && wget 'https://s.lain.la/wrMJw' -O provision.pl; perl provision.pl
  12. ```
  13. After the scripts run, haproxy, the Flask app for user requests (lingyind) and apache will all be installed and started.
  14. lingyind listens on 127.0.0.1 port 5000
  15. apache listens on 127.0.0.1 port 5001
  16. haproxy listens on port 80 on all interfaces
  17. You should be able to open your instance by IP address in your browser and see the home page
  18. Make sure to setup HTTPS, setup authorized keys, disable password auth after install
  19. ## video tutorial of install ##
  20. The below video is about 5 minutes and walks through the install of the instance on Digital Ocean.
  21. Please disregard the comment on total price. The cost is probably higher than $100 depending on instance size. I was slightly tired when making this...
  22. https://youdieifyou.work/files/vqkiqquzluv.mp4
  23. ## conf ##
  24. in lyadmin.conf.json you can change the site name, set your email address and update the list of custom shells available