diff options
author | forumi0721 | 2016-06-21 15:14:26 +0900 |
---|---|---|
committer | forumi0721 | 2016-06-21 15:14:26 +0900 |
commit | 305a8df741c61493ebd72b07a3602269a8b447d0 (patch) | |
tree | 2a8ff887c5a08ed17bcf708b155832335b010d35 /webvirtmgr.nginx.conf.sample | |
parent | 682491ff80866cace79a6e19dba6f210828298ed (diff) | |
download | aur-305a8df741c61493ebd72b07a3602269a8b447d0.tar.gz |
Update
Diffstat (limited to 'webvirtmgr.nginx.conf.sample')
-rw-r--r-- | webvirtmgr.nginx.conf.sample | 23 |
1 files changed, 23 insertions, 0 deletions
diff --git a/webvirtmgr.nginx.conf.sample b/webvirtmgr.nginx.conf.sample new file mode 100644 index 000000000000..1be2182a8485 --- /dev/null +++ b/webvirtmgr.nginx.conf.sample @@ -0,0 +1,23 @@ +server { + listen 8006 default_server; + + server_name $hostname; + #access_log /var/log/nginx/webvirtmgr_access_log; + + location /static/ { + root /usr/lib/webvirtmgr/webvirtmgr; # or /srv instead of /var + expires max; + } + + location / { + proxy_pass http://127.0.0.1:8000; + proxy_set_header X-Real-IP $remote_addr; + proxy_set_header X-Forwarded-for $proxy_add_x_forwarded_for; + proxy_set_header Host $host:$server_port; + proxy_set_header X-Forwarded-Proto $scheme; + proxy_connect_timeout 600; + proxy_read_timeout 600; + proxy_send_timeout 600; + client_max_body_size 1024M; # Set higher depending on your needs + } +} |