Coder Social home page Coder Social logo

archive-suitcase's Introduction

BB Archive box

Installation instructions for a fresh BB Archive in a box (suitcase).

Architecture overview:

Archive in a box is made out of two parts (over simplified): brain and files. Where brain stands for all apps, services, data stores, assets which are not the actual content of the archive. These are the content files themselves (video, audio, etc...)

Installation steps:

Once the box is setup with Centos 7.

as root

  1. clone or download this repo
  2. edit install.env with proper values
  3. run install_1_archive.sh
  4. run install_2_gui.sh
  5. log in the gui and run install_3_user_apps.sh

setup ssh access to the box ssh-copy-id root@<suitcase-ip> and login

Disaster Recovery

During an unfortunate situation where network is partitioned we want a suitcase instance to serve whatever it has. To do that a user must set his /etc/hosts file to the suitcase ip.

127.0.0.1	archive
127.0.0.1	cdn.archive
127.0.0.1	files.archive

Once this domains are resolved to the suitcase, the user can simply point his browser to http://archive

Changing Domains

Changing the domain name of the suitcase instance requires changing comfiguration of various components:

  • nginx config files
  • service config files
  • CI server suitcase jobs

Once these are changed correctly, users have to setup their /etc/hosts file accordingly.

nginx Each nginx config files under /etc/nginx/conf.d must change its server_name directive to the new domain.

TODO: more details regarding the other two should follow

Public Access

In a case we want our suitcase be publicly available on the internet (not so safe). Sys Admin has to follow the procedure of changing domains above.

archive-suitcase's People

Contributors

edoshor avatar

Watchers

Rami Grossman avatar Gregory Shilin avatar vshiray avatar James Cloos avatar  avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.