G2A Many GEOs
SHARE
TWEET

Untitled

a guest May 14th, 2020 24 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. nginx **************************************
  2. server {
  3.     listen nginx-ip:443 ssl http2;
  4.     server_name sync.domain.com;
  5.  
  6.     ssl_certificate /opt/ssl/sync.domain.com/server_chained.crt;
  7.     ssl_certificate_key /opt/ssl/sync.domain.com/server.key;
  8.  
  9.     proxy_set_header X-Forwarded-For $remote_addr;
  10. #    add_header Strict-Transport-Security "max-age=31536000; includeSubdomains";
  11.  
  12.     location / {
  13.         proxy_pass         http://seafile-ip:8001;
  14.         proxy_set_header   Host $host;
  15.         proxy_set_header   X-Real-IP $remote_addr;
  16.         proxy_set_header   X-Forwarded-For $proxy_add_x_forwarded_for;
  17.         proxy_set_header   X-Forwarded-Host $server_name;
  18.         proxy_set_header   X-Forwarded-Proto https;
  19.         proxy_http_version 1.1;
  20.         proxy_connect_timeout 36000s;
  21.         proxy_read_timeout  36000s;
  22.         proxy_send_timeout 36000s;
  23.         send_timeout 36000s;
  24.         client_max_body_size 0;
  25.  
  26.         access_log      /var/log/nginx/seafile.seahub.access.log;
  27.         error_log       /var/log/nginx/seafile.seahub.error.log;
  28.     }
  29.  
  30.     location /seafhttp {
  31.         rewrite ^/seafhttp(.*)$ $1 break;
  32.         proxy_pass http://seafile-ip:8081;
  33.         proxy_set_header   X-Forwarded-For $proxy_add_x_forwarded_for;
  34.         proxy_http_version 1.1;
  35.         proxy_request_buffering off;
  36.         proxy_connect_timeout  36000s;
  37.         proxy_read_timeout  36000s;
  38.         proxy_send_timeout  36000s;
  39.         send_timeout  36000s;
  40.         client_max_body_size 0;
  41.  
  42.         access_log      /var/log/nginx/seafile.seafhttp.access.log;
  43.         error_log       /var/log/nginx/seafile.seafhttp.error.log;
  44.     }
  45.  
  46.     location /webdav {
  47.         proxy_pass         http://seafile-ip:8080;
  48.         proxy_set_header   Host $host;
  49.         proxy_set_header   X-Real-IP $remote_addr;
  50.         proxy_set_header   X-Forwarded-For $proxy_add_x_forwarded_for;
  51.         proxy_set_header   X-Forwarded-Host $server_name;
  52.         proxy_set_header   X-Forwarded-Proto https;
  53.         proxy_http_version 1.1;
  54.         proxy_request_buffering off;
  55.         proxy_connect_timeout  36000s;
  56.         proxy_read_timeout  36000s;
  57.         proxy_send_timeout  36000s;
  58.         send_timeout  36000s;
  59.         client_max_body_size 0;
  60.  
  61.         access_log      /var/log/nginx/seafile.seafdav.access.log;
  62.         error_log       /var/log/nginx/seafile.seafdav.error.log;
  63.     }
  64.  
  65.     location /media {
  66.         proxy_pass http://seafile-ip:8001;
  67.  
  68.         access_log      /var/log/nginx/seafile.media.access.log;
  69.         error_log       /var/log/nginx/seafile.media.error.log;
  70.     }
  71. }
  72.  
  73. ccnet.conf *********************************
  74. SERVICE_URL = https://sync.domain.com
  75.  
  76. gunicorn.conf ******************************
  77. import os
  78.  
  79. daemon = True
  80. workers = 5
  81.  
  82. # default localhost:8000
  83. bind = "0.0.0.0:8001"
  84.  
  85. # Pid
  86. pids_dir = '/opt/seafile/pids'
  87. pidfile = os.path.join(pids_dir, 'seahub.pid')
  88.  
  89. # for file upload, we need a longer timeout value (default is only 30s, too short)
  90. timeout = 1200
  91.  
  92. limit_request_line = 8190
  93.  
  94. seafdav.conf *******************************
  95. [WEBDAV]
  96. enabled = true
  97. port = 8080
  98. fastcgi = false
  99. share_name = /webdav
  100.  
  101. seafile.conf *******************************
  102. [fileserver]
  103. host = 0.0.0.0
  104. port = 8081
  105.  
  106. seahub_settings.py *************************
  107. FILE_SERVER_ROOT = 'https://sync.ledoktre.com/seafhttp'
  108. CLOUD_MODE = False
RAW Paste Data
Ledger Nano X - The secure hardware wallet
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
Top