1
0
Fork 0
mirror of https://github.com/YunoHost-Apps/diaspora_ynh.git synced 2024-09-03 18:26:13 +02:00
diaspora_ynh/conf/nginx.conf
Augustin Trancart 16d1654d13 Remove the possibility to install in path, not supported upstream
from an irc conv on #diaspora:

17:38 <autra>  hi! Can I run diaspora on a context_path, meaning on https://domain.tld/diaspora for instance? Or can I only do it on diaspora.domain.tld?
17:46 <jhass> unfortunately only the latter is really supported
2020-05-05 21:53:40 +02:00

33 lines
771 B
Nginx Configuration File

# Proxy if requested file not found
location / {
root __FINALPATH__/diaspora/public;
# Configure maximum picture size
# Note that Diaspora has a client side check set at 4M
client_max_body_size 5M;
client_body_buffer_size 256K;
# Proxy if requested file not found
try_files $uri @diaspora;
location /assets/ {
expires max;
more_set_headers 'Cache-Control: public';
}
# Include SSOWAT user panel.
# TODO check that
include conf.d/yunohost_panel.conf.inc;
}
location @diaspora {
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 https;
proxy_set_header Host $http_host;
proxy_redirect off;
proxy_pass http://unix:/run/__NAME__/diaspora.sock;
}