nginx https reverse proxy sample
server {
    listen 80;
    return 302 https://$host$request_uri;
}
server {
    listen 443 ssl http2;
    server_name localhost;| #!/bin/sh | |
| set -eu | |
| LOG_LEVEL="${IMMICH_LOG_LEVEL:='info'}" | |
| logDebug() { | |
| if [ "$LOG_LEVEL" = "debug" ] || [ "$LOG_LEVEL" = "verbose" ]; then | |
| echo "DEBUG: $1" >&2 | |
| fi | 
| github授权登录流程: | |
| 1、A 网站让用户跳转到 GitHub。 | |
| 2、GitHub 要求用户登录,然后询问"A 网站要求获得 xx 权限,你是否同意?" | |
| 3、用户同意,GitHub 就会重定向回 A 网站,同时发回一个授权码。 | |
| 4、A 网站使用授权码,向 GitHub 请求令牌。 | |
| 5、GitHub 返回令牌. | |
| 6、A 网站使用令牌,向 GitHub 请求用户数据。 | 
| version: "2.0" | |
| services: | |
| mysql: | |
| image: mysql | |
| environment: | |
| MYSQL_ROOT_PASSWORD: H0Z75M0maZV0Y8pL | |
| ports: | |
| - 8003:3306 | |
| phpmyadmin: | 
nginx https reverse proxy sample
server {
    listen 80;
    return 302 https://$host$request_uri;
}
server {
    listen 443 ssl http2;
    server_name localhost;docker exec --user www-data nextcloud-app php /var/www/html/occ security:bruteforce:reset 10.147.100.130 如果无法确认 IP,以及用命令的方式不生效,则可以清空 oc_bruteforce_attempts 表,来达到同样的目的。
wget -qO- bench.sh | bash
#或者
curl -Lso- bench.sh | bash
#或者
wget -qO- 86.re/bench.sh | bash
#或者
curl -so- 86.re/bench.sh | bash| echo http://mirrors.ustc.edu.cn/alpine/v3.11/main/ >> /etc/apk/repositories | |
| echo http://mirrors.aliyun.com/alpine/v3.11/main/ >> /etc/apk/repositories | |
| RUN set -ex \ | |
| && echo http://mirrors.ustc.edu.cn/alpine/v3.11/main/ >> /etc/apk/repositories \ | |
| && echo http://mirrors.aliyun.com/alpine/v3.11/main/ >> /etc/apk/repositories | |
| RUN apk add --update ca-certificates openssl | 
总结 infer 在被extends判断的条件子语句中定义,返回语句中使用
// 基本extends
/**
 * @example
 * type A1 = 1