nginx-configs/conf.d/nextcloud.conf

37 lines
858 B
Plaintext

upstream php-handler {
server unix:/var/run/php/php7.4-fpm.sock;
}
# Set the `immutable` cache control options only for assets with a cache busting `v` argument
map $arg_v $asset_immutable {
"" "";
default "immutable";
}
server {
listen 80;
server_name nc.vernccvbvyi5qhfzyqengccj7lkove6bjot2xhh5kajhwvidqafczrad.onion nextcloud.vernccvbvyi5qhfzyqengccj7lkove6bjot2xhh5kajhwvidqafczrad.onion;
include common/nextcloud.conf;
}
server {
listen 443 ssl http2;
server_name nc.vern.cc nextcloud.vern.cc;
include snippets/lets-encrypt.conf;
include common/nextcloud.conf;
}
server {
listen 80;
listen [::]:80;
return 301 https://$host$request_uri;
server_name nc.vern.cc nextcloud.vern.cc;
}
server {
listen 11047;
listen [::]:11047;
server_name vernzluj2od67vbf5drxxrhzekslgxnym7zc3mxgx7tfqndgedha.b32.i2p;
include common/nextcloud.conf;
}