[更新]增加 Ali OSS 支持

This commit is contained in:
Anyon 2017-05-10 17:28:02 +08:00
parent 0ba396bb4e
commit 573b2f4946

View File

@ -27,7 +27,7 @@
申请成功后添加公开bucket空间
</div>
<div class="help-block" data-storage-type="oss">
若还没有Ali-OSS存储账号请点击 <a target="_blank" href="https://oss.console.aliyun.com">创建AliOSS存储空间</a>
若还没有AliOSS存储账号, 请点击 <a target="_blank" href="https://oss.console.aliyun.com">创建AliOSS存储空间</a>
</div>
</div>
</div>
@ -99,8 +99,7 @@
<label class="col-sm-2 control-label">Domain <span class="nowrap">(访问域名)</span></label>
<div class='col-sm-8'>
<input type="text" name="storage_qiniu_domain" required="required" title="请输入七牛云存储 Domain (访问域名)"
placeholder="请输入七牛云存储 Domain (访问域名)" value="{:sysconf('storage_qiniu_domain')}"
class="layui-input">
placeholder="请输入七牛云存储 Domain (访问域名)" value="{:sysconf('storage_qiniu_domain')}" class="layui-input">
<p class="help-block">填写七牛云存储访问域名static.ctolog.cc</p>
</div>
</div>
@ -109,9 +108,8 @@
<label class="col-sm-2 control-label">AccessKey <span class="nowrap">(访问密钥)</span></label>
<div class='col-sm-8'>
<input type="text" name="storage_qiniu_access_key" required="required" title="请输入七牛云 AccessKey (访问密钥)"
placeholder="请输入七牛云 AccessKey (访问密钥)" value="{:sysconf('storage_qiniu_access_key')}"
class="layui-input">
<p class="help-block">可以在 七牛云 个人中心 设置并获取到访问密钥</p>
placeholder="请输入七牛云 AccessKey (访问密钥)" value="{:sysconf('storage_qiniu_access_key')}" class="layui-input">
<p class="help-block">可以在 [ 七牛云 > 个人中心 ] 设置并获取到访问密钥</p>
</div>
</div>
@ -122,7 +120,7 @@
<input type="password" name="storage_qiniu_secret_key" required="required" title="请输入七牛云 SecretKey (安全密钥)"
placeholder="请输入七牛云 SecretKey (安全密钥)" value="{:sysconf('storage_qiniu_secret_key')}"
maxlength="43" class="layui-input">
<p class="help-block">可以在 七牛云 个人中心 设置并获取到安全密钥</p>
<p class="help-block">可以在 [ 七牛云 > 个人中心 ] 设置并获取到安全密钥</p>
</div>
</div>
@ -142,12 +140,11 @@
</div>
</div>
<div class="form-group" data-storage-type="oss">
<label class="col-sm-2 control-label">Bucket <span class="nowrap">(空间名称)</span></label>
<div class='col-sm-8'>
<input type="text" name="storage_oss_bucket" required="required" title="请输入OSS存储 Bucket (空间名称)"
placeholder="请输入OSS存储 Bucket (空间名称)" value="{:sysconf('storage_oss_bucket')}" class="layui-input">
<input type="text" name="storage_oss_bucket" required="required" title="请输入AliOSS Bucket (空间名称)"
placeholder="请输入AliOSS Bucket (空间名称)" value="{:sysconf('storage_oss_bucket')}" class="layui-input">
<p class="help-block">填写OSS存储空间名称static</p>
</div>
</div>
@ -155,8 +152,8 @@
<div class="form-group" data-storage-type="oss">
<label class="col-sm-2 control-label">Domain <span class="nowrap">(访问域名)</span></label>
<div class='col-sm-8'>
<input type="text" name="storage_oss_domain" required="required" title="请输入OSS存储 Domain (访问域名)"
placeholder="请输入七牛云存储 Domain (访问域名)" value="{:sysconf('storage_oss_domain')}" class="layui-input">
<input type="text" name="storage_oss_domain" required="required" title="请输入AliOSS存储 Domain (访问域名)"
placeholder="请输入AliOSS存储 Domain (访问域名)" value="{:sysconf('storage_oss_domain')}" class="layui-input">
<p class="help-block">填写OSS存储外部访问域名static.ctolog.cc</p>
</div>
</div>
@ -164,9 +161,9 @@
<div class="form-group" data-storage-type="oss">
<label class="col-sm-2 control-label">AccessKey <span class="nowrap">(访问密钥)</span></label>
<div class='col-sm-8'>
<input type="text" name="storage_oss_keyid" required="required" title="请输入16位 OSS AccessKey (访问密钥)"
placeholder="请输入OSS AccessKey (访问密钥)" value="{:sysconf('storage_oss_keyid')}" maxlength="16" class="layui-input">
<p class="help-block">可以在 阿里云 个人中心 设置并获取到访问密钥</p>
<input type="text" name="storage_oss_keyid" required="required" title="请输入16位AliOSS AccessKey (访问密钥)"
placeholder="请输入AliOSS AccessKey (访问密钥)" value="{:sysconf('storage_oss_keyid')}" maxlength="16" class="layui-input">
<p class="help-block">可以在 [ 阿里云 > 个人中心 ] 设置并获取到访问密钥</p>
</div>
</div>
@ -174,9 +171,9 @@
<div class="form-group" data-storage-type="oss">
<label class="col-sm-2 control-label">SecretKey <span class="nowrap">(安全密钥)</span></label>
<div class='col-sm-8'>
<input type="password" name="storage_oss_secret" required="required" title="请输入30位 OSS SecretKey (安全密钥)"
placeholder="请输入七牛云 SecretKey (安全密钥)" value="{:sysconf('storage_oss_secret')}" maxlength="30" class="layui-input">
<p class="help-block">可以在 七牛云 个人中心 设置并获取到安全密钥</p>
<input type="password" name="storage_oss_secret" required="required" title="请输入30位AliOSS SecretKey (安全密钥)"
placeholder="请输入AliOSS SecretKey (安全密钥)" value="{:sysconf('storage_oss_secret')}" maxlength="30" class="layui-input">
<p class="help-block">可以在 [ 阿里云 > 个人中心 ] 设置并获取到安全密钥</p>
</div>
</div>
@ -187,6 +184,7 @@
<button class="layui-btn" type="submit">保存配置</button>
</div>
</div>
</form>
{/block}