Skip to content

Instantly share code, notes, and snippets.

View xxblx's full-sized avatar

Oleg Kozlov xxblx

View GitHub Profile
upstream php-fpm {
server unix:/run/php-fpm/www.sock;
}
@xxblx
xxblx / nextcloud.conf
Last active April 8, 2024 16:20
nextcloud nginx config
upstream php-handler {
server unix:/run/php-fpm/www.sock;
}
server {
#listen 443 ssl;
listen 80;
server_name 192.168.1.8;
#ssl_certificate /etc/ssl/nginx/cloud.example.com.crt;
create database nextcloud;
create user nextclouduser@localhost identified by 'password';
grant all privileges on nextcloud.* to nextclouduser@localhost identified by 'password';
flush privileges;
exit;