commit 97e7fba07e450be06c6a17be0526adc39feaa9c1 Author: erjemin Date: Tue Mar 24 00:13:05 2026 +0300 init: legacy 2018 diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..0a5c43f --- /dev/null +++ b/.gitignore @@ -0,0 +1,371 @@ +### JetBrains template +# Covers JetBrains IDEs: IntelliJ, RubyMine, PhpStorm, AppCode, PyCharm, CLion, Android Studio, WebStorm and Rider +# Reference: https://intellij-support.jetbrains.com/hc/en-us/articles/206544839 + +# User-specific stuff +.idea/**/workspace.xml +.idea/**/tasks.xml +.idea/**/usage.statistics.xml +.idea/**/dictionaries +.idea/**/shelf + +# AWS User-specific +.idea/**/aws.xml + +# Generated files +.idea/**/contentModel.xml + +# Sensitive or high-churn files +.idea/**/dataSources/ +.idea/**/dataSources.ids +.idea/**/dataSources.local.xml +.idea/**/sqlDataSources.xml +.idea/**/dynamic.xml +.idea/**/uiDesigner.xml +.idea/**/dbnavigator.xml + +# Gradle +.idea/**/gradle.xml +.idea/**/libraries + +# Gradle and Maven with auto-import +# When using Gradle or Maven with auto-import, you should exclude module files, +# since they will be recreated, and may cause churn. Uncomment if using +# auto-import. +# .idea/artifacts +# .idea/compiler.xml +# .idea/jarRepositories.xml +# .idea/modules.xml +# .idea/*.iml +# .idea/modules +# *.iml +# *.ipr + +# CMake +cmake-build-*/ + +# Mongo Explorer plugin +.idea/**/mongoSettings.xml + +# File-based project format +*.iws + +# IntelliJ +out/ + +# mpeltonen/sbt-idea plugin +.idea_modules/ + +# JIRA plugin +atlassian-ide-plugin.xml + +# Cursive Clojure plugin +.idea/replstate.xml + +# SonarLint plugin +.idea/sonarlint/ + +# Crashlytics plugin (for Android Studio and IntelliJ) +com_crashlytics_export_strings.xml +crashlytics.properties +crashlytics-build.properties +fabric.properties + +# Editor-based Rest Client +.idea/httpRequests + +# Android studio 3.1+ serialized cache file +.idea/caches/build_file_checksums.ser + +### VirtualEnv template +# Virtualenv +# http://iamzed.com/2009/05/07/a-primer-on-virtualenv/ +.Python +[Bb]in +[Ii]nclude +[Ll]ib +[Ll]ib64 +[Ll]ocal +[Ss]cripts +pyvenv.cfg +.venv +pip-selfcheck.json + +### Windows template +# Windows thumbnail cache files +Thumbs.db +Thumbs.db:encryptable +ehthumbs.db +ehthumbs_vista.db + +# Dump file +*.stackdump + +# Folder config file +[Dd]esktop.ini + +# Recycle Bin used on file shares +$RECYCLE.BIN/ + +# Windows Installer files +*.cab +*.msi +*.msix +*.msm +*.msp + +# Windows shortcuts +*.lnk + +### macOS template +# General +.DS_Store +.AppleDouble +.LSOverride + +# Icon must end with two \r +Icon + +# Thumbnails +._* + +# Files that might appear in the root of a volume +.DocumentRevisions-V100 +.fseventsd +.Spotlight-V100 +.TemporaryItems +.Trashes +.VolumeIcon.icns +.com.apple.timemachine.donotpresent + +# Directories potentially created on remote AFP share +.AppleDB +.AppleDesktop +Network Trash Folder +Temporary Items +.apdisk + +### SynopsysVCS template +# Waveform formats +*.vcd +*.vpd +*.evcd +*.fsdb + +# Default name of the simulation executable. A different name can be +# specified with this switch (the associated daidir database name is +# also taken from here): -o / +simv + +# Generated for Verilog and VHDL top configs +simv.daidir/ +simv.db.dir/ + +# Infrastructure necessary to co-simulate SystemC models with +# Verilog/VHDL models. An alternate directory may be specified with this +# switch: -Mdir= +csrc/ + +# Log file - the following switch allows to specify the file that will be +# used to write all messages from simulation: -l +*.log + +# Coverage results (generated with urg) and database location. The +# following switch can also be used: urg -dir .vdb +simv.vdb/ +urgReport/ + +# DVE and UCLI related files. +DVEfiles/ +ucli.key + +# When the design is elaborated for DirectC, the following file is created +# with declarations for C/C++ functions. +vc_hdrs.h + +### Python template +# Byte-compiled / optimized / DLL files +__pycache__/ +*.py[cod] +*$py.class + +# C extensions +*.so + +# Distribution / packaging +.Python +build/ +develop-eggs/ +dist/ +downloads/ +eggs/ +.eggs/ +lib/ +lib64/ +parts/ +sdist/ +var/ +wheels/ +share/python-wheels/ +*.egg-info/ +.installed.cfg +*.egg +MANIFEST + +# PyInstaller +# Usually these files are written by a python script from a template +# before PyInstaller builds the exe, so as to inject date/other infos into it. +*.manifest +*.spec + +# Installer logs +pip-log.txt +pip-delete-this-directory.txt + +# Unit test / coverage reports +htmlcov/ +.tox/ +.nox/ +.coverage +.coverage.* +.cache +nosetests.xml +coverage.xml +*.cover +*.py,cover +.hypothesis/ +.pytest_cache/ +cover/ + +# Translations +*.mo +*.pot + +# Django stuff: +*.log +local_settings.py +db.sqlite3 +db.sqlite3-journal + +# Flask stuff: +instance/ +.webassets-cache + +# Scrapy stuff: +.scrapy + +# Sphinx documentation +docs/_build/ + +# PyBuilder +.pybuilder/ +target/ + +# Jupyter Notebook +.ipynb_checkpoints + +# IPython +profile_default/ +ipython_config.py + +# pyenv +# For a library or package, you might want to ignore these files since the code is +# intended to run in multiple environments; otherwise, check them in: +# .python-version + +# pipenv +# According to pypa/pipenv#598, it is recommended to include Pipfile.lock in version control. +# However, in case of collaboration, if having platform-specific dependencies or dependencies +# having no cross-platform support, pipenv may install dependencies that don't work, or not +# install all needed dependencies. +#Pipfile.lock + +# poetry +# Similar to Pipfile.lock, it is generally recommended to include poetry.lock in version control. +# This is especially recommended for binary packages to ensure reproducibility, and is more +# commonly ignored for libraries. +# https://python-poetry.org/docs/basic-usage/#commit-your-poetrylock-file-to-version-control +#poetry.lock + +# pdm +# Similar to Pipfile.lock, it is generally recommended to include pdm.lock in version control. +#pdm.lock +# pdm stores project-wide configurations in .pdm.toml, but it is recommended to not include it +# in version control. +# https://pdm.fming.dev/latest/usage/project/#working-with-version-control +.pdm.toml +.pdm-python +.pdm-build/ + +# PEP 582; used by e.g. github.com/David-OConnor/pyflow and github.com/pdm-project/pdm +__pypackages__/ + +# Celery stuff +celerybeat-schedule +celerybeat.pid + +# SageMath parsed files +*.sage.py + +# Environments +.env +.venv +env/ +venv/ +ENV/ +env.bak/ +venv.bak/ + +# Spyder project settings +.spyderproject +.spyproject + +# Rope project settings +.ropeproject + +# mkdocs documentation +/site + +# mypy +.mypy_cache/ +.dmypy.json +dmypy.json + +# Pyre type checker +.pyre/ + +# pytype static type analyzer +.pytype/ + +# Cython debug symbols +cython_debug/ + +# PyCharm +# JetBrains specific template is maintained in a separate JetBrains.gitignore that can +# be found at https://github.com/github/gitignore/blob/main/Global/JetBrains.gitignore +# and can be added to the global gitignore or merged into this file. For a more nuclear +# option (not recommended) you can uncomment the following to ignore the entire idea folder. +#.idea/ + +# База данных SQLite +# Никогда не копировать локальную базу в образ! +db.sqlite3 +db.sqlite3-journal +db.sqlite3-shm +db.sqlite3-wal +*.sqlite3 +*.sqlite3-journaldb.sqlite3 + +# Specific for Project +-design-and-misc/ +# Static / Media +# public/static/ # Исходники статики нужны collectstatic +# public/media # Медиа файлы НЕ нужны в образе, они монтируются как volume +# Мы игнорируем содержимое папки public/media, но оставляем саму папку и README.md +public/media/* +!public/media/README.md +staticfiles/ +public/static/static_collected/ + +# Data Backup +database/data.json diff --git a/README.md b/README.md new file mode 100644 index 0000000..a78184c --- /dev/null +++ b/README.md @@ -0,0 +1,6 @@ +# Сплеш-экран сайта LPON.RU + +## Архив +Легаси проекта, который я задумал в 2018 году, но так и не собрался его реализовать. + +_Не пора ли продолжить?_ :) \ No newline at end of file diff --git a/config/lpon.conf b/config/lpon.conf new file mode 100644 index 0000000..1e48fa4 --- /dev/null +++ b/config/lpon.conf @@ -0,0 +1,81 @@ +# Разработка сайта LPON.RU +# == Конфикурационный файл nginx cadpoint.conf + +# Описываем апстрим-потоки которые должен подключить Nginx +# Для каждого сайта надо настроить свйо поток, со своим уникальным именем. +# Если будете настраивать несколько python (django) сайтов - измените название upstream + +# конфигурируем сервер +server { + server_name lpon.ru; # доменное имя сайта + listen 443 ssl; # managed by Certbot + root /home/web/lpon-ru/public; + location = / { + try_files /index.html =404; + # try_files /index.html; + } + ssl_certificate /etc/letsencrypt/live/lpon.ru/fullchain.pem; # managed by Certbot + ssl_certificate_key /etc/letsencrypt/live/lpon.ru/privkey.pem; # managed by Certbot + include /etc/letsencrypt/options-ssl-nginx.conf; # managed by Certbot + ssl_dhparam /etc/letsencrypt/ssl-dhparams.pem; # managed by Certbot + + charset utf-8; # кодировка по умолчанию + access_log /home/web/lpon-ru/logs/lpon-access.log; # логи с доступом + error_log /home/web/lpon-ru/logs/lpon-error.log; # логи с ошибками + client_max_body_size 100M; # максимальный объем файла для загрузки на сайт (max upload size) + error_page 404 /404.html; + error_page 500 /500.html; + + location /media { alias /home/web/lpon-ru/public/media; } # Расположение media-файлов Django + location /static { alias /home/web/lpon-ru/public/static; } # Расположение static-файлов Django + + location /robots.txt { root /home/web/lpon-ru/public; } # Расположение robots.txt + location /favicon.ico { root /home/web/lpon-ru/public; } # Расположение favicon.ico + location /favicon.gif { root /home/web/lpon-ru/public; } # Расположение favicon + location /favicon.png { root /home/web/lpon-ru/public; } # Расположение favicon + # location /favicon.svg { root /home/web/lpon-ru/public; } # Расположение favicon + # location /author.txt { root /home/web/lpon-ru/public; } # Расположение author.txt + location = /404.html { + root /home/web/lpon-ru/index.html; + internal; + } + # location = /500.html { + # root /home/web/cadpoint/cadpoint/templates/500.html; + # internal; + # } + location ~ \.(html|htm|ico|svg|png|gif|jpg|jpeg)$ { + root /home/web/lpon-ru/public; # Расположение статичных *.xml, *.html и *.txt + } +} + +# переадресация с www на "без" www +server { + server_name www.lpon.ru; + return 301 http://lpon.ru$request_uri; + + listen 443 ssl; # managed by Certbot + ssl_certificate /etc/letsencrypt/live/lpon.ru/fullchain.pem; # managed by Certbot + ssl_certificate_key /etc/letsencrypt/live/lpon.ru/privkey.pem; # managed by Certbot + include /etc/letsencrypt/options-ssl-nginx.conf; # managed by Certbot + ssl_dhparam /etc/letsencrypt/ssl-dhparams.pem; # managed by Certbot +} + +# переадресация с http на https +server { + if ($host = lpon.ru) { + return 301 https://$host$request_uri; + } # managed by Certbot + server_name lpon.ru; + listen 80; + return 404; # managed by Certbot +} + +# переадресация с http на https для www +server { + if ($host = www.lpon.ru) { + return 301 https://$host$request_uri; + } # managed by Certbot + server_name www.lpon.ru; + listen 80; + return 404; # managed by Certbot +} diff --git a/public/favicon.gif b/public/favicon.gif new file mode 100644 index 0000000..959a7d4 Binary files /dev/null and b/public/favicon.gif differ diff --git a/public/favicon.ico b/public/favicon.ico new file mode 100644 index 0000000..c5360d3 Binary files /dev/null and b/public/favicon.ico differ diff --git a/public/favicon.png b/public/favicon.png new file mode 100644 index 0000000..4462a59 Binary files /dev/null and b/public/favicon.png differ diff --git a/public/index.html b/public/index.html new file mode 100644 index 0000000..b8252d5 --- /dev/null +++ b/public/index.html @@ -0,0 +1,56 @@ + + + + + Агрегатор виниловых пластинок LPON: в разработке + + + + + + +
+ + Агрегатор виниловых пластинок LPON: логотип + +

