70 lines
2.1 KiB
Plaintext
70 lines
2.1 KiB
Plaintext
server {
|
|
listen 80;
|
|
listen [::]:80;
|
|
server_name opencloud.ascoetpi.ovh;
|
|
return 301 https://$host$request_uri;
|
|
}
|
|
server {
|
|
listen 443 ssl;
|
|
listen [::]:443 ssl;
|
|
server_name opencloud.ascoetpi.ovh;
|
|
ssl_certificate /etc/nginx/ssl/opencloud.ascoetpi.ovh_P256/fullchain.cer;
|
|
ssl_certificate_key /etc/nginx/ssl/opencloud.ascoetpi.ovh_P256/private.key;
|
|
http2_max_concurrent_streams 512;
|
|
|
|
location / {
|
|
proxy_pass https://127.0.0.1:9200;
|
|
|
|
proxy_http_version 1.1;
|
|
proxy_set_header Connection "";
|
|
|
|
proxy_ssl_verify off;
|
|
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 Accept-Encoding "";
|
|
|
|
proxy_buffering off;
|
|
proxy_request_buffering off;
|
|
|
|
proxy_read_timeout 3600s;
|
|
proxy_send_timeout 3600s;
|
|
keepalive_timeout 3600s;
|
|
keepalive_requests 100000;
|
|
|
|
proxy_next_upstream off;
|
|
|
|
client_max_body_size 10M;
|
|
}
|
|
|
|
# --------------------------------------
|
|
# RADICALE CalDAV
|
|
# --------------------------------------
|
|
location /caldav/ {
|
|
proxy_pass http://127.0.0.1:5232/;
|
|
proxy_set_header X-Script-Name /caldav;
|
|
proxy_set_header X-Remote-User $http_x_remote_user;
|
|
proxy_set_header Host $host;
|
|
proxy_http_version 1.1;
|
|
proxy_buffering off;
|
|
}
|
|
# --------------------------------------
|
|
# RADICALE CardDAV
|
|
# --------------------------------------
|
|
location /carddav/ {
|
|
proxy_pass http://127.0.0.1:5232/;
|
|
proxy_set_header X-Script-Name /carddav;
|
|
proxy_set_header X-Remote-User $http_x_remote_user;
|
|
proxy_set_header Host $host;
|
|
proxy_http_version 1.1;
|
|
proxy_buffering off;
|
|
}
|
|
location ~ /.well-known/acme-challenge {
|
|
proxy_set_header Host $host;
|
|
proxy_set_header X-Real_IP $remote_addr;
|
|
proxy_set_header X-Forwarded-For $remote_addr:$remote_port;
|
|
proxy_pass http://127.0.0.1:9180;
|
|
}
|
|
} |