Giter Site home page Giter Site logo

privatebin's Introduction

PrivateBin Role

Role installs and configures PrivateBin https://privatebin.info/

Requirements

Need to have an SSL Certificate, geerlingguy.certbot ansible galaxy role can be used to generate a Let's Encrypt SSL for the domain, if one does not already exist. You will also need a webserver with the requirements outlined here. ie. a LAMP stack.

Role Variables

Defaults can be found in templates/conf.php.j2 and defaults/main.yml

Task Variables

private_bin_repo: https://github.com/PrivateBin/PrivateBin/
private_bin_version: 1.3.4
private_bin_archive_format: tar.gz
private_bin_web_user: www-data
private_bin_web_group: www-data
private_bin_www_directory: /var/www/html/privatebin

conf.php Variables

These variables are the default ones that are set in the conf.sample.php file from the PrivateBin repo.

---
# task variables
private_bin_repo: https://github.com/PrivateBin/PrivateBin
private_bin_version: 1.3.4
private_bin_archive_format: tar.gz
private_bin_web_user: www-data
private_bin_web_group: www-data
private_bin_www_directory: /var/www/html/privatebin

# conf.php.j2 template variables
# https://github.com/PrivateBin/PrivateBin/wiki/Configuration
# https://github.com/PrivateBin/PrivateBin/blob/master/cfg/conf.sample.php
private_bin_model_class: Filesystem # Filesystem, MySql, SQLite
private_bin_model_fs_option_directory: data
private_bin_model_mysql_option_dsn:
private_bin_model_mysql_option_tbl:
private_bin_model_mysql_option_usr:
private_bin_model_mysql_option_pwd:
private_bin_model_mysql_option_opt:
private_bin_model_sqlite3_option_path:
private_bin_model_sqlite3_option_usr:
private_bin_model_sqlite3_option_pwd:
private_bin_model_sqlite3_option_opt:

misc variables

If you want to have libsodium installed by this role, set this variable to true

private_bin_install_libsodium: false

manual libsodium install instuctions

Dependencies

None

Example Playbook

- name: setup provatebin app
  hosts: privatebinhost
  become: true
  vars:
    private_bin_main_name: "My private bin"
    private_bin_expire_default: "1hour"
    private_bin_main_defaultformatter: "markdown"
  roles:
    - geerlingguy.apache
    - geerlingguy.php
    - geerlingguy.certbot
    - zfuller.privatebin

defaults/main.yml

# Set default page name
private_bin_main_name: "My Private Bin"

# different install location than /var/www/html/privatebin
private_bin_www_directory: /home/webuser/privatebin

# Set custom expiration times
private_bin_expire_options:
  - time: 1min
    seconds: 60
  - time: 5min
    seconds: 300
  - time: 15min
    seconds: 900
  - time: 1hour
    seconds: 3600

License

GPLv2

privatebin's People

Contributors

reelsense avatar zfuller avatar

Stargazers

 avatar

Watchers

 avatar

Forkers

reelsense

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.