差異處

這裏顯示兩個版本的差異處。

連向這個比對檢視

tech:vaultwarden [2024/03/04 22:30] – 建立 jonathantech:vaultwarden [2024/03/04 22:52] (目前版本) – 移除 caddy 服務 jonathan
行 11: 行 11:
     container_name: vaultwarden     container_name: vaultwarden
     restart: always     restart: always
 +    ports:
 +      - 80:80 #map any custom port to use (replace 8445 not 80)
     environment:     environment:
       - ADMIN_TOKEN=${ADMIN_TOKEN}       - ADMIN_TOKEN=${ADMIN_TOKEN}
行 18: 行 20:
     volumes:     volumes:
       - ./vw-data:/data       - ./vw-data:/data
- 
-  caddy: 
-    image: caddy:2 
-    container_name: caddy 
-    restart: always 
-    ports: 
-      - 80:80  # Needed for the ACME HTTP-01 challenge. 
-      - 443:443 
-    volumes: 
-      - ./Caddyfile:/etc/caddy/Caddyfile:ro 
-      - ./caddy-config:/config 
-      - ./caddy-data:/data 
-    environment: 
-      - DOMAIN=${DOMAIN}  # Your domain. 
-      - EMAIL=${EMAIL}        # The email address to use for ACME registration. 
-      - LOG_FILE="/data/access.log" 
-</file> 
-  - 產生 Caddyfile 檔案 <file> 
-{$DOMAIN}:443 { 
-  log { 
-    level INFO 
-    output file {$LOG_FILE} { 
-      roll_size 10MB 
-      roll_keep 10 
-    } 
-  } 
- 
-  # Use the ACME HTTP-01 challenge to get a cert for the configured domain. 
-  tls {$EMAIL} 
- 
-  # This setting may have compatibility issues with some browsers 
-  # (e.g., attachment downloading on Firefox). Try disabling this 
-  # if you encounter issues. 
-  encode gzip 
- 
-  # Proxy everything Rocket 
-  reverse_proxy vaultwarden:80 { 
-       # Send the true remote IP to Rocket, so that vaultwarden can put this in the 
-       # log, so that fail2ban can ban the correct IP. 
-       header_up X-Real-IP {remote_host} 
-  } 
-} 
-</file> 
   - 依照實際資訊編輯 .env 參數定義檔 Exp. <file>   - 依照實際資訊編輯 .env 參數定義檔 Exp. <file>
 +ADMIN_TOKEN=ec11fe8eaf1afd3f0e9a053563cbda7c33751d316ff3f956ba1c7af0
 DOMAIN=https://vaultwarden.ichiayi.com DOMAIN=https://vaultwarden.ichiayi.com
-[email protected] 
-ADMIN_TOKEN=ec11fe8eaf1afd3f0e9a053563cbda7c33751d316ff3f956ba1c7af0 
 </file> </file>
   - 啟動服務 <cli>   - 啟動服務 <cli>
  • tech/vaultwarden.txt
  • 上一次變更: 2024/03/04 22:52
  • jonathan