From 03f2a41081ffa71f7dce99a097d058a952f47014 Mon Sep 17 00:00:00 2001 From: hak8or Date: Tue, 27 Feb 2018 02:47:05 -0500 Subject: [PATCH] added gitea to nginx --- nginx.conf | 26 +++++++++++++------------- 1 file changed, 13 insertions(+), 13 deletions(-) diff --git a/nginx.conf b/nginx.conf index 0f9b578..41f0db8 100644 --- a/nginx.conf +++ b/nginx.conf @@ -85,20 +85,20 @@ http { } } - # server { - # listen 443 ssl http2; - # listen [::]:443 ssl http2; - # server_name www.gitea.hak8or.com gitea.hak8or.com; - # access_log /var/log/nginx/gitea.access.log; + server { + listen 443 ssl http2; + listen [::]:443 ssl http2; + server_name www.gitea.hak8or.com gitea.hak8or.com; + access_log /var/log/nginx/gitea.access.log; - # ssl_certificate /etc/letsencrypt/live/gitea.hak8or.com/fullchain.pem; - # ssl_certificate_key /etc/letsencrypt/live/gitea.hak8or.com/privkey.pem; - # ssl_trusted_certificate /etc/letsencrypt/live/gitea.hak8or.com/fullchain.pem; + ssl_certificate /etc/letsencrypt/live/gitea.hak8or.com/fullchain.pem; + ssl_certificate_key /etc/letsencrypt/live/gitea.hak8or.com/privkey.pem; + ssl_trusted_certificate /etc/letsencrypt/live/gitea.hak8or.com/fullchain.pem; - # location / { - # proxy_pass http://192.168.1.6:3000; - # } - # } + location / { + proxy_pass http://192.168.1.6:3900; + } + } # server { # listen 443 ssl http2; @@ -117,7 +117,7 @@ http { server { listen 443 ssl http2; - listen [::]:443 ssl http2; + listen [::]:443 ssl http2; server_name www.yarrr.hak8or.com yarrr.hak8or.com; access_log /var/log/nginx/yarrr.access.log;