mirror of
https://github.com/24eme/signaturepdf
synced 2026-03-14 13:55:44 +01:00
deb: fichier de config etc/ et templating
This commit is contained in:
parent
93083d8fb0
commit
e6df9daaf6
3 changed files with 24 additions and 9 deletions
|
|
@ -1,12 +1,24 @@
|
|||
# signaturepdf default Apache configuration
|
||||
|
||||
Alias /signaturepdf /usr/share/signaturepdf/public
|
||||
Alias /signaturepdf /~#LIBPATH#~public
|
||||
|
||||
DocumentRoot /usr/share/signaturepdf/public
|
||||
DocumentRoot /~#LIBPATH#~public
|
||||
AddDefaultCharset UTF-8
|
||||
|
||||
<Directory /usr/share/signaturepdf/public>
|
||||
<Directory /~#LIBPATH#~public>
|
||||
Options SymLinksIfOwnerMatch
|
||||
DirectoryIndex index.php
|
||||
AllowOverride All
|
||||
|
||||
<IfVersion >= 2.3>
|
||||
Require all granted
|
||||
</IfVersion>
|
||||
<IfVersion < 2.3>
|
||||
Order Deny,Allow
|
||||
Allow from all
|
||||
</IfVersion>
|
||||
</Directory>
|
||||
|
||||
LogLevel warn
|
||||
ErrorLog /var/log/apache2/ssp_error.log
|
||||
CustomLog /var/log/apache2/ssp_access.log combined
|
||||
|
|
|
|||
|
|
@ -4,15 +4,15 @@
|
|||
set -e
|
||||
|
||||
# Droits sur les fichiers
|
||||
chgrp -R www-data /usr/share/signaturepdf/data
|
||||
chgrp -R www-data /usr/share/signaturepdf/pdf
|
||||
chgrp -R www-data /~#LIBPATH#~data
|
||||
chgrp -R www-data /~#LIBPATH#~pdf
|
||||
|
||||
chmod -R g+rwx /usr/share/signaturepdf/data
|
||||
chmod -R g+rwx /usr/share/signaturepdf/pdf
|
||||
chmod -R g+rwx /~#LIBPATH#~data
|
||||
chmod -R g+rwx /~#LIBPATH#~pdf
|
||||
|
||||
# Activation de la conf apache2
|
||||
mkdir -p /etc/apache2/conf-available
|
||||
ln -sf ../../signaturepdf/apache.conf /etc/apache2/conf-available/signaturepdf.conf
|
||||
ln -sf ../../~#PKGNAME#~/apache.conf /etc/apache2/conf-available/signaturepdf.conf
|
||||
|
||||
a2enconf signaturepdf
|
||||
systemctl reload apache2
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue