glance
Glance is an image board app.
Prepare
podman pull docker.io/glanceapp/glance
mkdir -p $HOME/apps/{variables,container_data}
touch $HOME/apps/variables/glance.env
mkdir -p $HOME/apps/container_data/glance
Edit environment file
Edit the environment file and paste your default values for this service:
Example contents:
Installation
# glance.container
[Container]
ContainerName=glance
HostName=glance
AutoUpdate=registry
Image=docker.io/glanceapp/glance
Network=skynet.network
EnvironmentFile=%h/apps/variables/glance.env
Volume=%h/apps/container_data/glance:/app/config
[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 portal.skynet.lan;
# Trust the Podman rootless network
set_real_ip_from 10.90.0.0/24;
real_ip_header X-Forwarded-For;
real_ip_recursive on;
access_log /var/log/nginx/glance_access.log main;
error_log /var/log/nginx/glance_error.log;
location / {
proxy_pass http://glance:8080;
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://portal.skynet.lan