1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071 |
- upstream huginn {
- server unix:/home/huginn/huginn/tmp/sockets/unicorn.socket fail_timeout=0;
- }
- server {
- listen 0.0.0.0:80 default_server;
- listen [::]:80 ipv6only=on default_server;
- server_name YOUR_SERVER_FQDN;
- server_tokens off;
- root /home/huginn/huginn/public;
-
- client_max_body_size 20m;
-
- access_log /var/log/nginx/huginn_access.log;
- error_log /var/log/nginx/huginn_error.log;
- location / {
-
-
- try_files $uri $uri/index.html $uri.html @huginn;
- }
-
-
- location @huginn {
-
-
-
- proxy_read_timeout 300;
- proxy_connect_timeout 300;
- proxy_redirect off;
- proxy_set_header Host $http_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_set_header X-Frame-Options SAMEORIGIN;
- proxy_pass http://huginn;
- }
-
-
-
-
-
- location ~ ^/(assets)/ {
- root /home/huginn/huginn/public;
- gzip_static on;
- expires max;
- add_header Cache-Control public;
- }
- error_page 502 /502.html;
- }
|