| 16:23 | monkeyflowerfarm | Can I access drupal features with the new farm os? The previous version allowed for access to content types etc. |
| 16:24 | monkeyflowerfarm | I did not mean "features" rather the usual drupal system admin menus. |
| 16:26 | monkeyflowerfarm | for 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:28 | mstenta[m] | monkeyflowerfarm: farmOS does not enable the `node` module by default |
| 16:28 | mstenta[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:29 | mstenta[m] | it can be done... but I don't think it should be... ;-) |
| 16:29 | monkeyflowerfarm | Found one problem is I have to enable permissions for user 1 not used to that |
| 16:29 | monkeyflowerfarm | How do you recommend using it then? |
| 16:29 | mstenta[m] | if you want to build a website using Drupal i would probably recommend setting up two separate Drupal installations |
| 16:30 | mstenta[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:30 | mstenta[m] | that's just my opinion - you can do whatever you want - but we definitely can't support this use-case |
| 16:30 | monkeyflowerfarm | Ok but I have some confusion about whether it will work if its not in the web root |
| 16:31 | mstenta[m] | Oh? That sounds like a separate question? |
| 16:31 | mstenta[m] | (trying to recall... was it you who asked about this last week?) |
| 16:31 | monkeyflowerfarm | You said 2 drupal installations one of which would be webroot right? |
| 16:32 | mstenta[m] | are you on a shared hosting platform? |
| 16:33 | monkeyflowerfarm | Yes 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:33 | mstenta[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:33 | monkeyflowerfarm | not on shared hosting anymore |
| 16:34 | mstenta[m] | > I tried it and found that the menu links did not work. |
| 16:34 | mstenta[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:34 | monkeyflowerfarm | That would be two ssl's |
| 16:34 | mstenta[m] | true |
| 16:35 | mstenta[m] | I use Let's Encrypt so that's not really an issue |
| 16:35 | monkeyflowerfarm | Gotcha but for a production environment its not recommended? |
| 16:35 | mstenta[m] | What's not? |
| 16:36 | monkeyflowerfarm | Lets Encrypt |
| 16:36 | mstenta[m] | Sure it is! |
| 16:36 | mstenta[m] | :-) |
| 16:36 | monkeyflowerfarm | Interesting |
| 16:36 | mstenta[m] | > A nonprofit Certificate Authority providing TLS certificates to 260 million websites. |
| 16:36 | mstenta[m] | letsencrypt.org/ |
| 16:36 | mstenta[m] | Maybe you're confusing that with a "self-signed certificate"? |
| 16:37 | mstenta[m] | I ❤️ Let's Encrypt 😊 |
| 16:37 | mstenta[m] | I use it for everything |
| 16:39 | monkeyflowerfarm | No 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:39 | mstenta[m] | Oh maybe they were just trying to sell you a paid CA 😂 |
| 16:39 | monkeyflowerfarm | lol well yeah ouch |
| 16:40 | monkeyflowerfarm | I paid this years fee ug |
| 16:40 | monkeyflowerfarm | Ok cool thanks for the heads up |
| 16:40 | mstenta[m] | sure! |
| 16:41 | monkeyflowerfarm | do you do multiple ssl's on one ip by chance? |
| 16:42 | mstenta[m] | yes |
| 16:42 | monkeyflowerfarm | using sni? |
| 16:42 | mstenta[m] | i also do the same SSL domain on multiple IPs :-) |
| 16:43 | mstenta[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:43 | monkeyflowerfarm | I gotta figure that out :) |
| 16:43 | mstenta[m] | I think symbioquine and Farmer Ed have both written some how-tos on this for farmOS |
| 16:44 | monkeyflowerfarm | nice I was trying to get that going but have not got it yet |
| 16:44 | mstenta[m] | and we have a rough example in the dev environment docs... |
| 16:44 | monkeyflowerfarm | oh cool |
| 16:44 | mstenta[m] | farmos.org/development/environment/https |
| 16:44 | mstenta[m] | that doesn't use lets encrypt, just a self-signed cert |
| 16:45 | mstenta[m] | but you basically just need to overwrite the self-signed cert with the lets encrypt one and it should work the same |
| 16:45 | mstenta[m] | (that's if you're using docker...) |
| 16:47 | monkeyflowerfarm | Ok 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:47 | mstenta[m] | Sure thing! Yea there are a lot of ways to set it up :-) |
| 16:48 | mstenta[m] | You can do everything with Apache alone... just requires more Apache virtual host config |
| 16:48 | mstenta[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:48 | mstenta[m] | That way you don't need to mess with the farmOS/Apache config at all |
| 16:49 | mstenta[m] | encapsulation 🥰 |
| 16:49 | mstenta[m] | but learning docker is definitely a whole thing |
| 16:49 | mstenta[m] | and certainly not required for farmOS |
| 16:52 | monkeyflowerfarm | Yes 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:54 | mstenta[m] | You might learn a lot just by following our guide on setting up a dev environment |
| 16:54 | mstenta[m] | With SSL |
| 16:55 | mstenta[m] | Then you can experiment with that too understand the pieces |
| 16:55 | mstenta[m] | The process will be pretty similar on a server |
| 16:57 | monkeyflowerfarm | I did before but I will revisit that 👍️ |
| 18:39 | monkeyflowerfarm | would it be better to install nginx for a reverse proxy on same server as apache or use a different server box on dmz? |
| 18:39 | mstenta[m] | you can do it all on the same server |
| 18:39 | monkeyflowerfarm | I'm donating all the money you saved me for the ssl's I was able to get refunded to farm os. |
| 18:39 | mstenta[m] | ha! |
| 18:40 | mstenta[m] | thanks monkeyflowerfarm ! |
| 18:40 | mstenta[m] | :-D |
| 18:40 | monkeyflowerfarm | thank you |
| 18:40 | mstenta[m] | glad you were able to get a refund! |
| 18:41 | monkeyflowerfarm | i had a few days left |
| 18:42 | symbioquine[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:42 | mstenta[m] | symbioquine: monkeyflowerfarm is not currently using Docker |
| 18:42 | mstenta[m] | (but might explore doing so) |
| 18:43 | monkeyflowerfarm | would I have to rebuild my entire server config if I want to switch over to docker? |
| 18:43 | mstenta[m] | nope - you would probably throw most of it out :-) |
| 18:43 | mstenta[m] | and port the rest into config used by the Nginx docker container |
| 18:44 | mstenta[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:44 | mstenta[m] | it's all in the containers, which can be created/destroyed as needed |
| 18:44 | mstenta[m] | it decouples that stuff from the server itself, which is really nice |
| 18:44 | mstenta[m] | makes upgrading your server a lot easier in the future too |
| 18:45 | monkeyflowerfarm | so pretty much start over :). And the containers can be transferred to other hardware as well if need be? |
| 18:45 | mstenta[m] | yea, any server that has docker can run the containers |
| 18:46 | mstenta[m] | it is a bit of a paradigm shift... and defintely requires some learning and understanding of the considerations/pitfalls |
| 18:46 | mstenta[m] | but you won't regret it :-) |
| 18:46 | monkeyflowerfarm | oh I wish I would have asked earlier but I'm excited to change over to docker soon |
| 18:47 | mstenta[m] | well all the config you've done already might still be useful! |
| 18:47 | mstenta[m] | all good! |
| 18:49 | monkeyflowerfarm | One 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:49 | mstenta[m] | yes and no |
| 18:49 | mstenta[m] | the only "no" is you can't run on the same ports |
| 18:50 | mstenta[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:50 | mstenta[m] | but you could test on a different port first |
| 18:50 | mstenta[m] | 8080 |
| 18:50 | monkeyflowerfarm | ok thats doable |
| 18:50 | mstenta[m] | ssl would be a bit trickier... since it needs to be 443 |
| 18:50 | mstenta[m] | but i say first step is get farmOS running in a container on port 80 |
| 18:51 | mstenta[m] | then you can ditch apache probably |
| 18:51 | mstenta[m] | and then next step would be to get nginx running on 443 with let's encrypt, proxying to the farmOS container |
| 18:51 | monkeyflowerfarm | Thanks again!!! Have a great day. I'd love to contribute any way I can from out here in Northern California. |
| 18:51 | mstenta[m] | my pleasure! |
| 18:52 | monkeyflowerfarm | I will drop the soon as my refund comes any day now |
| 18:52 | monkeyflowerfarm | *donation |