Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- server {
- server_name openmediavault-webgui;
- root /var/www/openmediavault;
- index index.php;
- autoindex off;
- server_tokens off;
- sendfile on;
- large_client_header_buffers 4 32k;
- client_max_body_size 25M;
- error_log /var/log/nginx/openmediavault-webgui_error.log error;
- access_log /var/log/nginx/openmediavault-webgui_access.log combined;
- error_page 404 = /404.php;
- location /404.html {
- internal;
- }
- location /extjs6/ {
- alias /usr/share/javascript/extjs6/;
- expires 2d;
- }
- location ~ ^/(css|fonts|js|images)/ {
- expires 2d;
- }
- location /favicon {
- expires 14d;
- }
- location ~ \.php$ {
- try_files $uri =404;
- fastcgi_split_path_info ^(.+\.php)(/.+)$;
- fastcgi_pass unix:/var/run/php-fpm-openmediavault-webgui.sock;
- fastcgi_index index.php;
- fastcgi_read_timeout 60s;
- include fastcgi.conf;
- fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;
- }
- listen [::]:80 ipv6only=off;
- if ($scheme = http) {
- # Force redirection to HTTPS.
- return 301 https://$host:443$request_uri;
- }
- location ~ \.(?:css|js|woff2?|svg|gif|png|html|ttf|ico|jpg|jpeg)$ {
- try_files $uri /index.php$request_uri;
- access_log off;
- expires 360d;
- }
- location ~* \.(?:svg|gif|png|html|ttf|woff|ico|jpg|jpeg)$ {
- try_files $uri /index.php$uri$is_args$args;
- access_log off;
- }
- listen [::]:443 ipv6only=off ssl deferred;
- xxx.crt;
- xxx.key;
- include /etc/nginx/openmediavault-webgui.d/*.conf;
- location /Nextcloud1/ {
- proxy_pass https://10.0.0.2:9443/;
- 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_set_header X-Forwarded-Proto https;
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement