главная|main page

состояние|status

блог|blog

файлы|files

программы|software

summaryrefslogtreecommitdiff
path: root/nginx.example
diff options
context:
space:
mode:
authorIvan Davydov <lotigara@lotigara.ru>2025-03-23 16:07:46 +0300
committerIvan Davydov <lotigara@lotigara.ru>2025-03-28 10:41:24 +0300
commita0f5891f7ebaef61c8ea362b4540d027f633849d (patch)
tree97571e7e46bf06af8d2f005ffbc54ca7a4aeb79d /nginx.example
parent553e884a45de6f67fb842dd281c662db1000cce3 (diff)
Big refactorHEADmain
TL;DR: this commit makes README.md more simple and makes scripts more complex. This commit makes scripts look (and behave) like scripts. That is, they now contain shebangs, `echo` lines to allow user to watch the installation process. The latter is now more configurable: user can customize the directory, where LibreTranslate will be installed, username, which will be used to run LibreTranslate and the domain name configuration is now contained in the .env file, which used for all other settings.
Diffstat (limited to 'nginx.example')
-rw-r--r--nginx.example9
1 files changed, 9 insertions, 0 deletions
diff --git a/nginx.example b/nginx.example
new file mode 100644
index 0000000..69e5d83
--- /dev/null
+++ b/nginx.example
@@ -0,0 +1,9 @@
+server {
+ listen 80;
+ server_name $LT_DOMAIN;
+
+ location / {
+ include proxy_params;
+ proxy_pass http://unix:$LT_DIR/libretranslate.sock;
+ }
+}