使用插件管理appimageLauncher官方网站、
| Release filename | Build system | Compatible distributions (版本兼任选择) |
|---|---|---|
| appimagelauncher- |
Ubuntu Xenial | Ubuntu Xenial (16.04), Debian Stretch (9), Netrunner 17.01 |
| appimagelauncher- |
Ubuntu Bionic | Ubuntu Bionic (18.04), Ubuntu |
作者文章归档:陈海峰
| Release filename | Build system | Compatible distributions (版本兼任选择) |
|---|---|---|
| appimagelauncher- |
Ubuntu Xenial | Ubuntu Xenial (16.04), Debian Stretch (9), Netrunner 17.01 |
| appimagelauncher- |
Ubuntu Bionic | Ubuntu Bionic (18.04), Ubuntu |
config.js里面配置
devServer: {
https: {
key: '/home/chf/python_obj/cews/local.chenhaifeng.top.key',
cert: '/home/chf/python_obj/cews/local.chenhaifeng.top_public.crt',
},
//https: true
open: true, // pip install django-sslserver
xxxx_APPS = [
"sslserver"
]
python
manage.py
"runsslserver"
"--certificate"
"local.chenhaifeng.top_public.crt"
"--key"
"local.chenhaifeng.top.key"
"请求流程
客户端访问域名和端口
用户在浏览器中访问 https://local.chenhaifeng.top:8010/api/。
请求通过 HTTPS 协议到达 local.chenhaifeng.top,解析到本地机器(127.0.0.1)。
Traefik 接收请求
Traefik 监听了 443 端口(websecure entrypoint)。
由于你的 traefik.http.routers.django.rule 定义了 Host(local.chenhaifeng.top),Traefik 匹配到这个路由规则。
Traefik 判断deb http://ftp.de.debian.org/debian sid main
安装依赖 本地依赖
apt install python3-psycopg2
安装 python包
pip install psycopg2
sudo apt install flameshot
设置->键盘->自定义快捷键
命令是, 启动截图
flameshot gui
设置完成快捷键后无法截图问题
vi /etc/gdm3/daemon.conf
WaylandEndble=false
官网使用deb安装[https://github.com/flameshot-org/flameshot]
步骤 1:彻底卸载当前 Flameshot(清理所有配置 +
后端
@action(detail=False, methods=['get'], schema=AutoDocSchema())
def get_big_files(self, request):
def file_iterator(file_path, start_byte=0, chunk_size=256):
with open(file_path, 'rb') as f:
f.seek(在 Nginx 配置中,auth_basic 用于启用基本认证(Basic Authentication),而 auth_basic_user_file 用于指定存储用户名和密码的 .htpasswd 文件。如果你希望通过 API 来代替传统的浏览器认证,你需要通过 HTTP 请求头传递基本认证信息。
基本认证工作原理 基本认证使用的是 HTTP 头部中的 Authorization 字段,格式如下:
Authorization: Basic <base64(username:password)>
其中,username:password 是你用冒号分隔的用户名和密码,然后将其转化安装模块
pip install mongoengine
可以完全替代django中的原本的mongodb
from mongoengine import Document, StringField, BooleanField, DateTimeField, DictField, connect
from datetime import datetime
connect(
db="eform",
username="debug"相当于验证用户上传的json参数
定义结构
package dto
type TestJsonReq struct {
Name string `json:"name" binding:"min=3,max=20,required"`
Password string `json:"password" binding:"required"`
Age int `json:"age" binding:"required