apache_conf Nginx配置letsencrypt + bitbucket

Posted

tags:

篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了apache_conf Nginx配置letsencrypt + bitbucket相关的知识,希望对你有一定的参考价值。

server {
       	listen 80;
       	server_name git.webium.me;
       	return 301 https://$server_name$request_uri;
}

server {
        listen 443 ssl;

       	server_name git.webium.me;

        root /srv/www/git.webium.me;
        #index index.php index.html index.htm;

       	ssl_certificate /etc/letsencrypt/live/git.webium.me/fullchain.pem;
       	ssl_certificate_key /etc/letsencrypt/live/git.webium.me/privkey.pem;

       	include snippets/ssl-params.conf;

        location / {
                proxy_set_header X-Forwarded-Host $host;
                proxy_set_header X-Forwarded-Server $host;
                proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
                proxy_pass http://localhost:7990;
                client_max_body_size 10M;

                # vs timeouts
                proxy_connect_timeout       600;
                proxy_send_timeout          600;
                proxy_read_timeout          600;
                send_timeout                600;
        }

       	location ~ /.well-known {
                allow all;
        }
}

以上是关于apache_conf Nginx配置letsencrypt + bitbucket的主要内容,如果未能解决你的问题,请参考以下文章

apache_conf Nginx配置包装js导入为html5导入

Nginx Configuration 免费HTTPS加密证书

apache_conf nginx的

apache_conf nginx ip响应

apache_conf nginx的路由重定向

apache_conf Preparar Servidor NGINX,SERVER UBUNTU