-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
e751fc9
commit ce51947
Showing
9 changed files
with
272 additions
and
8 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,123 @@ | ||
########################################################################## | ||
# Passenger Standalone is built on the same technology that powers | ||
# Passenger for Nginx, so any configuration option supported by Passenger | ||
# for Nginx can be applied to Passenger Standalone as well. You can do | ||
# this by direct editing the Nginx configuration template that is used by | ||
# Passenger Standalone. | ||
# | ||
# This file is the original template. DO NOT EDIT THIS FILE DIRECTLY. | ||
# Instead, make a copy of this file and pass the `--nginx-config-template` | ||
# parameter to Passenger Standalone. | ||
# | ||
# Learn more about using the Nginx configuration template at: | ||
# https://www.phusionpassenger.com/library/config/standalone/intro.html#nginx-configuration-template | ||
# | ||
# *** NOTE *** | ||
# If you customize the template file, make sure you keep an eye on the | ||
# original template file and merge any changes. New Phusion Passenger | ||
# features may require changes to the template file. | ||
############################################################## | ||
|
||
master_process on; | ||
daemon on; | ||
error_log '/var/www/opd/log/passenger.3002.log' ; | ||
pid '/var/www/opd/tmp/pids/passenger.3002.pid'; | ||
|
||
|
||
worker_processes 1; | ||
events { | ||
worker_connections 4096; | ||
} | ||
|
||
http { | ||
log_format debug '[$time_local] $msec "$request" $status conn=$connection sent=$bytes_sent body_sent=$body_bytes_sent'; | ||
include '/home/justin/.rvm/gems/ruby-2.1.2/gems/passenger-5.0.30/resources/mime.types'; | ||
passenger_root '/home/justin/.rvm/gems/ruby-2.1.2/gems/passenger-5.0.30'; | ||
passenger_abort_on_startup_error on; | ||
passenger_ctl cleanup_pidfiles L3Zhci93d3cvb3BkL3Bhc3Nlbmdlci1zdGFuZGFsb25lLjF0bXRrMTcvdGVtcF9kaXJfdG91Y2hlci5waWQ=; | ||
passenger_ctl integration_mode standalone; | ||
passenger_ctl standalone_engine nginx; | ||
passenger_user_switching off; | ||
passenger_ruby /home/justin/.rvm/gems/ruby-2.1.2/wrappers/ruby; | ||
passenger_user justin; | ||
passenger_default_user justin; | ||
passenger_analytics_log_user justin; | ||
passenger_log_level 3; | ||
|
||
|
||
### BEGIN your own configuration options ### | ||
# This is a good place to put your own config | ||
# options. Note that your options must not | ||
# conflict with the ones Passenger already sets. | ||
# Learn more at: | ||
# https://www.phusionpassenger.com/library/config/standalone/intro.html#nginx-configuration-template | ||
|
||
### END your own configuration options ### | ||
|
||
default_type application/octet-stream; | ||
types_hash_max_size 2048; | ||
server_names_hash_bucket_size 64; | ||
client_max_body_size 1024m; | ||
access_log off; | ||
keepalive_timeout 60; | ||
underscores_in_headers on; | ||
gzip on; | ||
gzip_comp_level 3; | ||
gzip_min_length 150; | ||
gzip_proxied any; | ||
gzip_types text/plain text/css text/json text/javascript | ||
application/javascript application/x-javascript application/json | ||
application/rss+xml application/vnd.ms-fontobject application/x-font-ttf | ||
application/xml font/opentype image/svg+xml text/xml; | ||
|
||
|
||
|
||
|
||
server { | ||
server_name _; | ||
listen 0.0.0.0:3002; | ||
root '/var/www/opd/public'; | ||
passenger_app_root '/var/www/opd'; | ||
passenger_enabled on; | ||
passenger_app_env 'development'; | ||
passenger_spawn_method 'smart'; | ||
passenger_load_shell_envvars off; | ||
|
||
# Rails asset pipeline support. | ||
location ~ "^/assets/.+-([0-9a-f]{32}|[0-9a-f]{64})\..+" { | ||
error_page 490 = @static_asset; | ||
error_page 491 = @dynamic_request; | ||
recursive_error_pages on; | ||
|
||
if (-f $request_filename) { | ||
return 490; | ||
} | ||
if (!-f $request_filename) { | ||
return 491; | ||
} | ||
} | ||
location @static_asset { | ||
gzip_static on; | ||
expires max; | ||
add_header Cache-Control public; | ||
add_header ETag ""; | ||
} | ||
location @dynamic_request { | ||
passenger_enabled on; | ||
} | ||
|
||
|
||
### BEGIN your own configuration options ### | ||
# This is a good place to put your own config | ||
# options. Note that your options must not | ||
# conflict with the ones Passenger already sets. | ||
# Learn more at: | ||
# https://www.phusionpassenger.com/library/config/standalone/intro.html#nginx-configuration-template | ||
|
||
### END your own configuration options ### | ||
} | ||
passenger_pre_start http://0.0.0.0:3002/; | ||
|
||
|
||
|
||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
2016/10/27 14:37:09 [emerg] 11526#0: open() "/var/www/opd/log/passenger.3002.log" failed (13: Permission denied) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,123 @@ | ||
########################################################################## | ||
# Passenger Standalone is built on the same technology that powers | ||
# Passenger for Nginx, so any configuration option supported by Passenger | ||
# for Nginx can be applied to Passenger Standalone as well. You can do | ||
# this by direct editing the Nginx configuration template that is used by | ||
# Passenger Standalone. | ||
# | ||
# This file is the original template. DO NOT EDIT THIS FILE DIRECTLY. | ||
# Instead, make a copy of this file and pass the `--nginx-config-template` | ||
# parameter to Passenger Standalone. | ||
# | ||
# Learn more about using the Nginx configuration template at: | ||
# https://www.phusionpassenger.com/library/config/standalone/intro.html#nginx-configuration-template | ||
# | ||
# *** NOTE *** | ||
# If you customize the template file, make sure you keep an eye on the | ||
# original template file and merge any changes. New Phusion Passenger | ||
# features may require changes to the template file. | ||
############################################################## | ||
|
||
master_process on; | ||
daemon on; | ||
error_log '/var/www/opd/log/passenger.3002.log' ; | ||
pid '/var/www/opd/tmp/pids/passenger.3002.pid'; | ||
|
||
|
||
worker_processes 1; | ||
events { | ||
worker_connections 4096; | ||
} | ||
|
||
http { | ||
log_format debug '[$time_local] $msec "$request" $status conn=$connection sent=$bytes_sent body_sent=$body_bytes_sent'; | ||
include '/home/justin/.rvm/gems/ruby-2.1.2/gems/passenger-5.0.30/resources/mime.types'; | ||
passenger_root '/home/justin/.rvm/gems/ruby-2.1.2/gems/passenger-5.0.30'; | ||
passenger_abort_on_startup_error on; | ||
passenger_ctl cleanup_pidfiles L3Zhci93d3cvb3BkL3Bhc3Nlbmdlci1zdGFuZGFsb25lLjF0bXRrMTcvdGVtcF9kaXJfdG91Y2hlci5waWQ=; | ||
passenger_ctl integration_mode standalone; | ||
passenger_ctl standalone_engine nginx; | ||
passenger_user_switching off; | ||
passenger_ruby /home/justin/.rvm/gems/ruby-2.1.2/wrappers/ruby; | ||
passenger_user justin; | ||
passenger_default_user justin; | ||
passenger_analytics_log_user justin; | ||
passenger_log_level 3; | ||
|
||
|
||
### BEGIN your own configuration options ### | ||
# This is a good place to put your own config | ||
# options. Note that your options must not | ||
# conflict with the ones Passenger already sets. | ||
# Learn more at: | ||
# https://www.phusionpassenger.com/library/config/standalone/intro.html#nginx-configuration-template | ||
|
||
### END your own configuration options ### | ||
|
||
default_type application/octet-stream; | ||
types_hash_max_size 2048; | ||
server_names_hash_bucket_size 64; | ||
client_max_body_size 1024m; | ||
access_log off; | ||
keepalive_timeout 60; | ||
underscores_in_headers on; | ||
gzip on; | ||
gzip_comp_level 3; | ||
gzip_min_length 150; | ||
gzip_proxied any; | ||
gzip_types text/plain text/css text/json text/javascript | ||
application/javascript application/x-javascript application/json | ||
application/rss+xml application/vnd.ms-fontobject application/x-font-ttf | ||
application/xml font/opentype image/svg+xml text/xml; | ||
|
||
|
||
|
||
|
||
server { | ||
server_name _; | ||
listen 0.0.0.0:3002; | ||
root '/var/www/opd/public'; | ||
passenger_app_root '/var/www/opd'; | ||
passenger_enabled on; | ||
passenger_app_env 'development'; | ||
passenger_spawn_method 'smart'; | ||
passenger_load_shell_envvars off; | ||
|
||
# Rails asset pipeline support. | ||
location ~ "^/assets/.+-([0-9a-f]{32}|[0-9a-f]{64})\..+" { | ||
error_page 490 = @static_asset; | ||
error_page 491 = @dynamic_request; | ||
recursive_error_pages on; | ||
|
||
if (-f $request_filename) { | ||
return 490; | ||
} | ||
if (!-f $request_filename) { | ||
return 491; | ||
} | ||
} | ||
location @static_asset { | ||
gzip_static on; | ||
expires max; | ||
add_header Cache-Control public; | ||
add_header ETag ""; | ||
} | ||
location @dynamic_request { | ||
passenger_enabled on; | ||
} | ||
|
||
|
||
### BEGIN your own configuration options ### | ||
# This is a good place to put your own config | ||
# options. Note that your options must not | ||
# conflict with the ones Passenger already sets. | ||
# Learn more at: | ||
# https://www.phusionpassenger.com/library/config/standalone/intro.html#nginx-configuration-template | ||
|
||
### END your own configuration options ### | ||
} | ||
passenger_pre_start http://0.0.0.0:3002/; | ||
|
||
|
||
|
||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Submodule underlying_disease_alerts
added at
deefee