comparison docs/setup.rst @ 3850:7a4df261a375 beta

added alias configuration option for gists. Used to generate nice looking urls for gists
author Marcin Kuzminski <marcin@python-works.com>
date Sun, 12 May 2013 16:58:01 +0200
parents 6bad83d27fc1
children eae62e28343e
comparison
equal deleted inserted replaced
3849:b4fc29a051ae 3850:7a4df261a375
532 # add more instances for load balancing 532 # add more instances for load balancing
533 #server 127.0.0.1:5001; 533 #server 127.0.0.1:5001;
534 #server 127.0.0.1:5002; 534 #server 127.0.0.1:5002;
535 } 535 }
536 536
537 ## gist alias
538 server {
539 listen 443;
540 server_name gist.myserver.com;
541 access_log /var/log/nginx/gist.access.log;
542 error_log /var/log/nginx/gist.error.log;
543
544 ssl on;
545 ssl_certificate gist.rhodecode.myserver.com.crt;
546 ssl_certificate_key gist.rhodecode.myserver.com.key;
547
548 ssl_session_timeout 5m;
549
550 ssl_protocols SSLv3 TLSv1;
551 ssl_ciphers DHE-RSA-AES256-SHA:DHE-RSA-AES128-SHA:EDH-RSA-DES-CBC3-SHA:AES256-SHA:DES-CBC3-SHA:AES128-SHA:RC4-SHA:RC4-MD5;
552 ssl_prefer_server_ciphers on;
553
554 location / {
555 rewrite ^/(.*) https://rhodecode.myserver.com/_admin/gists/$1;
556 }
557 }
558
537 server { 559 server {
538 listen 443; 560 listen 443;
539 server_name rhodecode.myserver.com; 561 server_name rhodecode.myserver.com;
540 access_log /var/log/nginx/rhodecode.access.log; 562 access_log /var/log/nginx/rhodecode.access.log;
541 error_log /var/log/nginx/rhodecode.error.log; 563 error_log /var/log/nginx/rhodecode.error.log;
548 570
549 ssl_protocols SSLv3 TLSv1; 571 ssl_protocols SSLv3 TLSv1;
550 ssl_ciphers DHE-RSA-AES256-SHA:DHE-RSA-AES128-SHA:EDH-RSA-DES-CBC3-SHA:AES256-SHA:DES-CBC3-SHA:AES128-SHA:RC4-SHA:RC4-MD5; 572 ssl_ciphers DHE-RSA-AES256-SHA:DHE-RSA-AES128-SHA:EDH-RSA-DES-CBC3-SHA:AES256-SHA:DES-CBC3-SHA:AES128-SHA:RC4-SHA:RC4-MD5;
551 ssl_prefer_server_ciphers on; 573 ssl_prefer_server_ciphers on;
552 574
553 # uncomment if you have nginx with chunking module compiled 575 ## uncomment root directive if you want to serve static files by nginx
554 # fixes the issues of having to put postBuffer data for large git 576 ## requires static_files = false in .ini file
555 # pushes
556 #chunkin on;
557 #error_page 411 = @my_411_error;
558 #location @my_411_error {
559 # chunkin_resume;
560 #}
561
562 # uncomment if you want to serve static files by nginx
563 #root /path/to/installation/rhodecode/public; 577 #root /path/to/installation/rhodecode/public;
564 578
565 location / { 579 location / {
566 try_files $uri @rhode; 580 try_files $uri @rhode;
567 } 581 }
589 proxy_connect_timeout 7200; 603 proxy_connect_timeout 7200;
590 proxy_send_timeout 7200; 604 proxy_send_timeout 7200;
591 proxy_read_timeout 7200; 605 proxy_read_timeout 7200;
592 proxy_buffers 8 32k; 606 proxy_buffers 8 32k;
593 607
594 Also, when using root path with nginx you might set the static files to false
595 in the production.ini file::
596
597 [app:main]
598 use = egg:rhodecode
599 full_stack = true
600 static_files = false
601 lang=en
602 cache_dir = %(here)s/data
603
604 In order to not have the statics served by the application. This improves speed.
605
606 608
607 Apache virtual host reverse proxy example 609 Apache virtual host reverse proxy example
608 ----------------------------------------- 610 -----------------------------------------
609 611
610 Here is a sample configuration file for apache using proxy:: 612 Here is a sample configuration file for apache using proxy::