Welcome to Sadness

The temperature is unbearable until you face it

Thank you for flying with Strange Airlines, I will be your tour guide today

Your emotional baggage can be picked up at carousel number two

Please be careful, so it doesn't fall on to someone you love

When we've reached your final destination, I will leave you to it

You'll be fine

I'm just gonna show you in, and, uhm...

You can stay as long as you need to get familiar with the feeling

And then when you're ready, I'll be outside, and...

We can go look at the sunrise by Euphoria, mixed with existential vertigo

Cool...

boot.img

首先打开Nginx的配置文件nginx.conf

复制一份原来的server配置,添加在原配置的下方(下面的配置添加了https,需要证书才能访问)

server {
    listen 80;
    server_name 你的域名;
    return 301 https://你的域名$request_uri;
} 
server {
    listen 443 ssl http2 default_server;
    ssl on;
    ssl_certificate 你的证书路径;
    ssl_certificate_key 你的证书秘钥路径;
    ssl_session_timeout 5m;
    ssl_ciphers ECDHE-RSA-AES128-GCM-SHA256:ECDHE:ECDH:AES:HIGH:!NULL:!aNULL:!MD5:!ADH:!RC4;
    ssl_protocols TLSv1 TLSv1.1 TLSv1.2;
    ssl_prefer_server_ciphers on;
    server_name 你的域名;
    index index.html index.htm index.php;
    root 你的新网站根目录;
    include enable-php.conf;
    location /nginx_status
    {
        stub_status on;
        access_log off;
    }
    location ~ .*\.(gif|jpg|jpeg|png|bmp|swf)$
    {
        expires 30d;
    }
    location ~ .*\.(js|css)?$
    {
        expires 12h;
    }
    location ~ /.well-known {
        allow all;
    }
    location ~ /\.
    {
        deny all;
    }
    access_log  你的日志路径;
}

之后保存,重启Nginx服务

service nginx restart

检查一下有没有生效?

只需在pom.xml中插入如下代码即可:

<repositories>
    <repository>
        <id>nexus-aliyun</id>
        <name>nexus-aliyun</name>
        <url>http://maven.aliyun.com/nexus/content/groups/public/</url>
        <releases>
            <enabled>true</enabled>
        </releases>
        <snapshots>
            <enabled>false</enabled>
        </snapshots>
    </repository>
</repositories>