Inizio dockerizzazione

This commit is contained in:
2022-08-29 23:20:16 +02:00
parent b348b3a83d
commit 3d22f4cc6a
851 changed files with 1117 additions and 904 deletions
+4
View File
@@ -0,0 +1,4 @@
###############
RewriteEngine On
RewriteRule ^(.*)$ http://www.ifattidinapoli.com/fdn2/$1 [P,L]
###############
+7
View File
@@ -0,0 +1,7 @@
# m h dom mon dow user command
*/1 * * * * root /home/asdynamics/private/fdn2/bin/cronexec minute >> /dev/null 2>&1
*/5 * * * * root /home/asdynamics/private/fdn2/bin/cronexec 5minutes >> /dev/null 2>&1
59 * * * * root /home/asdynamics/private/fdn2/bin/cronexec hourly >> /dev/null 2>&1
9 3 * * * root /home/asdynamics/private/fdn2/bin/cronexec daily >> /dev/null 2>&1
19 4 * * 6 root /home/asdynamics/private/fdn2/bin/cronexec weekly >> /dev/null 2>&1
29 5 1 * * root /home/asdynamics/private/fdn2/bin/cronexec monthly >> /dev/null 2>&1
+32
View File
@@ -0,0 +1,32 @@
modificare ".build.conf" nella root del progetto per impostare i path
modificare l path nello script di crontab in /oth/OSConfig
su mongo se non funzionano i text index:
use admin
db.runCommand({
setParameter: 1,
textSearchEnabled: 1
});
Oppure nel file di configurazione di mongo aggiungere la riga
setParameter=textSearchEnabled=true
INDEX DA CREARE
///// SBAGLIATO db.notizia.ensureIndex({"about.author":"text",titolo:"text",sottotitolo:"text",testo:"text"},{default_language: "italian"})
db.notizia.ensureIndex({"about.author": "text",sottotitolo: "text",testo: "text",titolo: "text"},{weights: {"about.author": 1,sottotitolo: 7,testo: 5,titolo: 10},name: "notiziaDetails"})
db.administrators.ensureIndex({nome:"text",cognome:"text",email:"text"},{default_language: "italian"})
db.mail.ensureIndex({recipient:"text",subject:"text",body:"text"},{default_language: "italian"})
db.users.ensureIndex({nome:"text",cognome:"text",email:"text"},{default_language: "italian"})
db.banner.ensureIndex({customer:"text",link:"text"},{default_language: "italian"})
db.commenti.ensureIndex({titolo:"text",testo:"text"},{default_language: "italian"})
db.notizia.createIndex({"shortenedUrl": 1})
db.notizia.createIndex({"about.data": 1, "status":1, "isAnsa":1,"about.lastEdit": 1})
db.statistics.createIndex({statType:1,deleted:1,date:1})
db.statistics.createIndex({"user.id":1})
db.statistics.createIndex({"stat.type":1,"content.position":1})
db.notizia.ensureIndex({"about.author": "text",sottotitolo: "text",testo: "text",titolo: "text"},{weights: {"about.author": 1,sottotitolo: 7,testo: 5,titolo: 10},name: "notiziaDetails"})
+2
View File
@@ -0,0 +1,2 @@
post_max_size = 60M
upload_max_filesize = 60M