Skip to content

Merge pull request #1 from wangyongtao/test #2

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 58 commits into
base: test
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from 1 commit
Commits
Show all changes
58 commits
Select commit Hold shift + click to select a range
3e5c1c8
Merge pull request #1 from wangyongtao/test
wangyongtao May 13, 2016
61aed39
Merge pull request #3 from wangyongtao/test
wangyongtao May 13, 2016
64e7f7a
UPDATE
wangyongtao May 17, 2016
149531d
UPDATE
wangyongtao May 17, 2016
9e92d21
UPDATE
wangyongtao May 17, 2016
0b6adb1
update
wangyongtao May 20, 2016
38b0c78
update
May 22, 2016
dab6d4f
update
wangyongtao May 23, 2016
e5b2e5d
UPDATe
wangyongtao Jun 7, 2016
371d574
add test.txt
wangyongtao Jun 7, 2016
5c2d515
test
wangyongtao Jun 7, 2016
9b9a163
add test.txt
wangyongtao Jun 7, 2016
80f3288
rename:test.txt->test02.txt
wangyongtao Jun 7, 2016
ba51c97
UPDATE git
wangyongtao Jun 7, 2016
bba39d3
UPDATE test_01.txt and test_02.txt
wangyongtao Jun 7, 2016
880adc0
update 3,4
wangyongtao Jun 7, 2016
072d62c
update 7,8
wangyongtao Jun 7, 2016
57b138a
test:update git
wangyongtao Jun 7, 2016
ba2f9f9
test:del test_01.txt
wangyongtao Jun 7, 2016
fe6ba42
UPDATE test_01.txt and test_02.txt
wangyongtao Jun 7, 2016
1053f50
update
wangyongtao Jun 7, 2016
76c367f
Merge branch 'fea_develop'
wangyongtao Jun 7, 2016
bf712b7
update
wangyongtao Jun 7, 2016
74209bf
Merge branch 'fea_develop'
wangyongtao Jun 7, 2016
04a2cbf
update
wangyongtao Jun 7, 2016
dcf9d19
Merge branch 'master' of https://github.com/wangyongtao/php-dev-docs …
wangyongtao Jun 7, 2016
173e2c9
Merge branch 'fea_develop'
wangyongtao Jun 7, 2016
bf23072
update
wangyongtao Jun 7, 2016
51ea6e2
TEST
wangyongtao Jun 7, 2016
03d039d
update
wangyongtao Jun 7, 2016
5ea6a60
UPDATE Git-使用教程.md
wangyongtao Aug 22, 2016
7479d5c
UPDATE
wangyongtao Aug 22, 2016
044cad4
Delete HTML与CSS基础.md
wangyongtao Dec 16, 2016
477f488
Delete README.md
wangyongtao Dec 16, 2016
eac607f
Delete JavaScript-基础.md
wangyongtao Dec 16, 2016
50e28d3
Delete JavaScript-对象.md
wangyongtao Dec 16, 2016
7095a99
修改内容
wangyongtao Dec 16, 2016
7ccfa7d
Merge branch 'master' of https://github.com/wangyongtao/php-dev-docs
wangyongtao Dec 16, 2016
ec0d079
修改文档
Dec 16, 2016
43cba68
修改文档
wangyongtao Dec 19, 2016
e1d4d59
Merge branch 'master' of https://github.com/wangyongtao/php-dev-docs
wangyongtao Dec 19, 2016
f6ef505
修改文档
wangyongtao Dec 21, 2016
6663007
修改文档
wangyongtao Dec 21, 2016
3050dad
MERGE
wangyongtao Jan 4, 2017
54a83a6
ADD send mail demo
wangyongtao Apr 1, 2017
13e4081
新增HTTPS
wangyongtao Apr 1, 2017
18f3a8b
MERGE
wangyongtao Apr 1, 2017
910ecd3
UPDATE
wangyongtao Apr 5, 2017
97b13ef
UPDATE
wangyongtao Apr 7, 2017
2d2f58c
UPDATE:目录与结构
wangyongtao May 5, 2017
8ebe271
UPDATE
wangyongtao Jun 16, 2017
2cf46a2
UPDATE
wangyongtao Jun 22, 2017
52fd4aa
ADD php-xhprof-doc
wangyongtao Sep 13, 2017
87f4775
MERGE
wangyongtao Sep 13, 2017
1091a79
MERGE
wangyongtao Dec 6, 2017
3ec0c5c
Update README.md
wangyongtao Dec 30, 2021
a1d01b9
Update README.md
wangyongtao Dec 30, 2021
8557005
Create README.md
wangyongtao Mar 20, 2022
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
新增HTTPS
  • Loading branch information
