| 1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980 |
- server {
- listen 80;
- server_name _;
- location = /fb-oo-hook.js {
- alias /etc/nginx/conf.d/fb-oo-hook.js;
- default_type application/javascript;
- add_header Cache-Control "no-store";
- }
- location = /fb-brand-hook.js {
- alias /etc/nginx/conf.d/fb-brand-hook.js;
- default_type application/javascript;
- add_header Cache-Control "no-store";
- }
- location = /fb-theme-hook.js {
- alias /etc/nginx/conf.d/fb-theme-hook.js;
- default_type application/javascript;
- add_header Cache-Control "no-store";
- }
- location = /fb-search.js {
- alias /etc/nginx/conf.d/fb-search.js;
- default_type application/javascript;
- add_header Cache-Control "no-store";
- }
- location = /fb-root-filter.js {
- alias /etc/nginx/conf.d/fb-root-filter.js;
- default_type application/javascript;
- add_header Cache-Control "no-store";
- }
- location = /fb-theme.css {
- alias /etc/nginx/conf.d/fb-theme.css;
- default_type text/css;
- add_header Cache-Control "no-store";
- }
- location = /fb-search.css {
- alias /etc/nginx/conf.d/fb-search.css;
- default_type text/css;
- add_header Cache-Control "no-store";
- }
- location = /search {
- alias /etc/nginx/conf.d/fb-search.html;
- default_type text/html;
- add_header Cache-Control "no-store";
- }
- location ~ ^/fb-wallpaper/(frappe|latte|macchiato|mocha|preview)\.webp$ {
- alias /etc/nginx/conf.d/$1.webp;
- default_type image/webp;
- add_header Cache-Control "no-store";
- }
- location = /fb-logo.png {
- alias /opt/fb-assets/log.png;
- default_type image/png;
- add_header Cache-Control "no-store";
- }
- location / {
- proxy_pass http://filebrowser:80;
- proxy_http_version 1.1;
- 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 3600;
- proxy_set_header Accept-Encoding "";
- sub_filter_once off;
- sub_filter_types text/html;
- sub_filter "</head>" "<style id=\"fb-prehide-native-brand\">header img[src*=\"/img/logo.svg\"]{opacity:0!important;}</style><link rel=\"stylesheet\" href=\"/fb-theme.css?v=20260306x2\"></head>";
- sub_filter "</body>" "<script src='/fb-oo-hook.js?v=20260306x11'></script><script src='/fb-brand-hook.js?v=20260306x11'></script><script src='/fb-theme-hook.js?v=20260306x11'></script><script src='/fb-root-filter.js?v=20260306y3'></script></body>";
- }
- }
|