+ vinyl record aggregator   💿   агрегатор виниловых пластинок
+ UNDERCONSTRUCTION   💿   РАЗРАБАТЫВАЕТСЯ +

+ + +
+ +
+ + Top.Mail.Ru + +
+ + + \ No newline at end of file diff --git a/public/index1.html b/public/index1.html new file mode 100755 index 0000000..924fb06 --- /dev/null +++ b/public/index1.html @@ -0,0 +1,56 @@ + + + + + Агрегатор виниловых пластинок LPON: в разработке + + + + + + +
+ + Агрегатор виниловых пластинок LPON: логотип + +

+ vinyl record aggregator   💿   агрегатор виниловых пластинок
+ UNDERCONSTRUCTION   💿   РАЗРАБАТЫВАЕТСЯ +

+ + +
+ +
+ + Top.Mail.Ru + +
+ + + \ No newline at end of file diff --git a/public/index2.html b/public/index2.html new file mode 100755 index 0000000..d9245dc --- /dev/null +++ b/public/index2.html @@ -0,0 +1,87 @@ + + + + + + + + +
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+ + \ No newline at end of file diff --git a/public/robots.txt b/public/robots.txt new file mode 100644 index 0000000..7d329b1 --- /dev/null +++ b/public/robots.txt @@ -0,0 +1 @@ +User-agent: * diff --git a/public/static/img/Led-Zeppelin-I-200x200.jpg b/public/static/img/Led-Zeppelin-I-200x200.jpg new file mode 100644 index 0000000..b7a2d37 Binary files /dev/null and b/public/static/img/Led-Zeppelin-I-200x200.jpg differ diff --git a/public/static/img/Massive-Attack-Heligoland-200x200.jpg b/public/static/img/Massive-Attack-Heligoland-200x200.jpg new file mode 100644 index 0000000..33df6d4 Binary files /dev/null and b/public/static/img/Massive-Attack-Heligoland-200x200.jpg differ diff --git a/public/static/img/Pink-Floyd--Atom-Heart-Mother.jpg b/public/static/img/Pink-Floyd--Atom-Heart-Mother.jpg new file mode 100644 index 0000000..d901bdc Binary files /dev/null and b/public/static/img/Pink-Floyd--Atom-Heart-Mother.jpg differ diff --git a/public/static/img/Portishead--Portishead-200x200.jpg b/public/static/img/Portishead--Portishead-200x200.jpg new file mode 100644 index 0000000..f129651 Binary files /dev/null and b/public/static/img/Portishead--Portishead-200x200.jpg differ diff --git a/public/static/img/The-Beatles-A-Hard-Days-Night-200x200.jpg b/public/static/img/The-Beatles-A-Hard-Days-Night-200x200.jpg new file mode 100644 index 0000000..64d6323 Binary files /dev/null and b/public/static/img/The-Beatles-A-Hard-Days-Night-200x200.jpg differ diff --git a/public/static/img/The-Who-My-Generation-200x200.jpg b/public/static/img/The-Who-My-Generation-200x200.jpg new file mode 100644 index 0000000..67845a3 Binary files /dev/null and b/public/static/img/The-Who-My-Generation-200x200.jpg differ diff --git a/public/static/img/logo-lpon.png b/public/static/img/logo-lpon.png new file mode 100644 index 0000000..d0973f6 Binary files /dev/null and b/public/static/img/logo-lpon.png differ diff --git a/public/static/svgs/LPON-logo-2.svg b/public/static/svgs/LPON-logo-2.svg new file mode 100644 index 0000000..686759f --- /dev/null +++ b/public/static/svgs/LPON-logo-2.svg @@ -0,0 +1,32 @@ + + + + + + + + + + + + + + + + + + + + + diff --git a/public/static/svgs/LPON-logo.svg b/public/static/svgs/LPON-logo.svg new file mode 100644 index 0000000..56bfb43 --- /dev/null +++ b/public/static/svgs/LPON-logo.svg @@ -0,0 +1,41 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/public/static/svgs/logo-w-line.svg b/public/static/svgs/logo-w-line.svg new file mode 100644 index 0000000..4c511dd --- /dev/null +++ b/public/static/svgs/logo-w-line.svg @@ -0,0 +1,106 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +