1.7.5 (#21)
- Update to version 1.7.5 - Applied style guide Co-authored-by: meaz <meaz@disroot.org> Reviewed-on: #21 Reviewed-by: meaz <meaz@no-reply@disroot.org> Co-authored-by: muppeth <muppeth@disroot.org> Co-committed-by: muppeth <muppeth@disroot.org>
This commit is contained in:
parent
38e6d23029
commit
af9a104c45
7 changed files with 58 additions and 51 deletions
6
.ansible-lint
Normal file
6
.ansible-lint
Normal file
|
@ -0,0 +1,6 @@
|
|||
skip_list:
|
||||
- fqcn-builtins
|
||||
- fqcn[action]
|
||||
- fqcn[action-core]
|
||||
- fqcn[canonical]
|
||||
- name[casing]
|
|
@ -15,5 +15,3 @@ Then you can access PrivateBin from your computer on https://192.168.33.12
|
|||
|
||||
## Playbook
|
||||
The playbook includes php-fpm and nginx role and deploys entire stack needed to run PrivateBin. Additional roles are also available in the Ansible roles repos in git.
|
||||
|
||||
|
||||
|
|
2
Vagrantfile
vendored
2
Vagrantfile
vendored
|
@ -8,7 +8,7 @@
|
|||
Vagrant.configure("2") do |config|
|
||||
#config.ssh.insert_key = false
|
||||
config.vm.define "privatebin" do |privatebin|
|
||||
privatebin.vm.box = "generic/debian11"
|
||||
privatebin.vm.box = "generic/debian12"
|
||||
privatebin.vm.provider :libvirt do |libvirt|
|
||||
libvirt.memory = 256
|
||||
end
|
||||
|
|
|
@ -1,12 +1,12 @@
|
|||
---
|
||||
|
||||
#PRIVATE BIN VARIABLES
|
||||
privatebin_version: '1.7.4'
|
||||
# PRIVATE BIN VARIABLES
|
||||
privatebin_version: '1.7.5'
|
||||
privatebin_app_dir: '/var/www/privatebin'
|
||||
privatebin_user: 'www-data'
|
||||
privatebin_group: 'www-data'
|
||||
#PRIVATE BIN CONFIG VARS
|
||||
#[main]
|
||||
# PRIVATE BIN CONFIG VARS
|
||||
# [main]
|
||||
privatebin_name: 'PrivateBin'
|
||||
privatebin_info: 'More information on the <a href=\"https://privatebin.info/\">project page</a>.'
|
||||
privatebin_highlight_theme: 'sons-of-obsidian'
|
||||
|
@ -30,11 +30,11 @@ privatebin_language_selection: 'true'
|
|||
privatebin_ip_icon: 'none'
|
||||
privatebin_compression: 'zlib'
|
||||
privatebin_csp: 'true'
|
||||
#[expire]
|
||||
# [expire]
|
||||
privatebin_expire_default: '1week'
|
||||
privatebin_purge_limit: '300'
|
||||
privatebin_purge_batchsize: '10'
|
||||
#[traffic]
|
||||
# [traffic]
|
||||
privatebin_data_dir: '/srv/test'
|
||||
privatebin_ratelimit: '10'
|
||||
privatebin_header: 'X_FORWARDED_FOR'
|
||||
|
@ -44,8 +44,8 @@ privatebin_pkgs:
|
|||
- libmcrypt-dev
|
||||
- links
|
||||
|
||||
#PHP Vars
|
||||
php_version: '8.0'
|
||||
# PHP Vars
|
||||
php_version: '8.2'
|
||||
php_etc_path: '/etc/php'
|
||||
install_php: 'true'
|
||||
pool_listen: '/var/run/php/php{{ php_version }}-fpm.sock'
|
||||
|
@ -70,34 +70,33 @@ php_pkgs:
|
|||
- php{{ php_version }}-readline
|
||||
- php{{ php_version }}-zip
|
||||
|
||||
#nginx vhosts
|
||||
# Nginx vhosts
|
||||
nginx_default_vhost: 'privatebin'
|
||||
nginx_default_vhost_ssl: 'privatebin'
|
||||
nginx_www_dir: '/var/www/'
|
||||
nginx_gen_dh: 'true'
|
||||
ssl_src_path: '/etc/letsencrypt/live'
|
||||
nginx_vhosts:
|
||||
- name: 'privatebin'
|
||||
template: 'privatebin'
|
||||
proto: 'https'
|
||||
listen: '443'
|
||||
root: 'privatebin/PrivateBin-{{ privatebin_version }}'
|
||||
index: 'index.php'
|
||||
ssl_name: 'bin.localhost'
|
||||
selfsigned: 'true'
|
||||
use_access_log: 'false'
|
||||
use_error_log: 'true'
|
||||
nginx_error_log_level: 'warn'
|
||||
upstream_params:
|
||||
- 'fastcgi_pass unix:{{ pool_listen }};'
|
||||
- 'fastcgi_index index.php;'
|
||||
- 'fastcgi_param SCRIPT_FILENAME $document_root/$fastcgi_script_name;'
|
||||
header_xframe: 'none'
|
||||
header_cto: 'none'
|
||||
file_cache:
|
||||
- cache: 'max=1000 inactive=20s'
|
||||
valid: '30s'
|
||||
min_users: '2'
|
||||
cache_errors: 'on'
|
||||
state: 'enable'
|
||||
letsencrypt: 'false'
|
||||
- name: 'privatebin'
|
||||
template: 'privatebin'
|
||||
proto: 'https'
|
||||
listen: '443'
|
||||
root: 'privatebin/PrivateBin-{{ privatebin_version }}'
|
||||
index: 'index.php'
|
||||
ssl_name: 'bin.localhost'
|
||||
selfsigned: 'true'
|
||||
use_access_log: 'false'
|
||||
use_error_log: 'true'
|
||||
nginx_error_log_level: 'warn'
|
||||
upstream_params:
|
||||
- 'fastcgi_pass unix:{{ pool_listen }};'
|
||||
- 'fastcgi_index index.php;'
|
||||
- 'fastcgi_param SCRIPT_FILENAME $document_root/$fastcgi_script_name;'
|
||||
header_xframe: 'none'
|
||||
header_cto: 'none'
|
||||
file_cache:
|
||||
- cache: 'max=1000 inactive=20s'
|
||||
valid: '30s'
|
||||
min_users: '2'
|
||||
cache_errors: 'on'
|
||||
state: 'enable'
|
||||
letsencrypt: 'false'
|
||||
|
|
|
@ -1,15 +1,17 @@
|
|||
---
|
||||
|
||||
- name: '[Configure] - Deploy index.php'
|
||||
template:
|
||||
src: 'index.php.j2'
|
||||
dest: '{{ privatebin_app_dir }}/PrivateBin-{{ privatebin_version }}/index.php'
|
||||
owner: '{{ privatebin_user }}'
|
||||
group: '{{ privatebin_group }}'
|
||||
- name: '[Configure] - Deploy index.php'
|
||||
template:
|
||||
src: 'index.php.j2'
|
||||
dest: '{{ privatebin_app_dir }}/PrivateBin-{{ privatebin_version }}/index.php'
|
||||
owner: '{{ privatebin_user }}'
|
||||
group: '{{ privatebin_group }}'
|
||||
mode: '0755'
|
||||
|
||||
- name: '[Configure] - Deploy PrivateBin config'
|
||||
template:
|
||||
src: 'cfg/conf.php.j2'
|
||||
dest: '{{ privatebin_app_dir }}/PrivateBin-{{ privatebin_version }}/cfg/conf.php'
|
||||
owner: '{{ privatebin_user }}'
|
||||
group: '{{ privatebin_group }}'
|
||||
- name: '[Configure] - Deploy PrivateBin config'
|
||||
template:
|
||||
src: 'cfg/conf.php.j2'
|
||||
dest: '{{ privatebin_app_dir }}/PrivateBin-{{ privatebin_version }}/cfg/conf.php'
|
||||
owner: '{{ privatebin_user }}'
|
||||
group: '{{ privatebin_group }}'
|
||||
mode: '0755'
|
||||
|
|
|
@ -6,6 +6,7 @@
|
|||
state: 'directory'
|
||||
owner: '{{ privatebin_user }}'
|
||||
group: '{{ privatebin_group }}'
|
||||
mode: '0750'
|
||||
|
||||
- name: '[Install] - Create data store dir'
|
||||
file:
|
||||
|
@ -13,6 +14,7 @@
|
|||
state: 'directory'
|
||||
owner: '{{ privatebin_user }}'
|
||||
group: '{{ privatebin_group }}'
|
||||
mode: '0750'
|
||||
|
||||
- name: '[Install] - Check if the app is already installed'
|
||||
stat:
|
||||
|
@ -26,5 +28,5 @@
|
|||
mode: '0750'
|
||||
owner: '{{ privatebin_user }}'
|
||||
group: '{{ privatebin_group }}'
|
||||
remote_src: yes
|
||||
remote_src: true
|
||||
when: privatebin_installed.stat.exists == false
|
||||
|
|
|
@ -3,4 +3,4 @@
|
|||
- name: '[Deps] - Install Dependencies'
|
||||
apt:
|
||||
name: '{{ privatebin_pkgs }}'
|
||||
update_cache: yes
|
||||
update_cache: true
|
||||
|
|
Loading…
Reference in a new issue