load_module /usr/local/lib/ngx_rtmp_module.so; worker_processes 1; events { worker_connections 1024; } rtmp { server { listen 1935; chunk_size 4096; application live { live on; record off; } } } http { disable_symlinks off; include mime.types; default_type application/octet-stream; sendfile on; keepalive_timeout 65; gzip on; charset utf-8; upstream php-handler { server unix:/run/php-fpm.sock; } server { listen 80; server_name heavenisin.space; index index.html; include common.conf; root /var/www/heavenisin.space/; location /temp { alias /tmp/hosting/; } } server { listen 80; server_name bussyslayer69.gay; index index.html; include common.conf; root /var/www/bussyslayer69.gay/; } server { listen 81; listen [::]:81; root /media/store/nextcloud/; client_max_body_size 512M; fastcgi_buffers 64 8K; fastcgi_read_timeout 5m; add_header X-Content-Type-Options nosniff; add_header X-XSS-Protection "1; mode=block"; add_header X-Robots-Tag none; add_header X-Download-Options noopen; add_header X-Permitted-Cross-Domain-Policies none; add_header X-Frame-Options sameorigin; location = /robots.txt { allow all; log_not_found off; access_log off; } location / { rewrite ^ /index.php$request_uri; } location ~ ^/(?:index|remote|public|cron|core/ajax/update|status|ocs/v[12]|updater/.+|ocs-provider/.+)\.php(?:$|/) { fastcgi_split_path_info ^(.+\.php)(/.*)$; include fastcgi_params; fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name; fastcgi_param PATH_INFO $fastcgi_path_info; fastcgi_param modHeadersAvailable true; fastcgi_param front_controller_active true; fastcgi_pass php-handler; fastcgi_intercept_errors on; fastcgi_request_buffering off; } location ~ ^/(?:updater|ocs-provider)(?:$|/) { try_files $uri/ =404; index index.php; } location ~ \.(?:css|js|woff|svg|gif)$ { try_files $uri /index.php$request_uri; add_header Cache-Control "public, max-age=15778463"; add_header X-Content-Type-Options nosniff; add_header X-XSS-Protection "1; mode=block"; add_header X-Robots-Tag none; add_header X-Download-Options noopen; add_header X-Permitted-Cross-Domain-Policies none; access_log off; } location ~ \.(?:png|html|ttf|ico|jpg|jpeg)$ { try_files $uri /index.php$request_uri; # Optional: Don't log access to other assets access_log off; } } }