generated from just-the-docs/just-the-docs-template
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* add basic roadrunner + router * add the host vault path to the env * setup PSR worker * working file scanner dumb shell * rename to memorelia and move server * add checksum * Update .gitignore * add scan features * Delete Dummy.php * remove debug from home controller * add script to generate routes * rename namespace to App * add 404 and other goodies * add a simple test * add service provider * scan endpoint dispatches scan job * scan file progress * no need for RPC here (yet) * Update DirectoryScan.php * add directory scan test * use interface for logger * extra checks * file removed job * extract queue mock * remove null logger * send hash to process, if available * add file created action * add dummy file-moved * add the filemoved * add file updated * watch and tests working * add FileRecreated scan action * remove unused code * fixes and refactoring
- Loading branch information
Showing
61 changed files
with
6,724 additions
and
24 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
# By default, the vault storage is this ./vault folder | ||
# Change it to where your storage volume is mounted | ||
HOST_VAULT_PATH=vault | ||
|
||
POSTGRES_HOST=postgres | ||
POSTGRES_DB=postgres | ||
POSTGRES_USER=postgres | ||
POSTGRES_PASSWORD=mysecretpassword | ||
|
||
# ==================================================== | ||
# Don't need to change these... | ||
VAULT_PATH=/vault |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
{ | ||
// Use IntelliSense to learn about possible attributes. | ||
// Hover to view descriptions of existing attributes. | ||
// For more information, visit: https://go.microsoft.com/fwlink/?linkid=830387 | ||
"version": "0.2.0", | ||
"configurations": [ | ||
{ | ||
"name": "Listen for Xdebug", | ||
"type": "php", | ||
"request": "launch", | ||
"port": 9003, | ||
"pathMappings": { | ||
"/var/www": "${workspaceFolder}/roadrunner" | ||
}, | ||
"hostname": "localhost", | ||
} | ||
] | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
{ | ||
"folders": [ | ||
{ | ||
"path": ".." | ||
} | ||
], | ||
"settings": { | ||
"intelephense.environment.phpVersion": "8.1.0" | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
{ | ||
"intelephense.environment.phpVersion": "8.1.0", | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
# Use an official PostgreSQL runtime as a parent image | ||
FROM postgres:15-alpine3.18 | ||
|
||
# Set the working directory in the container to /docker-entrypoint-initdb.d | ||
# This is the directory that Postgres runs scripts from during the container startup | ||
WORKDIR /docker-entrypoint-initdb.d | ||
|
||
# Copy the SQL script into the container | ||
# Your script must be in the same directory as your Dockerfile | ||
COPY ./init.sql ./init.sql | ||
|
||
# Copy the Postgres configuration file into the container | ||
COPY ./postgres.conf /etc/postgresql/postgresql.conf | ||
|
||
# Make sure the script is executable | ||
RUN chmod +x ./init.sql | ||
|
||
# When the container starts, this script will be run | ||
# followed by anything in /docker-entrypoint-initdb.d | ||
CMD ["postgres"] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
CREATE TABLE files ( | ||
id SERIAL PRIMARY KEY, | ||
hash VARCHAR(64) NOT NULL, | ||
path TEXT UNIQUE NOT NULL, | ||
filename TEXT, | ||
filesize BIGINT, | ||
mime TEXT, | ||
date_created TIMESTAMP, | ||
gps_lat REAL, | ||
gps_lon REAL, | ||
gps_alt REAL, | ||
scan_version INTEGER, | ||
scanned_at TIMESTAMP, | ||
created_at TIMESTAMP NOT NULL DEFAULT CURRENT_TIMESTAMP, | ||
updated_at TIMESTAMP NOT NULL DEFAULT CURRENT_TIMESTAMP, | ||
removed_at TIMESTAMP | ||
); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
{ | ||
"Servers": { | ||
"1": { | ||
"Name": "postgres", | ||
"Group": "Servers", | ||
"Host": "postgres", | ||
"Port": 5432, | ||
"MaintenanceDB": "postgres", | ||
"Username": "postgres", | ||
"UseSSHTunnel": 0, | ||
"TunnelPort": "22", | ||
"TunnelAuthentication": 0, | ||
"KerberosAuthentication": false, | ||
"ConnectionParameters": { | ||
"sslmode": "prefer", | ||
"connect_timeout": 10 | ||
} | ||
} | ||
} | ||
} |
Oops, something went wrong.