snippets
Snippet Box - small notes/snippets storage.
Prepare
podman pull docker.io/pawelmalak/snippet-box
mkdir -p $HOME/apps/{variables,container_data}
touch $HOME/apps/variables/snippets.env
mkdir -p $HOME/apps/container_data/snippets
Edit environment file
Edit the environment file and paste your default values for this service:
Example contents:
Installation
# snippets.container
[Container]
ContainerName=snippets
HostName=snippets
AutoUpdate=registry
Image=docker.io/pawelmalak/snippet-box
Network=skynet.network
EnvironmentFile=%h/apps/variables/snippets.env
Volume=%h/apps/container_data/snippets:/app/data
[Service]
Restart=always
TimeoutStartSec=300
[Install]
WantedBy=default.target
Configuration of Nginx (Reverse Proxy)
Create nginx conf.
Configuration for nginx conf for port 80.
server {
listen 80;
server_name snippets.skynet.lan;
access_log /var/log/nginx/snippets_access.log;
error_log /var/log/nginx/snippets_error.log;
location / {
proxy_pass http://snippets:5000;
proxy_set_header Host $host;
proxy_set_header X-Real-IP $remote_addr;
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
}
}
Restart Nginx
Usage
Open http://snippets.skynet.lan