nginx https 反代 http服务

主要是proxy_redirect off起作用

location / {
        proxy_pass http://127.0.0.1:8080;
        proxy_redirect off;
        proxy_set_header Host $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 https;
    }

idea surround with quotes

idea->settings->editor->smart keys
选中surround selection on typing qoute or brace

然后选中需要加引号的文字,按住shit+引号就会自动在文字外包一层引号。