|
@@ -47,7 +47,7 @@ PLEROMA_CODE=
|
47
|
47
|
PLEROMA_PORT=4000
|
48
|
48
|
PLEROMA_ONION_PORT=8011
|
49
|
49
|
PLEROMA_REPO="https://git.pleroma.social/pleroma/pleroma.git"
|
50
|
|
-PLEROMA_COMMIT='312a8783f8dbf563ea9d5af3cc7991ca553dc286'
|
|
50
|
+PLEROMA_COMMIT='59a76ea464998476f8c4814324647f4ae4a7f2cb'
|
51
|
51
|
PLEROMA_ADMIN_PASSWORD=
|
52
|
52
|
PLEROMA_DIR=/etc/pleroma
|
53
|
53
|
PLEROMA_SECRET_KEY=""
|
|
@@ -938,6 +938,18 @@ function remove_pleroma {
|
938
|
938
|
remove_ddns_domain "$PLEROMA_DOMAIN_NAME"
|
939
|
939
|
}
|
940
|
940
|
|
|
941
|
+function image_install_pleroma {
|
|
942
|
+ if [[ "$SOCIALINSTANCE" != 'pleroma' ]]; then
|
|
943
|
+ return
|
|
944
|
+ fi
|
|
945
|
+
|
|
946
|
+ # shellcheck disable=SC2154
|
|
947
|
+ chroot "$rootdir" apt-get -yq install wget imagemagick
|
|
948
|
+
|
|
949
|
+ image_install_elixir
|
|
950
|
+ image_install_postgresql
|
|
951
|
+}
|
|
952
|
+
|
941
|
953
|
function install_pleroma {
|
942
|
954
|
if [ ! $ONION_ONLY ]; then
|
943
|
955
|
ONION_ONLY='no'
|
|
@@ -1019,7 +1031,7 @@ function install_pleroma {
|
1019
|
1031
|
function_check nginx_security_options
|
1020
|
1032
|
nginx_security_options "$PLEROMA_DOMAIN_NAME"
|
1021
|
1033
|
|
1022
|
|
- { echo ' add_header Strict-Transport-Security max-age=15768000;';
|
|
1034
|
+ { echo ' add_header Strict-Transport-Security max-age=0;';
|
1023
|
1035
|
echo '';
|
1024
|
1036
|
echo ' # Logs';
|
1025
|
1037
|
echo ' access_log /dev/null;';
|