summaryrefslogtreecommitdiff
path: root/public
diff options
context:
space:
mode:
authorroot@culturestrings <root@culturestrings>2020-05-18 09:29:24 +0000
committerroot@culturestrings <root@culturestrings>2020-05-18 09:29:24 +0000
commit2679c087f5c318e111e667d5a978b7539ecb6b83 (patch)
treea61b793f0d4b71c932032b1f8ea1b763822b000e /public
parent1bd4fdbcea266c9e8ca1553a80206471abeda621 (diff)
downloadculturestrings-2679c087f5c318e111e667d5a978b7539ecb6b83.tar.bz2
culturestrings-2679c087f5c318e111e667d5a978b7539ecb6b83.tar.xz
pagure: web front-end: added nginx's virtual host configuration.
Diffstat (limited to 'public')
-rw-r--r--public/fs/etc/nginx/vhosts.d/pagure.midipix.org.conf42
1 files changed, 42 insertions, 0 deletions
diff --git a/public/fs/etc/nginx/vhosts.d/pagure.midipix.org.conf b/public/fs/etc/nginx/vhosts.d/pagure.midipix.org.conf
new file mode 100644
index 0000000..9bd519c
--- /dev/null
+++ b/public/fs/etc/nginx/vhosts.d/pagure.midipix.org.conf
@@ -0,0 +1,42 @@
+server {
+ listen [::]:80;
+ server_name pagure.midipix.org;
+ return 301 https://$server_name$request_uri;
+}
+
+server {
+ listen [::]:443;
+ server_name pagure.midipix.org;
+ root /srv/www/htdocs;
+
+
+ access_log /var/log/nginx/pagure.access.log;
+ error_log /var/log/nginx/pagure.error.log;
+
+
+ location @pagure {
+ 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_pass http://unix:/tmp/.pagure_web.sock;
+ }
+
+ location / {
+ try_files $uri @pagure;
+ }
+
+ location /static {
+ alias /usr/lib/python3.6/site-packages/pagure/static/;
+ }
+
+ location /releases {
+ alias /srv/www/pagure-releases/;
+ autoindex on;
+ }
+
+ ssl_certificate /etc/nginx/certs.d/culturestrings.org/ssl/fullchain.pem;
+ ssl_certificate_key /etc/nginx/certs.d/culturestrings.org/ssl/privkey.pem;
+
+ include conf.d/ssl_params;
+}