25 lines
669 B
Text
Executable file
25 lines
669 B
Text
Executable file
# nextcloud.gaems.at
|
|
server {
|
|
listen 443 ssl;
|
|
server_name nextcloud.gaems.at;
|
|
|
|
ssl_certificate /etc/letsencrypt/live/gaems.at/fullchain.pem;
|
|
ssl_certificate_key /etc/letsencrypt/live/gaems.at/privkey.pem;
|
|
|
|
location / {
|
|
proxy_pass http://nextcloud:80;
|
|
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 $https;
|
|
|
|
# Performance for Nextcloud
|
|
client_max_body_size 512M;
|
|
gzip on;
|
|
gzip_vary on;
|
|
gzip_comp_level 5;
|
|
gzip_min_length 256;
|
|
gzip_proxied any;
|
|
gzip_types application/json application/javascript text/css text/xml;
|
|
}
|
|
}
|