- Main Page
- Modules
- Namespaces
- Classes
- Files

- File List

# Configuration.h

    00001 /*
    00002  * Copyright (C) Igor Sysoev
    00003  * Copyright (C) 2007 Manlio Perillo (manlio.perillo@gmail.com)
    00004  * Copyright (C) 2010 Phusion
    00005  *
    00006  * Redistribution and use in source and binary forms, with or without
    00007  * modification, are permitted provided that the following conditions
    00008  * are met:
    00009  * 1. Redistributions of source code must retain the above copyright
    00010  *    notice, this list of conditions and the following disclaimer.
    00011  * 2. Redistributions in binary form must reproduce the above copyright
    00012  *    notice, this list of conditions and the following disclaimer in the
    00013  *    documentation and/or other materials provided with the distribution.
    00014  *
    00015  * THIS SOFTWARE IS PROVIDED BY AUTHOR AND CONTRIBUTORS ``AS IS'' AND
    00016  * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
    00017  * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
    00018  * ARE DISCLAIMED.  IN NO EVENT SHALL AUTHOR OR CONTRIBUTORS BE LIABLE
    00019  * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
    00020  * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
    00021  * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
    00022  * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
    00023  * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
    00024  * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
    00025  * SUCH DAMAGE.
    00026  */
    00027
    00028 #ifndef _PASSENGER_NGINX_CONFIGURATION_H_
    00029 #define _PASSENGER_NGINX_CONFIGURATION_H_
    00030
    00031 #include <ngx_config.h>
    00032 #include <ngx_http.h>
    00033
    00034 typedef struct {
    00035     ngx_http_upstream_conf_t upstream_config;
    00036     ngx_str_t    index;
    00037     ngx_array_t *flushes;
    00038     ngx_array_t *vars_len;
    00039     ngx_array_t *vars;
    00040     ngx_array_t *vars_source;
    00041
    00042     ngx_flag_t   enabled;
    00043     ngx_flag_t   use_global_queue;
    00044     ngx_flag_t   friendly_error_pages;
    00045     ngx_flag_t   analytics;
    00046     ngx_flag_t   debugger;
    00047     ngx_str_t    environment;
    00048     ngx_str_t    user;
    00049     ngx_str_t    group;
    00050     ngx_str_t    spawn_method;
    00051     ngx_str_t    app_group_name;
    00052     ngx_str_t    app_rights;
    00053     ngx_int_t    min_instances;
    00054     ngx_int_t    framework_spawner_idle_time;
    00055     ngx_int_t    app_spawner_idle_time;
    00056     ngx_array_t *base_uris;
    00057
    00058     /************************************/
    00059 } passenger_loc_conf_t;
    00060
    00061 typedef struct {
    00062     ngx_str_t    root_dir;
    00063     ngx_str_t    ruby;
    00064     ngx_uint_t   log_level;
    00065     ngx_uint_t   max_pool_size;
    00066     ngx_uint_t   max_instances_per_app;
    00067     ngx_uint_t   pool_idle_time;
    00068     ngx_flag_t   user_switching;
    00069     ngx_str_t    default_user;
    00070     ngx_str_t    default_group;
    00071     ngx_str_t    analytics_log_dir;
    00072     ngx_str_t    analytics_log_user;
    00073     ngx_str_t    analytics_log_group;
    00074     ngx_str_t    analytics_log_permissions;
    00075     ngx_array_t *prestart_uris;
    00076 } passenger_main_conf_t;
    00077
    00078 extern const ngx_command_t   passenger_commands[];
    00079 extern passenger_main_conf_t passenger_main_conf;
    00080
    00081 void *passenger_create_main_conf(ngx_conf_t *cf);
    00082 char *passenger_init_main_conf(ngx_conf_t *cf, void *conf_pointer);
    00083 void *passenger_create_loc_conf(ngx_conf_t *cf);
    00084 char *passenger_merge_loc_conf(ngx_conf_t *cf, void *parent, void *child);
    00085
    00086 #endif /* _PASSENGER_NGINX_CONFIGURATION_H_ */
    00087