Skip to content

Astro-Lee/stdweb-docker

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

STDWeb

STDWeb - web version of STDPipe (Docker)

Step 0

git clone --depth=1 https://github.com/Astro-Lee/stdweb-docker.git

Download suitable index files from data.astrometry.net, as introduced in astrometry (also refer to download_index.sh). Map the saved path to the container by referring to docker-compose.yaml.

docker compose up -d
docker exec -it stdweb bash

⚠️: All the following operations are carried out in the container

Step 1

create a superuser

python manage.py createsuperuser

Step 2

generate a django secret key

#edit .env
python -c "from django.core.management import utils; print(utils.get_random_secret_key())"

Step 3

reverse proxy

#edit stdweb/settings.py
CSRF_TRUSTED_ORIGINS = [ 'https://example.domain.com', ]

update

cd /opt/stdpipe && git pull && python -m pip install -e .
cd /opt/stdweb && git pull && pip install -r requirements.txt \
&& sed -i "/ALLOWED_HOSTS/a\# CSRF_TRUSTED_ORIGINS = [ 'https://example.domain.com', ]" stdweb/settings.py \
&& sed -i "s@redis:\/\/localhost\/@redis:\/\/redis\/@g" stdweb/settings.py \
&& sed -i "s@redis:\/\/127.0.0.1@redis:\/\/redis@g" stdweb/settings.py

About

STDPipe - web version (Docker)

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Dockerfile 76.5%
  • Shell 23.5%