< 262022-04-27⋎28 >

Topic for #farmOS is: farmOS (farmos.org) is a free and open source, web-based farm management system. User guide: farmos.org/guide/ - Forum: farmOS.discourse.groupSet by mstenta on 2021-06-15 at 12:52
16:23monkeyflowerfarmCan I access drupal features with the new farm os? The previous version allowed for access to content types etc.
16:24monkeyflowerfarmI did not mean "features" rather the usual drupal system admin menus.
16:26monkeyflowerfarmfor example what if I want to create a new content type? or even a page? I'm not seeing a menu Item for that.
16:28mstenta[m]monkeyflowerfarm: farmOS does not enable the `node` module by default
16:28mstenta[m]If you decide to do that, you're a bit on your own... I personally wouldn't recommend trying to mix farmOS with a website
16:29mstenta[m]it can be done... but I don't think it should be... ;-)
16:29monkeyflowerfarmFound one problem is I have to enable permissions for user 1 not used to that
16:29monkeyflowerfarmHow do you recommend using it then?
16:29mstenta[m]if you want to build a website using Drupal i would probably recommend setting up two separate Drupal installations
16:30mstenta[m]the risk is that you end up creating conflicts with future versions of farmOS, which leave you in a position unable to upgrade without breaking things
16:30mstenta[m]that's just my opinion - you can do whatever you want - but we definitely can't support this use-case
16:30monkeyflowerfarmOk but I have some confusion about whether it will work if its not in the web root
16:31mstenta[m]Oh? That sounds like a separate question?
16:31mstenta[m](trying to recall... was it you who asked about this last week?)
16:31monkeyflowerfarmYou said 2 drupal installations one of which would be webroot right?
16:32mstenta[m]are you on a shared hosting platform?
16:33monkeyflowerfarmYes I asked if I could run it behind another site and some said yes and others said it was not tested. I tried it and found that the menu links did not work.
16:33mstenta[m]if it were me doing this, i would probably try to set up two separate domains, each with their own webroot w/ a Drupal codebase... eg: `mysite.com` and `farmos.mysite.com`
16:33monkeyflowerfarmnot on shared hosting anymore
16:34mstenta[m]> I tried it and found that the menu links did not work.
16:34mstenta[m]I'd love to get a bug report for this and dig into it, because ideally it should be supported... but perhaps that's a separate conversation
16:34monkeyflowerfarmThat would be two ssl's
16:34mstenta[m]true
16:35mstenta[m]I use Let's Encrypt so that's not really an issue
16:35monkeyflowerfarmGotcha but for a production environment its not recommended?
16:35mstenta[m]What's not?
16:36monkeyflowerfarmLets Encrypt
16:36mstenta[m]Sure it is!
16:36mstenta[m]:-)
16:36monkeyflowerfarmInteresting
16:36mstenta[m]> A nonprofit Certificate Authority providing TLS certificates to 260 million websites.
16:36mstenta[m]letsencrypt.org/
16:36mstenta[m]Maybe you're confusing that with a "self-signed certificate"?
16:37mstenta[m]I ❤️ Let's Encrypt 😊
16:37mstenta[m]I use it for everything
16:39monkeyflowerfarmNo I looked into it because I would way rather use it but several articles said that it was not the same as a paid CA. and it was not recommended for production environment. But if you have experience otherwise thats great news.
16:39mstenta[m]Oh maybe they were just trying to sell you a paid CA 😂
16:39monkeyflowerfarmlol well yeah ouch
16:40monkeyflowerfarmI paid this years fee ug
16:40monkeyflowerfarmOk cool thanks for the heads up
16:40mstenta[m]sure!
16:41monkeyflowerfarmdo you do multiple ssl's on one ip by chance?
16:42mstenta[m]yes
16:42monkeyflowerfarmusing sni?
16:42mstenta[m]i also do the same SSL domain on multiple IPs :-)
16:43mstenta[m]yes I use Nginx as a reverse proxy to handle the SSL termination and then route traffic to the farmOS (or other) backend containers
16:43monkeyflowerfarmI gotta figure that out :)
16:43mstenta[m]I think symbioquine and Farmer Ed have both written some how-tos on this for farmOS
16:44monkeyflowerfarmnice I was trying to get that going but have not got it yet
16:44mstenta[m]and we have a rough example in the dev environment docs...
16:44monkeyflowerfarmoh cool
16:44mstenta[m]farmos.org/development/environment/https
16:44mstenta[m]that doesn't use lets encrypt, just a self-signed cert
16:45mstenta[m]but you basically just need to overwrite the self-signed cert with the lets encrypt one and it should work the same
16:45mstenta[m](that's if you're using docker...)
16:47monkeyflowerfarmOk thank you, I'm getting closer to getting it dialed in. Sometimes the last little bit is the hardest. I'm not using docker yet. I have an ubuntu server w apache
16:47mstenta[m]Sure thing! Yea there are a lot of ways to set it up :-)
16:48mstenta[m]You can do everything with Apache alone... just requires more Apache virtual host config
16:48mstenta[m]I like Docker because it basically wraps Apache+PHP+farmOS in one container, listening on port 80. Then I set up another Nginx container listening on port 443, with a bit of config to send traffic to the farmOS container
16:48mstenta[m]That way you don't need to mess with the farmOS/Apache config at all
16:49mstenta[m]encapsulation 🥰
16:49mstenta[m]but learning docker is definitely a whole thing
16:49mstenta[m]and certainly not required for farmOS
16:52monkeyflowerfarmYes thats what I need to learn. I have not done servers since about ten years ago so Im trying come up to speed. Some internet resources have been helpful but I have not found any that get me through all the steps needed to set that up.
16:54mstenta[m]You might learn a lot just by following our guide on setting up a dev environment
16:54mstenta[m]With SSL
16:55mstenta[m]Then you can experiment with that too understand the pieces
16:55mstenta[m]The process will be pretty similar on a server
16:57monkeyflowerfarmI did before but I will revisit that 👍️
18:39monkeyflowerfarmwould it be better to install nginx for a reverse proxy on same server as apache or use a different server box on dmz?
18:39mstenta[m]you can do it all on the same server
18:39monkeyflowerfarmI'm donating all the money you saved me for the ssl's I was able to get refunded to farm os.
18:39mstenta[m]ha!
18:40mstenta[m]thanks monkeyflowerfarm !
18:40mstenta[m]:-D
18:40monkeyflowerfarmthank you
18:40mstenta[m]glad you were able to get a refund!
18:41monkeyflowerfarmi had a few days left
18:42symbioquine[m]Same server and docker network is way easier since you don't need to mess with subnets/firewalls to make the farmOS container only accessible by the reverse proxy.
18:42mstenta[m]symbioquine: monkeyflowerfarm is not currently using Docker
18:42mstenta[m](but might explore doing so)
18:43monkeyflowerfarmwould I have to rebuild my entire server config if I want to switch over to docker?
18:43mstenta[m]nope - you would probably throw most of it out :-)
18:43mstenta[m]and port the rest into config used by the Nginx docker container
18:44mstenta[m]the nice thing about docker is you don't need to install anything else on your sever! no nginx, no apache, no php...
18:44mstenta[m]it's all in the containers, which can be created/destroyed as needed
18:44mstenta[m]it decouples that stuff from the server itself, which is really nice
18:44mstenta[m]makes upgrading your server a lot easier in the future too
18:45monkeyflowerfarmso pretty much start over :). And the containers can be transferred to other hardware as well if need be?
18:45mstenta[m]yea, any server that has docker can run the containers
18:46mstenta[m]it is a bit of a paradigm shift... and defintely requires some learning and understanding of the considerations/pitfalls
18:46mstenta[m]but you won't regret it :-)
18:46monkeyflowerfarmoh I wish I would have asked earlier but I'm excited to change over to docker soon
18:47mstenta[m]well all the config you've done already might still be useful!
18:47mstenta[m]all good!
18:49monkeyflowerfarmOne last question could I start a docker alongside my existing config and be able to test as I go and then switch to docker and remove apache etc from server?
18:49mstenta[m]yes and no
18:49mstenta[m]the only "no" is you can't run on the same ports
18:50mstenta[m]so if you have apache already running on port 80 you'll get an error if you try to run a docker container on that
18:50mstenta[m]but you could test on a different port first
18:50mstenta[m]8080
18:50monkeyflowerfarmok thats doable
18:50mstenta[m]ssl would be a bit trickier... since it needs to be 443
18:50mstenta[m]but i say first step is get farmOS running in a container on port 80
18:51mstenta[m]then you can ditch apache probably
18:51mstenta[m]and then next step would be to get nginx running on 443 with let's encrypt, proxying to the farmOS container
18:51monkeyflowerfarmThanks again!!! Have a great day. I'd love to contribute any way I can from out here in Northern California.
18:51mstenta[m]my pleasure!
18:52monkeyflowerfarmI will drop the soon as my refund comes any day now
18:52monkeyflowerfarm*donation

< 262022-04-27⋏28 >