Created
May 9, 2015 14:30
-
-
Save nl0x/841fdc834214bde13ff0 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| server { | |
| listen 0.0.0.0:80; | |
| listen [::]:80; | |
| server_name seafile.chaotikum.org; | |
| return 301 https://seafile.chaotikum.org$request_uri; | |
| } | |
| server { | |
| listen 0.0.0.0:443 ssl; | |
| listen [::]:443 ssl; | |
| server_tokens off; | |
| # force TLS | |
| add_header Strict-Transport-Security max-age=31536000; | |
| add_header X-Frame-Options DENY; | |
| ssl_protocols TLSv1 TLSv1.1 TLSv1.2; | |
| ssl_prefer_server_ciphers on; | |
| ssl_session_timeout 5m; | |
| ssl_ciphers ECDH+AESGCM:DH+AESGCM:ECDH+AES256:DH+AES256:ECDH+AES128:DH+AES:ECDH+3DES:DH+3DES:RSA+AESGCM:RSA+AES:RSA+3DES:!aNULL:!MD5:!DSS; | |
| ssl_certificate /etc/ssl/private/seafile.chaotikum.org.cert.bundle; | |
| ssl_certificate_key /etc/ssl/private/seafile.chaotikum.org.privkey.pem; | |
| server_name files.metameute.de; | |
| location / { | |
| fastcgi_pass 192.168.1.11:8000; | |
| fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name; | |
| fastcgi_param PATH_INFO $fastcgi_script_name; | |
| fastcgi_param SERVER_PROTOCOL $server_protocol; | |
| fastcgi_param QUERY_STRING $query_string; | |
| fastcgi_param REQUEST_METHOD $request_method; | |
| fastcgi_param CONTENT_TYPE $content_type; | |
| fastcgi_param CONTENT_LENGTH $content_length; | |
| fastcgi_param SERVER_ADDR $server_addr; | |
| fastcgi_param SERVER_PORT $server_port; | |
| fastcgi_param SERVER_NAME $server_name; | |
| } | |
| location /seafhttp { | |
| rewrite ^/seafhttp(.*)$ $1 break; | |
| proxy_pass http://192.168.1.11:8082; | |
| client_max_body_size 0; | |
| proxy_connect_timeout 36000s; | |
| proxy_read_timeout 36000s; | |
| } | |
| location /media { | |
| proxy_pass http://[2a01:4f8:160:3067::b] | |
| } | |
| } |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment