mirror of
https://github.com/community-scripts/ProxmoxVE.git
synced 2026-04-18 16:32:17 +00:00
Refactor (#10256)
This commit is contained in:
@@ -20,16 +20,9 @@ $STD apt install -y \
|
|||||||
msg_ok "Installed Dependencies"
|
msg_ok "Installed Dependencies"
|
||||||
|
|
||||||
PHP_VERSION="8.2" PHP_MODULE="common,fpm" setup_php
|
PHP_VERSION="8.2" PHP_MODULE="common,fpm" setup_php
|
||||||
|
create_self_signed_cert
|
||||||
fetch_and_deploy_gh_release "privatebin" "PrivateBin/PrivateBin" "tarball"
|
fetch_and_deploy_gh_release "privatebin" "PrivateBin/PrivateBin" "tarball"
|
||||||
|
|
||||||
msg_info "Generating Universal SSL Certificate"
|
|
||||||
mkdir -p /etc/ssl/privatebin
|
|
||||||
$STD openssl req -x509 -nodes -days 3650 -newkey rsa:2048 \
|
|
||||||
-keyout /etc/ssl/privatebin/key.pem \
|
|
||||||
-out /etc/ssl/privatebin/cert.pem \
|
|
||||||
-subj "/CN=PrivateBin"
|
|
||||||
msg_ok "Certificate Generated"
|
|
||||||
|
|
||||||
msg_info "Configuring Environment"
|
msg_info "Configuring Environment"
|
||||||
mkdir -p /opt/privatebin/data
|
mkdir -p /opt/privatebin/data
|
||||||
cp /opt/privatebin/cfg/conf.sample.php /opt/privatebin/cfg/conf.php
|
cp /opt/privatebin/cfg/conf.sample.php /opt/privatebin/cfg/conf.php
|
||||||
@@ -55,8 +48,8 @@ server {
|
|||||||
listen 443 ssl default_server;
|
listen 443 ssl default_server;
|
||||||
listen [::]:443 ssl default_server;
|
listen [::]:443 ssl default_server;
|
||||||
|
|
||||||
ssl_certificate /etc/ssl/privatebin/cert.pem;
|
ssl_certificate /etc/ssl/privatebin/privatebin.crt;
|
||||||
ssl_certificate_key /etc/ssl/privatebin/key.pem;
|
ssl_certificate_key /etc/ssl/privatebin/privatebin.key;
|
||||||
|
|
||||||
root /opt/privatebin;
|
root /opt/privatebin;
|
||||||
index index.php;
|
index index.php;
|
||||||
|
|||||||
Reference in New Issue
Block a user