- 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_flag_t   show_version_in_header;
    00048     ngx_str_t    environment;
    00049     ngx_str_t    user;
    00050     ngx_str_t    group;
    00051     ngx_str_t    spawn_method;
    00052     ngx_str_t    app_group_name;
    00053     ngx_str_t    app_rights;
    00054     ngx_int_t    min_instances;
    00055     ngx_int_t    framework_spawner_idle_time;
    00056     ngx_int_t    app_spawner_idle_time;
    00057     ngx_str_t    union_station_key;
    00058     ngx_array_t *base_uris;
    00059
    00060     /************************************/
    00061 } passenger_loc_conf_t;
    00062
    00063 typedef struct {
    00064     ngx_str_t    root_dir;
    00065     ngx_str_t    ruby;
    00066     ngx_int_t    log_level;
    00067     ngx_str_t    debug_log_file;
    00068     ngx_flag_t   abort_on_startup_error;
    00069     ngx_uint_t   max_pool_size;
    00070     ngx_uint_t   max_instances_per_app;
    00071     ngx_uint_t   pool_idle_time;
    00072     ngx_flag_t   user_switching;
    00073     ngx_str_t    default_user;
    00074     ngx_str_t    default_group;
    00075     ngx_str_t    analytics_log_dir;
    00076     ngx_str_t    analytics_log_user;
    00077     ngx_str_t    analytics_log_group;
    00078     ngx_str_t    analytics_log_permissions;
    00079     ngx_str_t    union_station_gateway_address;
    00080     ngx_uint_t   union_station_gateway_port;
    00081     ngx_str_t    union_station_gateway_cert;
    00082     ngx_array_t *prestart_uris;
    00083 } passenger_main_conf_t;
    00084
    00085 extern const ngx_command_t   passenger_commands[];
    00086 extern passenger_main_conf_t passenger_main_conf;
    00087
    00088 void *passenger_create_main_conf(ngx_conf_t *cf);
    00089 char *passenger_init_main_conf(ngx_conf_t *cf, void *conf_pointer);
    00090 void *passenger_create_loc_conf(ngx_conf_t *cf);
    00091 char *passenger_merge_loc_conf(ngx_conf_t *cf, void *parent, void *child);
    00092
    00093 #endif /* _PASSENGER_NGINX_CONFIGURATION_H_ */
    00094