wangyongtao committed Apr 1, 2017
commit 13e4081f591380ec242f55f0db0e01bc76421280
83 changes: 83 additions & 0 deletions posts/HTTPS-Lets-Encrypt-SSL-demo.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,83 @@
HTTPS-Lets-Encrypt-SSL-demo.md


Certbot, previously the Let's Encrypt Client, is EFF's tool to obtain certs from Let's Encrypt,
and (optionally) auto-enable HTTPS on your server.
It can also act as a client for any other CA that uses the ACME protocol.


$ wget https://github.com/certbot/certbot/archive/v0.12.0.tar.gz

$ ./certbot-auto certonly

Saving debug log to /var/log/letsencrypt/letsencrypt.log

How would you like to authenticate with the ACME CA?
-------------------------------------------------------------------------------
1: Apache Web Server plugin - Beta (apache)
2: Place files in webroot directory (webroot)
3: Spin up a temporary webserver (standalone)
-------------------------------------------------------------------------------
Select the appropriate number [1-3] then [enter] (press 'c' to cancel): 2

worker_processes 1;
Please enter in your domain name(s) (comma and/or space separated) (Enter 'c'
to cancel):wang123.net
Obtaining a new certificate
Performing the following challenges:
http-01 challenge for wang123.net

Select the webroot for wang123.net:
-------------------------------------------------------------------------------
1: Enter a new webroot
-------------------------------------------------------------------------------
Press 1 [enter] to confirm the selection (press 'c' to cancel): 1
Input the webroot for wang123.net: (Enter 'c' to cancel):/wwwdata/wwwroot/wang123net/public/
Waiting for verification...
Cleaning up challenges
Generating key (2048 bits): /etc/letsencrypt/keys/0000_key-certbot.pem
Creating CSR: /etc/letsencrypt/csr/0000_csr-certbot.pem

IMPORTANT NOTES:
- Congratulations! Your certificate and chain have been saved at
/etc/letsencrypt/live/wang123.net/fullchain.pem. Your cert will
expire on 2017-06-30. To obtain a new or tweaked version of this
certificate in the future, simply run certbot-auto again. To
non-interactively renew *all* of your certificates, run
"certbot-auto renew"
- If you like Certbot, please consider supporting our work by:

Donating to ISRG / Let's Encrypt: https://letsencrypt.org/donate
Donating to EFF: https://eff.org/donate-le

$ cd /etc/letsencrypt/live/wang123.net
$ ls
README cert.pem chain.pem fullchain.pem privkey.pem


```
# HTTPS server
server {
listen 443 ssl;
server_name wang123.net;

ssl_certificate /etc/letsencrypt/live/wang123.net/fullchain.pem;
ssl_certificate_key /etc/letsencrypt/live/wang123.net/privkey.pem;

ssl_session_cache shared:SSL:1m;
ssl_session_timeout 5m;

ssl_ciphers HIGH:!aNULL:!MD5;
ssl_prefer_server_ciphers on;

location / {
root html;
index index.html index.htm;
}
}
```


https://github.com/certbot/certbot

https://certbot.eff.org/
25 changes: 24 additions & 1 deletion posts/laravel-5.4-send-mail-demo.md
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,30 @@ MAIL_FROM_NAME=cnwytnet
* 需要增加mail.php配置文件:

确保Luemn项目中存在 `app/config/mail.php` 配置文件。
若不存在可以从 Laravel 代码中复制一份。
若不存在可以从 Laravel 代码中复制一份, 或者新建一份,示例如下:

```
<?php
return [
'driver' => env('MAIL_DRIVER', 'smtp'),
'host' => env('MAIL_HOST', 'smtp.mailgun.org'),
'port' => env('MAIL_PORT', 587),
'from' => [
'address' => env('MAIL_FROM_ADDRESS', 'hello@example.com'),
'name' => env('MAIL_FROM_NAME', 'Example'),
],
'encryption' => env('MAIL_ENCRYPTION', 'tls'),
'username' => env('MAIL_USERNAME'),
'password' => env('MAIL_PASSWORD'),
'sendmail' => '/usr/sbin/sendmail -bs',
'markdown' => [
'theme' => 'default',
'paths' => [
resource_path('views/vendor/mail'),
],
],
];
```


## 创建发邮件脚本
Expand Down