Browse Source

added gitea to nginx

master
hak8or 3 years ago
parent
commit
03f2a41081
1 changed files with 13 additions and 13 deletions
  1. +13
    -13
      nginx.conf

+ 13
- 13
nginx.conf View File

@@ -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;


Loading…
Cancel
Save