up(etc): system file

This commit is contained in:
cnphpbb 2025-03-03 12:29:13 +08:00
parent 48ed651c02
commit 084d731f45
4 changed files with 36 additions and 0 deletions

3
VaultWarden/env.cfg Normal file
View File

@ -0,0 +1,3 @@
IMAGE_TAG=vaultwarden/server:1.33.2-alpine
Volumes_Path=/data/volumes/q
Domain=https://passd.6t7.net

15
VaultWarden/stack.yml Normal file
View File

@ -0,0 +1,15 @@
# path:: mkdir -pv /data/volumes/VaultWarden/data
# pull:: docker compose -p memos --env-file ./VaultWarden/env.cfg -f ./VaultWarden/stack.yml pull
# run:: docker compose -p memos --env-file ./VaultWarden/env.cfg -f ./VaultWarden/stack.yml up -d
services:
vaultwarden:
image: ${IMAGE_TAG}
container_name: vaultwarden
restart: unless-stopped
environment:
DOMAIN: "${Domain}"
volumes:
- ${Volumes_Path}/data/:/data/
ports:
- 5580:80

View File

@ -0,0 +1,16 @@
# shellcheck shell=sh disable=SC1091,SC2039,SC2166
# Check for interactive bash and that we haven't already been sourced.
if [ "x${BASH_VERSION-}" != x -a "x${PS1-}" != x -a "x${BASH_COMPLETION_VERSINFO-}" = x ]; then
# Check for recent enough version of bash.
if [ "${BASH_VERSINFO[0]}" -gt 4 ] ||
[ "${BASH_VERSINFO[0]}" -eq 4 -a "${BASH_VERSINFO[1]}" -ge 2 ]; then
[ -r "${XDG_CONFIG_HOME:-$HOME/.config}/bash_completion" ] &&
. "${XDG_CONFIG_HOME:-$HOME/.config}/bash_completion"
if shopt -q progcomp && [ -r /usr/share/bash-completion/bash_completion ]; then
# Source completion code.
. /usr/share/bash-completion/bash_completion
fi
fi
fi

2
etc/profile.d/history.sh Normal file
View File

@ -0,0 +1,2 @@
export HISTSIZE=10000
export HISTTIMEFORMAT="%F %T `whoami` "