Skip to content
Projeler
Gruplar
Parçacıklar
Yardım
Yükleniyor...
Oturum aç / Kaydol
Gezinmeyi değiştir
L
Liman MYS - Çekirdek
Proje
Proje
Ayrıntılar
Etkinlik
Cycle Analytics
Depo (repository)
Depo (repository)
Dosyalar
Kayıtlar (commit)
Dallar (branch)
Etiketler
Katkıda bulunanlar
Grafik
Karşılaştır
Grafikler
Konular (issue)
0
Konular (issue)
0
Liste
Pano
Etiketler
Kilometre Taşları
Birleştirme (merge) Talepleri
0
Birleştirme (merge) Talepleri
0
CI / CD
CI / CD
İş akışları (pipeline)
İşler
Zamanlamalar
Grafikler
Paketler
Paketler
Wiki
Wiki
Parçacıklar
Parçacıklar
Üyeler
Üyeler
Collapse sidebar
Close sidebar
Etkinlik
Grafik
Grafikler
Yeni bir konu (issue) oluştur
İşler
Kayıtlar (commit)
Konu (issue) Panoları
Kenar çubuğunu aç
liman
Liman MYS - Çekirdek
Commits
b47eb889
Kaydet (Commit)
b47eb889
authored
Kas 17, 2020
tarafından
mertcelen
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
Migration now forced.
Mail Encryption option added.
üst
e11b9f4e
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
17 additions
and
7 deletions
+17
-7
main.yml
.github/workflows/main.yml
+1
-1
MainController.php
app/Http/Controllers/Settings/MainController.php
+6
-4
tweaks.blade.php
resources/views/settings/tweaks.blade.php
+8
-0
postinst
storage/build_tools/DEBIAN/postinst
+2
-2
No files found.
.github/workflows/main.yml
Dosyayı görüntüle @
b47eb889
...
...
@@ -99,7 +99,7 @@ jobs:
Architecture: amd64
Priority: important
Description: Liman MYS
Depends: gpg, zip, unzip, nginx, redis, php-redis, php7.3-fpm, php7.3-curl, php7.3, php7.3-sqlite3, php7.3-snmp, php7.3-mbstring, php7.3-xml, php7.3-zip, php7.3-posix, libnginx-mod-http-headers-more-filter, libssl1.1, supervisor, postgresql-13, php7.3-pgsql, pgloader
Depends: gpg, zip, unzip, nginx, redis, php-redis, php7.3-fpm, php7.3-curl, php7.3, php7.3-sqlite3, php7.3-snmp, php7.3-mbstring, php7.3-xml, php7.3-zip, php7.3-posix, libnginx-mod-http-headers-more-filter, libssl1.1, supervisor, postgresql-13, php7.3-pgsql, pgloader
, php7.3-bcmath
""" > DEBIAN/control
cd ../
dpkg-deb -Zgzip --build package
...
...
app/Http/Controllers/Settings/MainController.php
Dosyayı görüntüle @
b47eb889
...
...
@@ -60,6 +60,7 @@ class MainController extends Controller
"MAIL_HOST"
=>
env
(
"MAIL_HOST"
),
"MAIL_PORT"
=>
env
(
"MAIL_PORT"
),
"MAIL_USERNAME"
=>
env
(
"MAIL_USERNAME"
),
"MAIL_ENCRYPTION"
=>
env
(
"MAIL_ENCRYPTION"
),
"MARKET_URL"
=>
env
(
"MARKET_URL"
),
"MARKET_CLIENT_ID"
=>
env
(
"MARKET_CLIENT_ID"
),
"MARKET_CLIENT_SECRET"
=>
env
(
"MARKET_CLIENT_SECRET"
),
...
...
@@ -79,22 +80,23 @@ class MainController extends Controller
"MAIL_HOST"
=>
request
(
"MAIL_HOST"
),
"MAIL_PORT"
=>
request
(
"MAIL_PORT"
),
"MAIL_USERNAME"
=>
request
(
"MAIL_USERNAME"
),
"MAIL_ENCRYPTION"
=>
request
(
"MAIL_ENCRYPTION"
),
"MARKET_URL"
=>
request
(
"MARKET_URL"
),
"MARKET_CLIENT_ID"
=>
request
(
"MARKET_CLIENT_ID"
),
"MARKET_CLIENT_SECRET"
=>
request
(
"MARKET_CLIENT_SECRET"
),
"EXTENSION_DEVELOPER_MODE"
=>
request
(
"EXTENSION_DEVELOPER_MODE"
),
]);
if
(
request
()
->
has
(
"MAIL_PASSWORD"
))
{
if
(
request
()
->
has
(
"MAIL_PASSWORD"
))
{
$flag
=
setEnv
([
"MAIL_PASSWORD"
=>
request
(
"MAIL_PASSWORD"
)
]);
}
if
(
$flag
)
{
if
(
$flag
)
{
return
respond
(
"Ayarlar başarıyla kaydedildi!"
);
}
else
{
return
respond
(
"Ayarlar kaydedılemedı!"
,
201
);
}
else
{
return
respond
(
"Ayarlar kaydedılemedı!"
,
201
);
}
}
...
...
resources/views/settings/tweaks.blade.php
Dosyayı görüntüle @
b47eb889
...
...
@@ -70,6 +70,14 @@
<label
for=
"MAIL_PASSWORD"
>
{{__("Mail Parolası")}}
</label><br>
<input
type=
"password"
class=
"form-control"
id=
"MAIL_PASSWORD"
>
</div>
<div
class=
"form-group"
>
<label
for=
"MAIL_ENCRYPTION"
>
{{__("Mail Şifreleme Methodu")}}
</label><br>
<select
id=
"MAIL_ENCRYPTION"
class=
"select2 liman_env"
>
<option
value=
"tls"
>
{{__("TLS")}}
</option>
<option
value=
"ssl"
>
{{__("SSL")}}
</option>
<option
value=
"null"
>
{{__("Hiçbiri")}}
</option>
</select>
</div>
</div>
</div>
<div
class=
"tab-pane fade"
id=
"advanced"
role=
"tabpanel"
aria-labelledby=
"vert-tabs-settings-tab"
>
...
...
storage/build_tools/DEBIAN/postinst
Dosyayı görüntüle @
b47eb889
...
...
@@ -51,8 +51,8 @@ DB_EXISTS=$(sudo -u liman psql -lqt | cut -d \| -f 1 | grep "liman" >/dev/null 2
# Database Creation
if
[
-f
"/liman/database/liman.sqlite"
]
;
then
php /liman/server/artisan migrate
--path
=
/liman/server/database/migrations/2020_11_17_134057_update_admin_notifications_table.php
php /liman/server/artisan migrate
--path
=
/liman/server/database/migrations/2020_11_17_134154_update_notifications_table.php
php /liman/server/artisan migrate
--path
=
/liman/server/database/migrations/2020_11_17_134057_update_admin_notifications_table.php
--force
php /liman/server/artisan migrate
--path
=
/liman/server/database/migrations/2020_11_17_134154_update_notifications_table.php
--force
sudo
-u
postgres createuser liman
sudo
-u
postgres createdb liman
-O
liman
RANDOM_PASSWORD
=
$(
LC_ALL
=
C
tr
-dc
'A-Za-z0-9'
</dev/urandom |
head
-c
25
;
echo
)
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment