Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

How to run multiple instances of Bibledit Cloud #892

Open
michaelrice opened this issue Mar 24, 2023 · 6 comments
Open

How to run multiple instances of Bibledit Cloud #892

michaelrice opened this issue Mar 24, 2023 · 6 comments
Assignees
Labels

Comments

@michaelrice
Copy link

Hello,

I need to be able to run multiple instances of the software.

My use case is 1 single server hosting bibledit for multiple different projects/people.

I plan to run nginx to proxy pass the content from bibledit1:8080,8081 to http://site1.com and https://site1.com then have bibledit2:8082,8083 serve up to http://site2.com and https://site2.com etc..

So is this type of a setup possible, and if so do you have any guidance on doing it?

I will be running bibledit-cloud on Ubuntu Linux

Thanks!

@teusbenschop
Copy link
Member

It is possible to do that.

Each instance of Bibledit would need to run under its own user account. For example, http://bibledit:8080 runs under user p8080 or so, and http://bibledit:8082 runs under user p8082 or so.

After creating those users, install Bibledit Cloud from source for each of those users.

How to install it from source: http://bibledit.org:8090/help/installcloudsourcedebian

As shown in the link above, do not install Bibledit in that case, just build is under the user and run it under that user.

Then for the proxy pass, I have no experience with how to set that up. Here is a link to how to configure Bibledit for running behind a proxy server: http://bibledit.org:8090/help/config after the proxy server has been set up.

@michaelrice
Copy link
Author

Thanks for the feedback. Im going to leave this open for a bit while I step though the install. Once I have it up and working Ill close it out if thats ok.

Thaks!

@michaelrice
Copy link
Author

michaelrice commented Mar 25, 2023

Im going to drop my current working nginx config here for others, just in case someone might find it useful:

server {
  listen 80;
  listen [::]:80;
  server_name www.mywebsite.com;
  return 301 https://www.mywebsite.com$request_uri;
}

server {
  listen 443 ssl;
  listen [::]:443 ssl;
  server_name www.mywebsite.com;
  ssl_certificate /etc/letsencrypt/live/mywebsite.com/fullchain.pem;
  ssl_certificate_key /etc/letsencrypt/live/mywebsite.com/privkey.pem;
  ssl_prefer_server_ciphers on;

  location / {
    access_log on;
    proxy_pass https://localhost:8081;
    proxy_ssl_verify off;
  }

}

As for the multiple instances, I think Im going to take a stab at making a docker container to run bibledit-cloud then just proxy it with nginx that way. Im thinking it might be easier to keep sites updated that way. Do you know if anyone is running this in docker and has a working docker file that I can start with before I start from scratch? Also do you know of any technical limitations in the software that might make us not want to go the docker route?

Thanks!

@teusbenschop
Copy link
Member

teusbenschop commented Mar 25, 2023

There won't be limitations on Bibledit Cloud why it would not be able to run in a Docker container.

Important though is that Bibledit Cloud saves data locally, so there would be a need to persist the filesystem that Bibledit Cloud writes to while it runs in Docker.

Perhaps there's someone who already runs it in Docker, but I am not aware of that. You may ask around on. https://groups.google.com/g/bibledit-general if perhaps someone there knows more about it.

@aranggitoar
Copy link
Contributor

aranggitoar commented Mar 26, 2023

Hello @michaelrice. I've made a small script a while back that might help with setting up Bibledit in a Docker container.

There is some comments you can ignore, if it is out of context. As it was used a while back for a specific project, though the setup is quite general.

@teusbenschop teusbenschop changed the title Running Multiple Instances How to run multiple instances of Bibledit Cloud Jun 21, 2023
@teusbenschop
Copy link
Member

teusbenschop commented Oct 29, 2023

Some questions:

  1. Is there any progress on this issue?
  2. Is your setup working the way you like?
  3. Is there any information that you have learnt that might help others?
  4. Should this issue be left open still or can it be closed?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

3 participants