Directories on host machine:
-
/data/certbot/letsencrypt -
/data/certbot/www -
Nginx server in docker container
docker run -d --name nginx \
Directories on host machine:
/data/certbot/letsencrypt
/data/certbot/www
Nginx server in docker container
docker run -d --name nginx \
| let intTransform = TransformOf<String, Int>(fromJSON: { (value: Int?) -> String? in | |
| // transform value from String? to Int? | |
| if let value = value { | |
| return String(value) | |
| } | |
| return nil | |
| }, toJSON: { (value: String?) -> Int? in | |
| // transform value from Int? to String? | |
| return Int(value!) | |
| }) |
| // Use Gists to store code you would like to remember later on | |
| console.log(window); // log the "window" object to the console |
| //导入头文件 | |
| #import <AVFoundation/AVCaptureDevice.h> | |
| #import <AVFoundation/AVMediaFormat.h> | |
| //判断代码 | |
| - (BOOL)isCameraAndAssetsAvilable{ | |
| AVAuthorizationStatus cameraAuthor = [AVCaptureDevice authorizationStatusForMediaType:AVMediaTypeVideo];//判断相机权限 | |
| ALAuthorizationStatus assetsAuthor = [ALAssetsLibrary authorizationStatus];//判断照片权限 |