Nextcloud / nginx.conf
t
msg
9b4b03c
raw
history blame contribute delete
817 Bytes
events {}
http {
include /etc/nginx/mime.types;
server {
listen 7860;
# -------- Nextcloud --------
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;
}
# -------- Cockpit --------
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";
}
}
}