feat/reverb (#20)
Co-authored-by: jon brookes <marshyon@gmail.com> Reviewed-on: https://codeberg.org/headshed/share-lt/pulls/20
This commit is contained in:
parent
74bc17d019
commit
21147af908
30 changed files with 1948 additions and 29 deletions
|
|
@ -9,6 +9,25 @@ server {
|
|||
# access_log /var/log/nginx/access.log;
|
||||
access_log /dev/stdout;
|
||||
root /var/www/public;
|
||||
|
||||
|
||||
location ~ ^/(app|apps) {
|
||||
proxy_http_version 1.1;
|
||||
proxy_set_header Host $host;
|
||||
proxy_set_header Upgrade $http_upgrade;
|
||||
proxy_set_header Connection "Upgrade";
|
||||
|
||||
# This is the "Don't Crash" magic for Reverb
|
||||
# It tells Reverb the original connection was HTTPS
|
||||
proxy_set_header X-Forwarded-Proto https;
|
||||
proxy_set_header X-Real-IP $remote_addr;
|
||||
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
|
||||
|
||||
# Forward to Reverb's internal port
|
||||
proxy_pass http://127.0.0.1:9001;
|
||||
}
|
||||
|
||||
|
||||
location ~ \.php$ {
|
||||
try_files $uri =404;
|
||||
fastcgi_split_path_info ^(.+\.php)(/.+)$;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue