| events {} |
|
|
| http { |
| include /etc/nginx/mime.types; |
|
|
| server { |
| listen 7860; |
|
|
| |
| root /var/www/nextcloud; |
| index index.php; |
|
|
| location / { |
| try_files $uri $uri/ /index.php; |
| } |
|
|
| location ~ \.php$ { |
| include fastcgi_params; |
| fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name; |
| fastcgi_pass unix:/run/php/php8.1-fpm.sock; |
| } |
|
|
| |
| location /cockpit/ { |
| proxy_pass http://127.0.0.1:9090/; |
| proxy_http_version 1.1; |
| proxy_buffering off; |
|
|
| proxy_set_header Host $host; |
| proxy_set_header Upgrade $http_upgrade; |
| proxy_set_header Connection "upgrade"; |
| } |
| } |
| } |
|
|
|
|