Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- nginx **************************************
- server {
- listen nginx-ip:443 ssl http2;
- server_name sync.domain.com;
- ssl_certificate /opt/ssl/sync.domain.com/server_chained.crt;
- ssl_certificate_key /opt/ssl/sync.domain.com/server.key;
- proxy_set_header X-Forwarded-For $remote_addr;
- # add_header Strict-Transport-Security "max-age=31536000; includeSubdomains";
- location / {
- proxy_pass http://seafile-ip:8001;
- 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-Host $server_name;
- proxy_set_header X-Forwarded-Proto https;
- proxy_http_version 1.1;
- proxy_connect_timeout 36000s;
- proxy_read_timeout 36000s;
- proxy_send_timeout 36000s;
- send_timeout 36000s;
- client_max_body_size 0;
- access_log /var/log/nginx/seafile.seahub.access.log;
- error_log /var/log/nginx/seafile.seahub.error.log;
- }
- location /seafhttp {
- rewrite ^/seafhttp(.*)$ $1 break;
- proxy_pass http://seafile-ip:8081;
- proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
- proxy_http_version 1.1;
- proxy_request_buffering off;
- proxy_connect_timeout 36000s;
- proxy_read_timeout 36000s;
- proxy_send_timeout 36000s;
- send_timeout 36000s;
- client_max_body_size 0;
- access_log /var/log/nginx/seafile.seafhttp.access.log;
- error_log /var/log/nginx/seafile.seafhttp.error.log;
- }
- location /webdav {
- proxy_pass http://seafile-ip:8080;
- 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-Host $server_name;
- proxy_set_header X-Forwarded-Proto https;
- proxy_http_version 1.1;
- proxy_request_buffering off;
- proxy_connect_timeout 36000s;
- proxy_read_timeout 36000s;
- proxy_send_timeout 36000s;
- send_timeout 36000s;
- client_max_body_size 0;
- access_log /var/log/nginx/seafile.seafdav.access.log;
- error_log /var/log/nginx/seafile.seafdav.error.log;
- }
- location /media {
- proxy_pass http://seafile-ip:8001;
- access_log /var/log/nginx/seafile.media.access.log;
- error_log /var/log/nginx/seafile.media.error.log;
- }
- }
- ccnet.conf *********************************
- SERVICE_URL = https://sync.domain.com
- gunicorn.conf ******************************
- import os
- daemon = True
- workers = 5
- # default localhost:8000
- bind = "0.0.0.0:8001"
- # Pid
- pids_dir = '/opt/seafile/pids'
- pidfile = os.path.join(pids_dir, 'seahub.pid')
- # for file upload, we need a longer timeout value (default is only 30s, too short)
- timeout = 1200
- limit_request_line = 8190
- seafdav.conf *******************************
- [WEBDAV]
- enabled = true
- port = 8080
- fastcgi = false
- share_name = /webdav
- seafile.conf *******************************
- [fileserver]
- host = 0.0.0.0
- port = 8081
- seahub_settings.py *************************
- FILE_SERVER_ROOT = 'https://sync.ledoktre.com/seafhttp'
- CLOUD_MODE = False
Add Comment
Please, Sign In to add comment