mirror of
https://github.com/neocities/neocities.git
synced 2025-04-25 01:32:36 +02:00
Neocities.org - the web site. Yep, the backend is open source!
The .well-known directory has uses other than ACME challenge response, so deleting the whole thing as cleanup is incorrect. I ran into an issue where files I uploaded inside that directory (which worked initially) disappeared after a while, I assume around the time neocities renewed the certs for my custom domain. The file (and the .well-known dir) still appeared in GETs on the /api/list endpoint, but requests for them on my site returned 404. I tried to re-upload the original to the same path but it appears since it had the same content some optimization was preventing it from restoring the deleted file, because it continued to 404. Uploading the same file to a different path inside .well-known worked, and then uploading a file with different content to the original path worked. This commit changes the ACME cleanup code to only remove the .well-known/acme-challenge directory that it uses, and leaves any other files alone. |
||
---|---|---|
.github/workflows | ||
app | ||
ext | ||
files | ||
migrations | ||
models | ||
public | ||
sass | ||
tests | ||
vagrant | ||
views | ||
workers | ||
.gitignore | ||
app.rb | ||
app_helpers.rb | ||
code-of-conduct.txt | ||
config.ru | ||
config.yml.ci | ||
config.yml.template | ||
environment.rb | ||
Gemfile | ||
Gemfile.lock | ||
LICENSE.txt | ||
puma_config.rb | ||
rainbows_config.rb | ||
Rakefile | ||
README.md | ||
Vagrantfile |
NOTE: THIS IS NOT FOR NEOCITIES SUPPORT! Any issues filed not related to the source code itself will be closed. For support please contact: https://neocities.org/contact
Neocities.org
The web site for Neocities! It's open source. Want a feature on the site? Send a pull request!
Getting Started
Neocities can be quickly launched in development mode with Vagrant. Vagrant builds a virtual machine that automatically installs everything you need to run Neocities as a developer. Install Vagrant, then from the command line:
vagrant up --provision
Make a copy of config.yml.template
in the root directory, and rename it to config.yml
. Then:
vagrant ssh
bundle exec rackup -o 0.0.0.0
Now you can access the running site from your browser: http://127.0.0.1:9292
Want to contribute?
If you'd like to fix a bug, or make an improvement, or add a new feature, it's easy! Just send us a Pull Request.
- Fork it (https://github.com/neocities/neocities/fork)
- Create your feature branch (
git checkout -b my-new-feature
) - Commit your changes (
git commit -am 'Add some feature'
) - Push to the branch (
git push origin my-new-feature
) - Create new Pull Request