Post ACEHN5cBlDAISCeAkq by edwardloveall@mastodon.technology
 (DIR) More posts by edwardloveall@mastodon.technology
 (DIR) Post #ACDq3DR0HRAi9TiKtE by edwardloveall@mastodon.technology
       2021-10-09T20:02:08Z
       
       5 likes, 16 repeats
       
       I've made an alternative frontend to Medium:https://scribe.ripIf you, like me, are occasionally forced to read articles on medium.com, now you can read them on Scribe instead! Feedback welcome.#OpenSource #crystallang
       
 (DIR) Post #ACEAqovhf2afiK0KmG by amolith@nixnet.social
       2021-10-10T16:55:31.530438Z
       
       0 likes, 0 repeats
       
       @edwardloveall I just finished setting Scribe up on NixNet :bolbcheer: (haven’t added it to the homepage yet though)https://scribe.nixnet.services/teklit/coding-is-a-trap-get-out-14a6beb28c8I did run into a couple of issues. On Debian 11, pkgconf is required for building lib_ssl. I’m not sure whether another report needs to be opened in the crystal-lang repo for that or whether it should be mentioned in the Lucky bug tracker; there were a few issues already open in the crystal-lang repo about fixing it with pkg-conf on Arch Linux, but nothing anywhere else mentioning the solution for Debian.The second snag was with database creation and initialisation. From hosting a lot of other open source web applications, the standard is usually to create the user/db manually then put those details in the config file, so that’s what I assumed was necessary here as well. Instead, a postgres user needs to be created with the CREATEDB permission so lucky db.create can handle that without failing. It might be good to mention that in Scribe’s README.Next is how Scribe binds to network interfaces. I’m running Scribe inside LXD so it needs to listen on all interfaces for the reverse proxy on the host to successfully connect; I did that by searching for instances of 127.0.0.1 and changing that in config/watch.yml to 0.0.0.0. I’m completely unfamiliar with this whole stack; is there a more “proper” way to do it? :meowSmileSweat: Fourth is the generated URL on the homepage. At the moment, that’s localhost:5000 but that won’t work unless everyone has an SSH tunnel into my server to proxy the port :blobfoxlaugh: How did you set that for scribe.rip?https://scribe.nixnet.servicesLast question! What’s the best way to daemonize the whole thing? Right now, I have lucky dev running in tmux, but I would rather let systemd handle it so it starts on boot and restarts if something causes it to crash.
       
 (DIR) Post #ACEE9gL27yZ2QsXP6G by edwardloveall@mastodon.technology
       2021-10-10T17:29:56Z
       
       1 likes, 0 repeats
       
       @amolith Wowowow! This is amazing! Thanks for deploying. I'd love for the community to have multiple instances so thanks for just doing this. And >24h after I announced, no less!Now for your questions:
       
 (DIR) Post #ACEE9gtm2oLyAcn9FY by edwardloveall@mastodon.technology
       2021-10-10T17:32:03Z
       
       1 likes, 0 repeats
       
       @amolith I deployed on Ubuntu so I'm not sure about the specifics of open_ssl, crystal, Debian, and lucky. My _guess_ would be it's a crystal thing, but it's hard to say. I'd start there or maybe even in the Crystal discord https://discord.gg/YS7YvQy
       
 (DIR) Post #ACEELpt6RsEhWbGkFM by edwardloveall@mastodon.technology
       2021-10-10T17:34:25Z
       
       1 likes, 0 repeats
       
       @amolith postgres: I absolutely need to do something with the readme. One nice thing about this app is it doesn't actually need postgres. Lucky ships with Avram which wants postgres, but you can set the DATABASE_URL env to literally any properly formatted postgres url. Here's mine: DATABASE_URL=postgres://does@not/mater
       
 (DIR) Post #ACEHN3zrmCutR3i3No by edwardloveall@mastodon.technology
       2021-10-10T17:38:09Z
       
       0 likes, 0 repeats
       
       @amolith Never used LXD. What I do is run it on localhost:5000 as normal, and then proxy it through nginx. Something like:upstream scribe {  server localhost:5000 fail_timeout=0;}server {  location @scribe {    proxy_pass http://scribe;  }}There's more to it than just that but that's the proxying part. I'd be happy to jump on a screen share and show you
       
 (DIR) Post #ACEHN4TI0oS6uJTYFE by edwardloveall@mastodon.technology
       2021-10-10T17:40:30Z
       
       0 likes, 0 repeats
       
       @amolith Fourth: I'm pretty sure that's set with the APP_DOMAIN env var: APP_DOMAIN=https://scribe.rip
       
 (DIR) Post #ACEHN535rh5mhME93I by edwardloveall@mastodon.technology
       2021-10-10T17:45:03Z
       
       0 likes, 0 repeats
       
       @amolith Last question: Just like you're thinking, I used a systemd service. Here's the template I use in my Ansible playbook: https://gist.github.com/edwardloveall/bcb74592f3b18e3db014a106522733a0
       
 (DIR) Post #ACEHN5cBlDAISCeAkq by edwardloveall@mastodon.technology
       2021-10-10T17:45:52Z
       
       0 likes, 0 repeats
       
       @amolith Thanks again for getting this deployed! More than happy to share what I know about it and make better directions for others. Just ping me.
       
 (DIR) Post #ACEHN65G18PvuMFO40 by amolith@nixnet.social
       2021-10-10T18:08:33.301868Z
       
       0 likes, 0 repeats
       
       @edwardloveall That example systemd service answered all of my questions! It's up and works exactly as expected now, thank you :)https://scribe.nixnet.services
       
 (DIR) Post #ACEv9zXF3AEW02dsY4 by xarvos@nixnet.social
       2021-10-11T01:34:11.725957Z
       
       1 likes, 0 repeats
       
       Thank you both, @amolith and @edwardloveall
       
 (DIR) Post #AGH2EN5pREBBqYpWDI by huntra@mastodon.technology
       2021-10-09T22:30:52Z
       
       0 likes, 0 repeats
       
       @edwardloveall Thank you for this, now we just need a browser extension that does this automatically :D
       
 (DIR) Post #AGH2ENkazemzszu4ky by edwardloveall@mastodon.technology
       2021-10-09T22:33:06Z
       
       0 likes, 0 repeats
       
       @huntra yeah! If you’re using Firefox or Chome there are extensions like this that you can configure https://addons.mozilla.org/en-US/firefox/addon/redirector/
       
 (DIR) Post #AGH2EOBXNUL9EYVaka by Hyolobrika@mstdn.io
       2022-02-08T17:31:27Z
       
       0 likes, 0 repeats
       
       @edwardloveall @huntra Awesome! Thanks for letting me know about that. I've been using Privacy Redirect on Brave but now I should be able to automatically redirect Reddit links to Reveddit in order to view censored content.TY!
       
 (DIR) Post #AGsUKlDJv8JqQK8Lcu by clacke@libranet.de
       2022-02-26T17:59:11Z
       
       1 likes, 1 repeats
       
       @edwardloveall @amolith scribe is supported by farside! If you link to e.g. https://farside.link/scribe/re-form/the-utopian-ui-architect-34dead42a28 it redirects to you the post on one of the known and up scribe instances.
       
 (DIR) Post #AGsUSC5oNrENoXAMQS by amolith@nixnet.social
       2022-02-26T19:12:01.613224Z
       
       0 likes, 0 repeats
       
       @clacke you could also add https://nitter:nitter@nitter.nixnet.services (URL with embedded HTTP Basic Auth credentials) and https://searx.nixnet.services to the list if you wanted :flan_guns: