![](https://img-blog.csdnimg.cn/20201014180756724.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
运维
awangyuk
java程序员
展开
-
uwsgi
server { autoindex on; listen 80; server_name localhost; access_log logs/hello.access.log main; location / { alias /opt/apps/ui/dist/; } location /api { .原创 2021-09-03 11:18:50 · 90 阅读 · 0 评论 -
CDN+OSS
server { listen 8080; server_name localhost; #charset koi8-r; #access_log logs/host.access.log main; location ~/(.*)/(.*)/(.*) { set $env $1; set $type $2; set $other $...原创 2021-09-03 10:37:02 · 131 阅读 · 0 评论 -
Vue+CDN+HISTORY
location /aaa/go{ rewrite ^/(.*) /_index; } location /_index { proxy_pass http://xxxxxxxxxx.oss-cn-hangzhou.aliyuncs.com/aaa/index.html; proxy_set_header Host xxxxxxxxxx.oss-cn-han...原创 2021-08-28 17:30:59 · 231 阅读 · 0 评论 -
jumpserver资产录入
1.clear-testtruncate table ops_adhoc_hosts;TRUNCATE table assets_asset_nodes;TRUNCATE table assets_systemuser_assets;delete from assets_asset;update assets_node set assets_amount=0;2.cmdb--->jumpserver--api def get_token(self): #原创 2021-04-21 11:58:51 · 412 阅读 · 0 评论 -
监控告警
原创 2021-04-02 18:16:29 · 169 阅读 · 0 评论 -
nginx+iview-admin 404
iview-adminmode:history刷新页面404错误解决办法:nginx配置 server { listen 8087; server_name localhost; root E:\workspace\vue_work\my-iview-admin\dist; location / { try_files $uri $uri/ @router; index i.原创 2020-08-03 12:50:52 · 390 阅读 · 0 评论 -
k8s+nginx+ldap
一、场景 公司内部使用ldap做统一认证,k8s上某些如:skywaking(无账号有敏感信息)、kibana等服务接入账号验证,正好使用nginx反向代理,且有ldap模块。二、准备文件git clone https://github.com/chaoslawful/lua-nginx-module.git (v0.10.14)git clone https://github.com/openresty/luajit2 (v2.1-ag...原创 2020-07-11 09:21:00 · 554 阅读 · 0 评论 -
nginx+lua编译安装
FROM debian:buster-slimCOPY sources.list /etc/apt/sources.listARG SRC=/usr/local/src/ADD lua-nginx-module $SRC/lua/ADD ngx_devel_kit-0.2.19 $SRC/kit/ADD nginx-auth-ldap $SRC/ldap/ADD luajit2 $SRC/luajit/ADD nginx-1.19.1.tar.gz $SRCRUN ap.原创 2020-07-11 03:22:02 · 320 阅读 · 0 评论