.. _setup:
Setup
=====
Setting up RhodeCode
--------------------------
--------------------
First, you will need to create a RhodeCode configuration file. Run the
following command to do this::
paster make-config RhodeCode production.ini
- This will create the file `production.ini` in the current directory. This
configuration file contains the various settings for RhodeCode, e.g proxy
port, email settings, usage of static files, cache, celery settings and
logging.
@@ -363,26 +363,26 @@ In order to start using celery run::
.. note::
Make sure you run this command from the same virtualenv, and with the same
user that rhodecode runs.
HTTPS support
-------------
There are two ways to enable https:
- Set HTTP_X_URL_SCHEME in your http server headers, than rhodecode will
recognize this headers and make proper https redirections
- Alternatively, set the `force_https = true` in the ini configuration to force
using https, no headers are needed than to enable https
- Alternatively, change the `force_https = true` flag in the ini configuration
to force using https, no headers are needed than to enable https
Nginx virtual host example
Sample config for nginx using proxy::
server {
listen 80;
server_name hg.myserver.com;
access_log /var/log/nginx/rhodecode.access.log;
error_log /var/log/nginx/rhodecode.error.log;
Status change: