From 4381a854177c5c79fe867c63a0c9b432aba25d8d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?E=CC=81ric=20Gaspar?= <46165813+ericgaspar@users.noreply.github.com> Date: Wed, 5 Apr 2023 11:20:59 +0200 Subject: [PATCH] cleaning --- .travis.yml | 7 ------- conf/nginx.conf | 11 ++++++----- conf/systemd.service | 3 +-- doc/DESCRIPTION_fr.md | 1 + manifest.toml | 8 ++++++-- 5 files changed, 14 insertions(+), 16 deletions(-) delete mode 100644 .travis.yml create mode 100644 doc/DESCRIPTION_fr.md diff --git a/.travis.yml b/.travis.yml deleted file mode 100644 index 6133a24..0000000 --- a/.travis.yml +++ /dev/null @@ -1,7 +0,0 @@ -language: python - -before_install: - - git clone https://github.com/YunoHost/package_linter /tmp/package_linter - -script: -- /tmp/package_linter/package_linter.py ./ \ No newline at end of file diff --git a/conf/nginx.conf b/conf/nginx.conf index dab67bd..abafaa1 100644 --- a/conf/nginx.conf +++ b/conf/nginx.conf @@ -1,10 +1,11 @@ +#sub_path_only rewrite ^__PATH__$ __PATH__/ permanent; location __PATH__/ { - proxy_set_header Host 127.0.0.1; - proxy_set_header X-Real-IP $remote_addr; - proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for; - proxy_set_header X-Forwarded-Proto $scheme; - proxy_pass http://127.0.0.1:__PORT_GUI__/; + proxy_pass http://127.0.0.1:__PORT_GUI__/; + proxy_set_header Host $host; + proxy_set_header X-Real-IP $remote_addr; + proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for; + proxy_set_header X-Forwarded-Proto $scheme; proxy_read_timeout 600s; proxy_send_timeout 600s; diff --git a/conf/systemd.service b/conf/systemd.service index bf5bf9f..82e0c2e 100644 --- a/conf/systemd.service +++ b/conf/systemd.service @@ -1,6 +1,5 @@ [Unit] -Description=Syncthing - Open Source Continuous File Synchronization for %I -Documentation=man:syncthing(1) +Description=Syncthing: Continuous File Synchronization After=network.target [Service] diff --git a/doc/DESCRIPTION_fr.md b/doc/DESCRIPTION_fr.md new file mode 100644 index 0000000..364e73b --- /dev/null +++ b/doc/DESCRIPTION_fr.md @@ -0,0 +1 @@ +Syncthing est un programme de synchronisation continue de fichiers. Il synchronise les fichiers entre deux ou plusieurs ordinateurs en temps réel, en toute sécurité à l'abri des regards indiscrets. Vos données sont vos seules données et vous méritez de choisir où elles sont stockées, si elles sont partagées avec un tiers et comment elles sont transmises sur Internet. \ No newline at end of file diff --git a/manifest.toml b/manifest.toml index 7103767..378d9a1 100644 --- a/manifest.toml +++ b/manifest.toml @@ -42,13 +42,17 @@ ram.runtime = "50M" arm64.sha256 = "91bc4211df65689aed4739aabd3d409791d55b01ced31e10fac385ed15647942" amd64.url = "https://github.com/syncthing/syncthing/releases/download/v1.23.2/syncthing-linux-amd64-v1.23.2.tar.gz" amd64.sha256 = "752d4df7c38789e0aff0f82194878ccbb7c8f2e18c1599aa817e3ecc517597e2" - armel.url = "https://github.com/syncthing/syncthing/releases/download/v1.23.2/syncthing-linux-arm-v1.23.2.tar.gz" - armel.sha256 = "5309cfe6575d8fb86bd623937e3bbe66cb5c22be12722c57da8c3d32765cd931" armhf.url = "https://github.com/syncthing/syncthing/releases/download/v1.23.2/syncthing-linux-arm-v1.23.2.tar.gz" armhf.sha256 = "5309cfe6575d8fb86bd623937e3bbe66cb5c22be12722c57da8c3d32765cd931" i386.url = "https://github.com/syncthing/syncthing/releases/download/v1.23.2/syncthing-linux-386-v1.23.2.tar.gz" i386.sha256 = "7ba020603ead83afc6f43e0dbf59e33832414bdd055c608abc05d33d73f66757" + autoupdate.strategy = "latest_github_release" + autoupdate.asset.arm64 = "syncthing-linux-arm64-*.tar.gz" + autoupdate.asset.amd64 = "syncthing-linux-amd64-*.tar.gz" + autoupdate.asset.i386 = "syncthing-linux-386-*.tar.gz" + autoupdate.asset.armhf = "syncthing-linux-arm-*.tar.gz" + [resources.ports] main.default = 22000 main.exposed = "TCP"