From 1a76dbc0793c39be0fe8c88d807d1127ce5d172e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?E=CC=81ric=20Gaspar?= <46165813+ericgaspar@users.noreply.github.com> Date: Tue, 24 Oct 2023 09:02:36 +0200 Subject: [PATCH] cleaning --- conf/nginx.conf | 8 +------- conf/systemd.service | 3 +-- 2 files changed, 2 insertions(+), 9 deletions(-) diff --git a/conf/nginx.conf b/conf/nginx.conf index f4c08bd..2830319 100644 --- a/conf/nginx.conf +++ b/conf/nginx.conf @@ -1,5 +1,6 @@ location __PATH__/ { + proxy_pass http://127.0.0.1:__PORT__; proxy_http_version 1.1; proxy_set_header Host $host; proxy_set_header Upgrade $http_upgrade; @@ -8,19 +9,12 @@ location __PATH__/ { proxy_set_header X-Forwarded-Proto $scheme; proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for; - proxy_pass http://127.0.0.1:__PORT__; - client_max_body_size 100M; - # Include SSOWAT user panel. - include conf.d/yunohost_panel.conf.inc; - - # fix "[warn] could not build optimal proxy_headers_hash error" proxy_headers_hash_max_size 512; proxy_headers_hash_bucket_size 128; - # media caching stuff # https://docs.gotosocial.org/en/latest/advanced/caching/assets-media/#nginx location /assets/ { diff --git a/conf/systemd.service b/conf/systemd.service index efc257a..8600e4c 100644 --- a/conf/systemd.service +++ b/conf/systemd.service @@ -4,14 +4,13 @@ After=network.target postgresql.service nginx.service [Service] Type=exec -Restart=on-failure - User=__APP__ Group=__APP__ WorkingDirectory=__INSTALL_DIR__/ ExecStart=__INSTALL_DIR__/gotosocial --config-path config.yaml server start StandardOutput=append:/var/log/__APP__/__APP__.log StandardError=inherit +Restart=on-failure # Sandboxing options to harden security # Depending on specificities of your service/app, you may need to tweak these