From 1e51721078b44f652b11724482303f140d22a548 Mon Sep 17 00:00:00 2001 From: Neko Nekowazarashi Date: Sun, 4 Jun 2023 14:44:15 +0700 Subject: [PATCH] catatan setelah pemasangan --- doc/POST_INSTALL.md | 7 +++++++ doc/POST_INSTALL_ID.md | 7 +++++++ 2 files changed, 14 insertions(+) create mode 100644 doc/POST_INSTALL.md create mode 100644 doc/POST_INSTALL_ID.md diff --git a/doc/POST_INSTALL.md b/doc/POST_INSTALL.md new file mode 100644 index 0000000..48b2a5c --- /dev/null +++ b/doc/POST_INSTALL.md @@ -0,0 +1,7 @@ +If you install this app in a sub-path, the favicon is not gonna work because some limitation. If you really want to use the favicon, make sure that `__DOMAIN__/static/favicon.ico` isn't used by any other app, then change the nginx conf in `/etc/nginx/conf.d/__DOMAIN__.d/__ID__.conf` and add this: +``` +location /static/favicon.ico { + root __INSTALL_DIR__/simplytranslate/static/favicon.ico; +} +``` +Then, reload nginx `systemctl reload nginx`. \ No newline at end of file diff --git a/doc/POST_INSTALL_ID.md b/doc/POST_INSTALL_ID.md new file mode 100644 index 0000000..8facec5 --- /dev/null +++ b/doc/POST_INSTALL_ID.md @@ -0,0 +1,7 @@ +Jika Anda memasang aplikasi ini di sub-jalur, maka faviconnya tidak akan tertampil karena beberapa batasan. Jika Anda benar-benar ingin menampilkan favicon, maka pastikan terlebih dahulu `__DOMAIN__/static/favicon.ico` tidak dipakai oleh aplikasi lain, setelah itu sunting konfigurasi nginx di `/etc/nginx/conf.d/__DOMAIN__.d/__ID__.conf` dengan menambah: +``` +location /static/favicon.ico { + root __INSTALL_DIR__/simplytranslate/static/favicon.ico; +} +``` +Setelah itu, silakan dimuat ulang nginxnya `systemctl reload nginx`.