remove unused code
This commit is contained in:
259
README.md
259
README.md
@ -1,259 +0,0 @@
|
|||||||
# The Tempus Project
|
|
||||||
|
|
||||||
_Rapid Prototyping Framework built on PHP utilizing the MVC pattern with a Bootstrap front-end_
|
|
||||||
|
|
||||||
__Developer(s):__
|
|
||||||
|
|
||||||
- __Joey Kimsey__ - _Lead Developer_
|
|
||||||
|
|
||||||
The aim of this project is to provide a simple and stable platform from which to easily add functionality. The goal being the ability to quickly build and test new projects with a lightweight ecosystem to help.
|
|
||||||
|
|
||||||
**Notice: This code is in _still_ not production ready. This framework is provided as is, use at your own risk.**\
|
|
||||||
I am working very hard to ensure the system is safe and reliable enough for me to endorse its widespread use. Unfortunately, it still needs a lot of QA and improvements.
|
|
||||||
|
|
||||||
## Table of contents
|
|
||||||
|
|
||||||
[[_TOC_]]
|
|
||||||
|
|
||||||
## Find Us
|
|
||||||
|
|
||||||
* [DockerHub](https://hub.docker.com/repositories/thetempusproject)
|
|
||||||
* [Packagist](https://packagist.org/users/joeyk4816/packages/)
|
|
||||||
* [GitLab](https://git.thetempusproject.com/the-tempus-project/thetempusproject)
|
|
||||||
|
|
||||||
## Summary
|
|
||||||
|
|
||||||
The Tempus Project is a PHP application utilizing the MVC pattern to serve up simple pages and APIs with minimal effort. It requires a MySQL database to function and is designed to run equally well with nginx or apache powering the webserver. Most of the core functionality is developed in house and provided through dependencies. At this time, the frontend is driven on bootstrap 3 and FontAwesome for simplicity.
|
|
||||||
|
|
||||||
## Features
|
|
||||||
|
|
||||||
- A Plugin system that allows plug-and-play functionality
|
|
||||||
- A User management system
|
|
||||||
- groups
|
|
||||||
- permissions
|
|
||||||
- preferences
|
|
||||||
- registration and recovery
|
|
||||||
(All Controlled dynamically via our plugin interface)
|
|
||||||
- Compatibility with both Apache and NGINX
|
|
||||||
- Built with Bootstrap with a focus on mobile compatibility
|
|
||||||
- Incredibly easy to set-up, deploy, and develop
|
|
||||||
|
|
||||||
## Installation
|
|
||||||
|
|
||||||
The preferred method for installation is [Composer](#composer) but special attention has been given to installation and usage [without Composer](#composer).
|
|
||||||
|
|
||||||
### Composer
|
|
||||||
|
|
||||||
The simplest method to start a new project is to use composer to create a new project and automatically clone all the necessary files:
|
|
||||||
|
|
||||||
#### via create-project
|
|
||||||
|
|
||||||
```
|
|
||||||
composer create-project thetempusproject/thetempusproject test-app
|
|
||||||
```
|
|
||||||
|
|
||||||
#### via clone & install
|
|
||||||
|
|
||||||
1. Clone the directory to wherever you want to install the framework.
|
|
||||||
`git clone https://git.thetempusproject.com/the-tempus-project/thetempusproject.git <test-app>`
|
|
||||||
1. Open your terminal to the directory you previously cloned the repository.
|
|
||||||
`cd <test-app>`
|
|
||||||
1. Install using composer:
|
|
||||||
`php composer.phar install`
|
|
||||||
|
|
||||||
### Manually
|
|
||||||
|
|
||||||
1. Clone the directory to wherever you want to install the framework.
|
|
||||||
`git clone https://git.thetempusproject.com/the-tempus-project/thetempusproject.git <test-app>`
|
|
||||||
1. Open your terminal to the directory you previously cloned the repository.
|
|
||||||
`cd <test-app>/`
|
|
||||||
1. Clone the dependency directories to the vendor/ folder.
|
|
||||||
```
|
|
||||||
cd vendor/
|
|
||||||
git clone https://git.thetempusproject.com/the-tempus-project/bedrock.git bedrock
|
|
||||||
git clone https://git.thetempusproject.com/the-tempus-project/canary.git canary
|
|
||||||
git clone https://git.thetempusproject.com/the-tempus-project/hermes.git hermes
|
|
||||||
git clone https://git.thetempusproject.com/the-tempus-project/houdini.git houdini
|
|
||||||
```
|
|
||||||
|
|
||||||
__Note:__ The autoloader should automatically detect and use the dependencies, but they need to be sorted into the folders ans shown above.
|
|
||||||
|
|
||||||
|
|
||||||
## Docker
|
|
||||||
|
|
||||||
To enable quick deployment and collaboration The Tempus Project is distributed with the files to build your own docker images or stack with apache or nginx The included `docker-compose.yml` will load up an entire stack including apache and nginx, as well as a MySQL server with phpmyadmin.
|
|
||||||
|
|
||||||
You will need docker installed on your system then you can either download the latest images from DockerHud:
|
|
||||||
|
|
||||||
```
|
|
||||||
docker pull thetempusproject/ttp-apache
|
|
||||||
docker pull thetempusproject/ttp-nginx
|
|
||||||
```
|
|
||||||
|
|
||||||
Or you can build your own images from this repository. More information can be found in the included README files:
|
|
||||||
|
|
||||||
* [Apache Image](docker/ttp-apache/README.md)
|
|
||||||
* [Nginx Image](docker/ttp-nginx/README.md)
|
|
||||||
|
|
||||||
### Docker-Compose
|
|
||||||
|
|
||||||
The Docker stack included here will build new versions of the nginx and apache webserver and launch them in individual containers. It will also create 2 more containers; one for php, and one for phpmyadmin.
|
|
||||||
|
|
||||||
```
|
|
||||||
docker-compose -f docker-compose.yml up --build -d --no-cache
|
|
||||||
```
|
|
||||||
|
|
||||||
__Note:__ If you cloned the repository from git, you will need to copy the `docker/.env.example` to `.env` in the root directory and update the contents before proceeding with docker-compose.
|
|
||||||
|
|
||||||
## Contributing
|
|
||||||
|
|
||||||
TheTempusProject is an open source project and welcomes community contributions. Please refer to the [Contributing file](CONTRIBUTING.md) for more details.
|
|
||||||
|
|
||||||
## License
|
|
||||||
|
|
||||||
See the [LICENSE](LICENSE) file for licensing information as it pertains to files in this repository.
|
|
||||||
|
|
||||||
## Known Issues
|
|
||||||
|
|
||||||
- [ ] The blog plugin should add a welcome post during the installResources step of the installer. It doesn't work right now.
|
|
||||||
|
|
||||||
## Currently being developed
|
|
||||||
|
|
||||||
- [ ] Adding documentation
|
|
||||||
- [ ] Unit testing
|
|
||||||
|
|
||||||
## Future updates
|
|
||||||
|
|
||||||
- [ ] Expansion of PDO to allow different database types
|
|
||||||
- [ ] Update installer to account for database deltas, allowing easy updating.
|
|
||||||
- [ ] Implement uniformity in terms of error reporting, exceptions, logging.
|
|
||||||
- [ ] I want to make an api that allows you to download and install new plugins from a centralized repository
|
|
||||||
- [ ] i want plugin instalation to be compatible with composer for easier management of added plugins.
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
e-corp backup
|
|
||||||
jfk tapes
|
|
||||||
ruby ridge shooter confession
|
|
||||||
obamas kenyan birth certificate
|
|
||||||
trumps taxes
|
|
||||||
buiilding 7 charge placement map
|
|
||||||
moon landing script
|
|
||||||
Real Twitter users (Page 1 of 1)
|
|
||||||
binders full of women
|
|
||||||
gelaines panel
|
|
||||||
Illumiinati Training - year 6
|
|
||||||
Error 404 Page - The link
|
|
||||||
Contacts - B. Footy
|
|
||||||
11,778 votes
|
|
||||||
Patent Filing - Approved - iSuck
|
|
||||||
the remote
|
|
||||||
a clue
|
|
||||||
Out of stock - Nevel's Novelties
|
|
||||||
Google Maps - 33°24'55.8"N 43°18'33.3"E - WMD
|
|
||||||
Youtube - Unlisted Video PP Tape
|
|
||||||
|
|
||||||
|
|
||||||
Ark of the Covenant
|
|
||||||
|
|
||||||
jimmy hoffa's body
|
|
||||||
|
|
||||||
atlantis
|
|
||||||
bbermuda triangle
|
|
||||||
|
|
||||||
pentagon audit money
|
|
||||||
Lost Inca gold
|
|
||||||
|
|
||||||
|
|
||||||
craiig's list
|
|
||||||
|
|
||||||
The original crown jewels of England
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
Contents
|
|
||||||
Solomon Northup, Author of "12 Years a Slave"
|
|
||||||
Jimmy Hoffa
|
|
||||||
The Lost Colony of Roanoke
|
|
||||||
Three Alcatraz Escapees
|
|
||||||
Richard Serra's "Equal-Parallel: Guernica-Bengasi"
|
|
||||||
Helen Brach
|
|
||||||
George Washington's False Teeth
|
|
||||||
Flight 19
|
|
||||||
The Crew of the Mary Celeste
|
|
||||||
Pro Basketball Star John Brisker
|
|
||||||
|
|
||||||
|
|
||||||
Lost Imperial Fabergé eggs
|
|
||||||
|
|
||||||
|
|
||||||
Crown Jewels of Ireland
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
e-corp backup
|
|
||||||
jfk tapes
|
|
||||||
ruby ridge shooter confession
|
|
||||||
obamas kenyan birth certificate
|
|
||||||
trumps taxes
|
|
||||||
buiilding 7 charge placement map
|
|
||||||
moon landing script
|
|
||||||
Real Twitter users (Page 1 of 1)
|
|
||||||
binders full of women
|
|
||||||
gelaines panel
|
|
||||||
Illumiinati Training - year 6
|
|
||||||
Error 404 Page - The link
|
|
||||||
Contacts - B. Footy
|
|
||||||
11,778 votes
|
|
||||||
Patent Filing - Approved - iSuck
|
|
||||||
the remote
|
|
||||||
a clue
|
|
||||||
Out of stock - Nevel's Novelties
|
|
||||||
Google Maps - 33°24'55.8"N 43°18'33.3"E - WMD
|
|
||||||
Youtube - Unlisted Video PP Tape
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
The Roanoke Colonists
|
|
||||||
|
|
||||||
|
|
||||||
D.B. Cooper
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
Malaysia Airlines Flight 370
|
|
||||||
|
|
||||||
lost paiintings
|
|
||||||
The Concert by Johannes Vermeer
|
|
||||||
The Storm on the Sea of Galilee by Rembrandt van Rijn
|
|
||||||
Poppy Flowers by Vincent van Gogh
|
|
||||||
The Just Judges by Jan van Eyck
|
|
||||||
|
|
||||||
Waterloo Bridge, London (1901) by Claude Monet October 15–16, 2012 Kunsthal museum in Rotterdam
|
|
||||||
Main article: Kunsthal § Art theft
|
|
||||||
|
|
||||||
Presumably burnt by an accomplice[23][24][25] Unknown ?
|
|
||||||
|
|
||||||
Charing Cross Bridge, London (1901) by Claude Monet
|
|
||||||
|
|
||||||
The Painter on His Way to Work by Vincent van Gogh
|
|
||||||
|
|
||||||
Portrait of Adele Bloch-Bauer I by Gustav Klimt
|
|
||||||
En Canot, by Jean Metzinger
|
|
||||||
|
|
||||||
|
|
||||||
The Concert by Vermeer Est. $20,000,000–priceless[1]
|
|
||||||
|
|
||||||
Death of Nero
|
|
||||||
Disappearance of Harold Holt
|
|
||||||
|
|
||||||
George Soros
|
|
||||||
|
|
||||||
Qanon contact
|
|
||||||
BlueAnon contact
|
|
121
server/README.md
121
server/README.md
@ -1,121 +0,0 @@
|
|||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
sudo apt update
|
|
||||||
|
|
||||||
|
|
||||||
======== PHP ==============
|
|
||||||
|
|
||||||
apt-get install python-software-properties
|
|
||||||
sudo add-apt-repository ppa:ondrej/php
|
|
||||||
apt-get update
|
|
||||||
sudo apt-get install php8.2-cli php8.2-fpm
|
|
||||||
|
|
||||||
update-alternatives --set php /usr/bin/php8.2-fpm
|
|
||||||
|
|
||||||
sudo apt install php8.2-common php8.2-mysql php8.2-xml php8.2-xmlrpc php8.2-curl php8.2-gd php8.2-imagick php8.2-cli php8.2-dev php8.2-imap php8.2-mbstring php8.2-opcache php8.2-soap php8.2-zip php8.2-redis php8.2-intl unzip -y
|
|
||||||
|
|
||||||
cd ~
|
|
||||||
curl -sS https://getcomposer.org/installer -o /tmp/composer-setup.php
|
|
||||||
|
|
||||||
HASH=`curl -sS https://composer.github.io/installer.sig`
|
|
||||||
|
|
||||||
php -r "if (hash_file('SHA384', '/tmp/composer-setup.php') === '$HASH') { echo 'Installer verified'; } else { echo 'Installer corrupt'; unlink('composer-setup.php'); } echo PHP_EOL;"
|
|
||||||
|
|
||||||
|
|
||||||
sudo php /tmp/composer-setup.php --install-dir=/usr/local/bin --filename=composer
|
|
||||||
|
|
||||||
cd /var/www/
|
|
||||||
composer create-project thetempusproject/thetempusproject allthebookmarks
|
|
||||||
|
|
||||||
|
|
||||||
< I then copied all my updates manuyally, deletiing the ixiisting files >
|
|
||||||
|
|
||||||
mkdir /etc/nginx/sites-available/old/
|
|
||||||
sudo mv /etc/nginx/sites-available/* /etc/nginx/sites-available/old/
|
|
||||||
sudo rm -rf /etc/nginx/sites-enabled/*
|
|
||||||
touch /etc/nginx/sites-available/allthebookmarks.com.conf
|
|
||||||
sudo ln -s /etc/nginx/sites-available/allthebookmarks.com.conf /etc/nginx/sites-enabled/allthebookmarks.com.conf
|
|
||||||
|
|
||||||
< you now need to copy the correct content to the new file >
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
sudo systemctl restart nginx.service
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
publiic ip
|
|
||||||
74.207.230.135
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
Email address (for the Let's Encrypt SSL certificate) (required)
|
|
||||||
webmaster@allthebookmarks.com
|
|
||||||
|
|
||||||
|
|
||||||
The limited sudo user to be created for the Linode: *No Capital Letters or Special Characters* (required)
|
|
||||||
joey
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
Security
|
|
||||||
Root Password
|
|
||||||
131df9fbc597cf0eac3424
|
|
||||||
|
|
||||||
mysql db allthebookmarks@localhost
|
|
||||||
|
|
||||||
Xiv9_JrXXhF9I
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
SELECT User, Host FROM mysql.user;
|
|
||||||
|
|
||||||
|
|
||||||
CREATE USER 'allthebookmarks'@'localhost' IDENTIFIED BY 'Xiv9_JrXXhF9I';
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
SHOW GRANTS FOR 'allthebookmarks'@'localhost';
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
GRANT ALL PRIVILEGES ON * . * TO 'allthebookmarks'@'localhost';
|
|
||||||
|
|
||||||
FLUSH PRIVILEGES;
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
SHOW DATABASES;
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
CREATE DATABASE allthebookmarks;
|
|
@ -1,28 +0,0 @@
|
|||||||
-----BEGIN PRIVATE KEY-----
|
|
||||||
MIIEvQIBADANBgkqhkiG9w0BAQEFAASCBKcwggSjAgEAAoIBAQCwn7fNgRK9ConV
|
|
||||||
7f+B6dHx3yQ7i54Mf6mGcu9rY97pJuaK8JFqwuZmLJMRE/HiUiKmbf+r2F+DFOAp
|
|
||||||
qCfINouxhmEXp2eYjfNzpQ3vqPWJRHs419NLPhnLj0kM/kZv8U/Iys+CEnOiT9Mp
|
|
||||||
JYE51QEi1hxMnVinGiECZA3+ySxnT/diowgqYQMzdvcNGk3OiQ+f616b9QGtI0fo
|
|
||||||
HMj6t6vaEGOV5BYbYpTEnp1NNI4YzJlWb11+Pjs0yy/OmS83VcHvriFNgP0RAgqy
|
|
||||||
AUID0yxNHCjMVtD0RAJPWFcE/tm2Y0taSGazhX+kLAN5IYffnUOTry25Y661uHoT
|
|
||||||
JcEA9A7jAgMBAAECggEAEBUFmBFanW/qNlp3W2Lo74xmhi149KEN1I9+kVlZ9gIe
|
|
||||||
wnk+eb7JWnWl5nYvHhu7H/WqxADtoXKIfq0wV3Xv/k1tZclOZiuhW975h+BAiyvQ
|
|
||||||
dHqNDgWCNRtqMWQDEd+iaMwJXPSafCWnOns5wFmkGCyauGHTV/50Zv1T8OZsbp5I
|
|
||||||
Om91AO086EljbFhBuwPVuhjtJgykYew5uu87WHosZPBHnyAqakhAWHApgbjPK4tA
|
|
||||||
pLVKQUZ3WpehBcLPysFpqiFY3GcOtKHoUJwVFCCKH9jeWPnnuwCExASWpElr0krn
|
|
||||||
2E2wuCqjUCHqDboxG6Mg0SGRBO6JdJ2FP+BMPElu8QKBgQD3FRMCVq+zFIfntNwV
|
|
||||||
8tVgl43OaFKJ6tWhO4s06O/zAYi6XwsE17WUPSawwek0gepOILqXtRakYRDHNWBb
|
|
||||||
u1+D7iEewLDK1q27Pav94Etett5cXdlqmMuHhQY01Giap4aC15x5nKnsgQwkTQw0
|
|
||||||
P6TUqz6EZ1Iv3Ef5DlOcWwZUpwKBgQC2/6QCfir04M01tX5HgVDApz1roy8pfBer
|
|
||||||
Opzrryiq9KTAfd8JNWAvCDRfb5iIOJmG5maYfMo2FaNQ8ZqDy03iOBro9rHNzCKe
|
|
||||||
rurxtEN+v438LAMh6CTkL/5V3H/u/WnrSyZnwvGeg/9uY3il1D3MOBqKNfkyhfiP
|
|
||||||
i4S3vgYvZQKBgDweSpPFF9cQ5ciA/xPwE+7+sShJxdt84iHq5QIos0mDVAtU2M+C
|
|
||||||
1NGO130mkWGPQr1jxULocuvoGjb+S8XGH4VwSWq8I8gW2Aq5BMIu8ufGwu/ifeYr
|
|
||||||
60m8Gjh8fj8zB82KPK5yaf37oEKs5I1J9wcv63Q3142BoZl93OYsV6v9AoGAB+b2
|
|
||||||
IB1uoXBrrBwQPeo5oHgYUOOVD8eKBhzb1dmUef1id+V3kiA57Q3/pPdesNMw3gBp
|
|
||||||
AcCxwrAgg0hLkdFfpZsinli4yNg9znhjMNjF6V1ANll4MSijHy9rXi3NYHaU8lIm
|
|
||||||
cGicomm0yAGHnjGSEZWCn+FAx4u9dgViT8Tm43kCgYEAtCbFLe6Xflq1eFs0tW8l
|
|
||||||
7ONWggQnJWmNxtkvp6BdABCftirgEgplreJU522rDykOn//vDQw3Bxy+ONRdGGlq
|
|
||||||
zJMkYNqWvBB1pfsFtAsge+iholqj7o16R97AMXzMtYrjF/NlvMGK7qDemxRuXvCE
|
|
||||||
mLf4JUX9F+4gNQZFWOaJZK0=
|
|
||||||
-----END PRIVATE KEY-----
|
|
@ -1,24 +0,0 @@
|
|||||||
-----BEGIN CERTIFICATE-----
|
|
||||||
MIIEFTCCAv2gAwIBAgIUJyD1kpPruuSjW0Xp+eDB5PUYSOowDQYJKoZIhvcNAQEL
|
|
||||||
BQAwgagxCzAJBgNVBAYTAlVTMRMwEQYDVQQIEwpDYWxpZm9ybmlhMRYwFAYDVQQH
|
|
||||||
Ew1TYW4gRnJhbmNpc2NvMRkwFwYDVQQKExBDbG91ZGZsYXJlLCBJbmMuMRswGQYD
|
|
||||||
VQQLExJ3d3cuY2xvdWRmbGFyZS5jb20xNDAyBgNVBAMTK01hbmFnZWQgQ0EgZDJk
|
|
||||||
NWNhYTY4ZTAwMDA5YmU5YWNiNTliMWVlZTE4YzMwHhcNMjQxMjEyMjMyMTAwWhcN
|
|
||||||
MzQxMjEwMjMyMTAwWjAiMQswCQYDVQQGEwJVUzETMBEGA1UEAxMKQ2xvdWRmbGFy
|
|
||||||
ZTCCASIwDQYJKoZIhvcNAQEBBQADggEPADCCAQoCggEBALCft82BEr0KidXt/4Hp
|
|
||||||
0fHfJDuLngx/qYZy72tj3ukm5orwkWrC5mYskxET8eJSIqZt/6vYX4MU4CmoJ8g2
|
|
||||||
i7GGYRenZ5iN83OlDe+o9YlEezjX00s+GcuPSQz+Rm/xT8jKz4ISc6JP0yklgTnV
|
|
||||||
ASLWHEydWKcaIQJkDf7JLGdP92KjCCphAzN29w0aTc6JD5/rXpv1Aa0jR+gcyPq3
|
|
||||||
q9oQY5XkFhtilMSenU00jhjMmVZvXX4+OzTLL86ZLzdVwe+uIU2A/RECCrIBQgPT
|
|
||||||
LE0cKMxW0PREAk9YVwT+2bZjS1pIZrOFf6QsA3khh9+dQ5OvLbljrrW4ehMlwQD0
|
|
||||||
DuMCAwEAAaOBuzCBuDATBgNVHSUEDDAKBggrBgEFBQcDAjAMBgNVHRMBAf8EAjAA
|
|
||||||
MB0GA1UdDgQWBBT1YGr8qlQQ9uFN2zB8/E0fAaJkwDAfBgNVHSMEGDAWgBR8vfq4
|
|
||||||
V6tsq1fU+eA0UiEPxba4tzBTBgNVHR8ETDBKMEigRqBEhkJodHRwOi8vY3JsLmNs
|
|
||||||
b3VkZmxhcmUuY29tL2YyZDMxNjRjLWQ1NWYtNGM4MS1hOGE3LTI2MDZlYTU2YzBm
|
|
||||||
Mi5jcmwwDQYJKoZIhvcNAQELBQADggEBAFw3p9dqEaqA9RhQqw5IkH+Woop26IUB
|
|
||||||
qQBQpLVbU5BQECF0U4579DhSfUWnZNorICMlO+7ncpZuegjJslfN2eIw4GXVG4Vt
|
|
||||||
bSKvZyq4tBOVMucRfbtm0aet1jPtLM2JN9JDnBuanQjDFmxy6tgZZU0DK79mwH5T
|
|
||||||
GeYimmqefwCZHNEGDhB/CIaC87Q+KsFO+Hgn60CG+H7aR13EH+jyNwoQgzbnoPnK
|
|
||||||
mQunF2P4zom4+DrIcoVWoXVlw841cxljYPi9gjtt0bjZbJilMGI1764y6CVapLUP
|
|
||||||
kiqzVFNw86veQ52usc5Vej+YCRrrBtGzTHaMJ7THAbNoBBmjROyEuZA=
|
|
||||||
-----END CERTIFICATE-----
|
|
@ -1,35 +0,0 @@
|
|||||||
upstream php {
|
|
||||||
server unix:/run/php/php8.2-fpm.sock;
|
|
||||||
}
|
|
||||||
|
|
||||||
server {
|
|
||||||
listen 80;
|
|
||||||
listen [::]:80;
|
|
||||||
server_name allthebookmarks.com;
|
|
||||||
include snippets/well-known;
|
|
||||||
return 301 https://$host$request_uri;
|
|
||||||
}
|
|
||||||
|
|
||||||
server {
|
|
||||||
listen 443 ssl http2 default_server;
|
|
||||||
listen [::]:443 ssl http2 default_server;
|
|
||||||
server_name allthebookmarks.com;
|
|
||||||
include snippets/ssl-params.conf;
|
|
||||||
root /var/www/allthebookmarks.com;
|
|
||||||
index index.php;
|
|
||||||
|
|
||||||
client_max_body_size 100M;
|
|
||||||
|
|
||||||
autoindex off;
|
|
||||||
|
|
||||||
# custom TTP code
|
|
||||||
include snippets/ttp.conf;
|
|
||||||
|
|
||||||
location ~* \.php$ {
|
|
||||||
fastcgi_pass php;
|
|
||||||
include fastcgi_params;
|
|
||||||
fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;
|
|
||||||
include fastcgi_params;
|
|
||||||
fastcgi_intercept_errors on;
|
|
||||||
}
|
|
||||||
}
|
|
@ -1,89 +0,0 @@
|
|||||||
add_header X-Frame-Options "SAMEORIGIN";
|
|
||||||
add_header X-Content-Type-Options "nosniff";
|
|
||||||
|
|
||||||
charset utf-8;
|
|
||||||
|
|
||||||
ssl_certificate /etc/nginx/ssl/allthebookmarks.com.pem;
|
|
||||||
ssl_certificate_key /etc/nginx/ssl/allthebookmarks.com.key;
|
|
||||||
|
|
||||||
error_page 404 /index.php;
|
|
||||||
|
|
||||||
location = /favicon.ico {
|
|
||||||
log_not_found off;
|
|
||||||
access_log off;
|
|
||||||
}
|
|
||||||
|
|
||||||
location = /robots.txt {
|
|
||||||
allow all;
|
|
||||||
log_not_found off;
|
|
||||||
access_log off;
|
|
||||||
}
|
|
||||||
|
|
||||||
location ~ /\.(?!well-known).* {
|
|
||||||
deny all;
|
|
||||||
}
|
|
||||||
|
|
||||||
location ~ /\.ht {
|
|
||||||
deny all;
|
|
||||||
}
|
|
||||||
|
|
||||||
location ~ ^/(doc|sql|setup)/ {
|
|
||||||
deny all;
|
|
||||||
}
|
|
||||||
|
|
||||||
location ~ /\. {
|
|
||||||
deny all;
|
|
||||||
}
|
|
||||||
|
|
||||||
location ~* \.(?:js|css|png|jpg|gif|ico|woff|tff|woff2|min.css.map)$ {
|
|
||||||
access_log off;
|
|
||||||
log_not_found off;
|
|
||||||
}
|
|
||||||
|
|
||||||
location /js/ {
|
|
||||||
access_log off;
|
|
||||||
log_not_found off;
|
|
||||||
try_files $uri /index.php?error=js404&file=$uri;
|
|
||||||
}
|
|
||||||
|
|
||||||
location /css/ {
|
|
||||||
access_log off;
|
|
||||||
log_not_found off;
|
|
||||||
try_files $uri /index.php?error=css404&file=$uri;
|
|
||||||
}
|
|
||||||
|
|
||||||
location /images/ {
|
|
||||||
try_files $uri /index.php?error=image404&url=$uri;
|
|
||||||
}
|
|
||||||
|
|
||||||
location /uploads/ {
|
|
||||||
try_files $uri /index.php?error=upload404&url=$uri;
|
|
||||||
}
|
|
||||||
|
|
||||||
location /errors/ {
|
|
||||||
try_files $uri /index.php?error=$uri;
|
|
||||||
}
|
|
||||||
|
|
||||||
location /api/ {
|
|
||||||
# Handle CORS for all requests
|
|
||||||
if ($request_method = 'POST') {
|
|
||||||
add_header 'Access-Control-Allow-Origin' '*' always;
|
|
||||||
add_header 'Access-Control-Allow-Methods' 'GET, POST, OPTIONS' always;
|
|
||||||
add_header 'Access-Control-Allow-Headers' 'Authorization, DNT, User-Agent, X-Requested-With, If-Modified-Since, Cache-Control, Content-Type, Range' always;
|
|
||||||
add_header 'Access-Control-Expose-Headers' 'Content-Length, Content-Range' always;
|
|
||||||
}
|
|
||||||
# Handle preflight requests
|
|
||||||
if ($request_method = 'OPTIONS') {
|
|
||||||
add_header 'Access-Control-Allow-Origin' '*' always;
|
|
||||||
add_header 'Access-Control-Allow-Headers' 'Authorization, DNT, User-Agent, X-Requested-With, If-Modified-Since, Cache-Control, Content-Type, Range' always;
|
|
||||||
add_header 'Access-Control-Max-Age' 1728000;
|
|
||||||
add_header 'Content-Type' 'text/plain; charset=utf-8' always;
|
|
||||||
return 204; # Return no content for preflight
|
|
||||||
}
|
|
||||||
|
|
||||||
rewrite ^/(.+)$ /index.php?url=$1&$args;
|
|
||||||
}
|
|
||||||
|
|
||||||
location / {
|
|
||||||
rewrite ^/(.+)$ /index.php?url=$1&$args;
|
|
||||||
}
|
|
Reference in New Issue
Block a user