feat: add NetBox plugin store
This commit is contained in:
@@ -0,0 +1,16 @@
|
||||
<VirtualHost *:80>
|
||||
ServerName localhost
|
||||
DocumentRoot /var/www/html/public
|
||||
|
||||
<Directory /var/www/html/public>
|
||||
Options -Indexes
|
||||
AllowOverride All
|
||||
Require all granted
|
||||
</Directory>
|
||||
|
||||
ErrorLog ${APACHE_LOG_DIR}/error.log
|
||||
CustomLog ${APACHE_LOG_DIR}/access.log combined
|
||||
</VirtualHost>
|
||||
|
||||
ServerTokens Prod
|
||||
ServerSignature Off
|
||||
@@ -0,0 +1,19 @@
|
||||
<VirtualHost *:80>
|
||||
ServerName plugins.example.com
|
||||
DocumentRoot /opt/netbox-plugin-store/store/public
|
||||
|
||||
<Directory /opt/netbox-plugin-store/store/public>
|
||||
Options -Indexes
|
||||
AllowOverride All
|
||||
Require all granted
|
||||
</Directory>
|
||||
|
||||
ErrorLog ${APACHE_LOG_DIR}/netbox-plugin-store-error.log
|
||||
CustomLog ${APACHE_LOG_DIR}/netbox-plugin-store-access.log combined
|
||||
</VirtualHost>
|
||||
|
||||
ServerTokens Prod
|
||||
ServerSignature Off
|
||||
|
||||
# Für Produktion HTTPS direkt mit mod_ssl konfigurieren (oder den vHost durch
|
||||
# certbot ergänzen lassen). STORE_PUBLIC_URL muss anschließend https:// nutzen.
|
||||
@@ -0,0 +1,19 @@
|
||||
[Unit]
|
||||
Description=NetBox Plugin Store synchronization
|
||||
Wants=network-online.target
|
||||
After=network-online.target
|
||||
|
||||
[Service]
|
||||
Type=oneshot
|
||||
User=www-data
|
||||
Group=www-data
|
||||
WorkingDirectory=/opt/netbox-plugin-store/store
|
||||
ExecStart=/usr/bin/php /opt/netbox-plugin-store/store/bin/console sync
|
||||
NoNewPrivileges=true
|
||||
PrivateTmp=true
|
||||
ProtectHome=true
|
||||
ProtectSystem=strict
|
||||
ReadWritePaths=/opt/netbox-plugin-store/store/data
|
||||
|
||||
[Install]
|
||||
WantedBy=multi-user.target
|
||||
@@ -0,0 +1,12 @@
|
||||
[Unit]
|
||||
Description=Synchronize NetBox Plugin Store every 15 minutes
|
||||
|
||||
[Timer]
|
||||
OnBootSec=2min
|
||||
OnUnitActiveSec=15min
|
||||
AccuracySec=30s
|
||||
Persistent=true
|
||||
Unit=netbox-plugin-store-sync.service
|
||||
|
||||
[Install]
|
||||
WantedBy=timers.target
|
||||
@@ -0,0 +1,6 @@
|
||||
display_errors=Off
|
||||
display_startup_errors=Off
|
||||
log_errors=On
|
||||
expose_php=Off
|
||||
session.cookie_httponly=1
|
||||
session.use_strict_mode=1
|
||||
Reference in New Issue
Block a user