00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017
00018
00019
00020
00021
00022
00023
00024
00025
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 union_station_support;
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 ngx_array_t *union_station_filters;
00060
00061
00062 } passenger_loc_conf_t;
00063
00064 typedef struct {
00065 ngx_str_t root_dir;
00066 ngx_str_t ruby;
00067 ngx_int_t log_level;
00068 ngx_str_t debug_log_file;
00069 ngx_flag_t abort_on_startup_error;
00070 ngx_uint_t max_pool_size;
00071 ngx_uint_t max_instances_per_app;
00072 ngx_uint_t pool_idle_time;
00073 ngx_flag_t user_switching;
00074 ngx_str_t default_user;
00075 ngx_str_t default_group;
00076 ngx_str_t analytics_log_dir;
00077 ngx_str_t analytics_log_user;
00078 ngx_str_t analytics_log_group;
00079 ngx_str_t analytics_log_permissions;
00080 ngx_str_t union_station_gateway_address;
00081 ngx_uint_t union_station_gateway_port;
00082 ngx_str_t union_station_gateway_cert;
00083 ngx_array_t *prestart_uris;
00084 } passenger_main_conf_t;
00085
00086 extern const ngx_command_t passenger_commands[];
00087 extern passenger_main_conf_t passenger_main_conf;
00088
00089 void *passenger_create_main_conf(ngx_conf_t *cf);
00090 char *passenger_init_main_conf(ngx_conf_t *cf, void *conf_pointer);
00091 void *passenger_create_loc_conf(ngx_conf_t *cf);
00092 char *passenger_merge_loc_conf(ngx_conf_t *cf, void *parent, void *child);
00093
00094 #endif
00095