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
[Unit] | |
Description=Fluentd: data collector for Treasure Data | |
Documentation=http://docs.fluentd.org/ | |
After=network-online.target consul_agent.service | |
Wants=network-online.target | |
[Service] | |
Type=forking | |
PIDFile=/var/run/td-agent/td-agent.pid | |
ExecStart=/etc/rc.d/init.d/td-agent start |
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
location ^~ /attachments/download_zip/ { | |
proxy_pass http://mongrel; | |
proxy_redirect off; | |
proxy_set_header Host $host; | |
proxy_set_header X-Real-IP $remote_addr; | |
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for; | |
proxy_set_header X_Forwarded_Proto $scheme; | |
proxy_read_timeout 120; | |
proxy_connect_timeout 120; | |
post_action @notify_zip |