summarylogtreecommitdiffstats
path: root/webvirtmgr.nginx.conf.sample
diff options
context:
space:
mode:
authorforumi07212016-06-21 15:14:26 +0900
committerforumi07212016-06-21 15:14:26 +0900
commit305a8df741c61493ebd72b07a3602269a8b447d0 (patch)
tree2a8ff887c5a08ed17bcf708b155832335b010d35 /webvirtmgr.nginx.conf.sample
parent682491ff80866cace79a6e19dba6f210828298ed (diff)
downloadaur-305a8df741c61493ebd72b07a3602269a8b447d0.tar.gz
Update
Diffstat (limited to 'webvirtmgr.nginx.conf.sample')
-rw-r--r--webvirtmgr.nginx.conf.sample23
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
+ }
+}