Compare commits
121 Commits
Author | SHA1 | Date |
---|---|---|
saeid | a8366d0944 | 1 year ago |
saeid | 4356871ac4 | 2 years ago |
saeid | 4497bed50f | 2 years ago |
saeid | d7c4071344 | 2 years ago |
saeid | bf3cf09e68 | 2 years ago |
saeid | 5c4ba969eb | 2 years ago |
saeid | e0aceea1f7 | 2 years ago |
saeid | 02dbfff4d6 | 2 years ago |
saeid | 07396ee656 | 2 years ago |
farid | d2e5ec8544 | 2 years ago |
saeid | c3b29b16af | 2 years ago |
saeid | ef31b2e296 | 2 years ago |
saeid_01 | b1b8d3fb8c | 2 years ago |
saeid_01 | efc348589e | 2 years ago |
Alireza Azizi | d3a1f20001 | 2 years ago |
Alireza Azizi | fa1350b252 | 2 years ago |
saeid | 7f758bdefc | 2 years ago |
saeid | 0bcbc89510 | 2 years ago |
Alireza Azizi | e7a2633523 | 2 years ago |
Alireza Azizi | 35bf5d4db6 | 2 years ago |
Alireza Azizi | dea3de3b0c | 2 years ago |
Alireza Azizi | 0e3119be6f | 2 years ago |
Alireza Azizi | d156c44f81 | 2 years ago |
Alireza Azizi | 5160316ad8 | 2 years ago |
Alireza Azizi | 3fbbff05ec | 2 years ago |
Alireza Azizi | d7f86993dc | 2 years ago |
saeid | b2ff2ce4ce | 2 years ago |
Alireza Azizi | b8a3cf99aa | 2 years ago |
Alireza Azizi | 1329c62200 | 2 years ago |
saeid | 8d640032e5 | 2 years ago |
Alireza Azizi | 2b14878998 | 2 years ago |
Alireza Azizi | 6001a9abd8 | 2 years ago |
Alireza Azizi | d4fcb7e2bc | 2 years ago |
Alireza Azizi | 32e33e12e5 | 2 years ago |
azizi | ecaeb95de5 | 2 years ago |
saeid_01 | ebb96fc3f5 | 2 years ago |
Mohammadreza Malekli | 6e9803f6ba | 2 years ago |
azizi | 5a1121f889 | 2 years ago |
Alireza Azizi | 273eaaaf56 | 2 years ago |
Alireza Azizi | d20c599cde | 2 years ago |
azizi | b79c13b3cf | 2 years ago |
saeid | 9a9dc60b7b | 2 years ago |
saeid_01 | 633aff51c6 | 2 years ago |
saeid | efc6264fdd | 2 years ago |
azizi | 209fab69b6 | 2 years ago |
azizi | 369712fe7e | 2 years ago |
saeid | 23ef28994c | 2 years ago |
azizi | 98cb49ea6b | 2 years ago |
Alireza Azizi | be134af558 | 2 years ago |
Alireza Azizi | ede5bcca7c | 2 years ago |
Alireza Azizi | c75e76f2ca | 2 years ago |
Alireza Azizi | 38e5e973bc | 2 years ago |
Alireza Azizi | 916084dc45 | 2 years ago |
Alireza Azizi | 37fb23da5c | 2 years ago |
Alireza Azizi | bf445e9952 | 2 years ago |
Alireza Azizi | 32510c74a7 | 2 years ago |
Alireza Azizi | 37523f7f73 | 2 years ago |
Alireza Azizi | 1db81550e1 | 2 years ago |
azizi | 073419ed8b | 2 years ago |
Alireza Azizi | 35fbcc4883 | 2 years ago |
Alireza Azizi | 9b9bc446c7 | 2 years ago |
saeid_01 | 792aa30097 | 2 years ago |
azizi | 7ce782b280 | 2 years ago |
azizi | 0d02c71efa | 2 years ago |
azizi | 8415d3905a | 2 years ago |
azizi | 4eb072b653 | 2 years ago |
azizi | 1439386522 | 2 years ago |
azizi | a422e9971b | 2 years ago |
azizi | 9c19dd844a | 2 years ago |
saeid_01 | a0570fa149 | 2 years ago |
aliqasemi | 262a0b79d4 | 2 years ago |
Ali Qasemi | c9de905bc2 | 2 years ago |
Ali Qasemi | 48afbc1b0a | 2 years ago |
Ali Qasemi | 1acc9d3caf | 2 years ago |
Alireza | 76309a02d8 | 2 years ago |
saeid | c9b66064b7 | 2 years ago |
saeid | e663bf9126 | 2 years ago |
saeid | eb793458e6 | 2 years ago |
farid | 307e2eaf6f | 3 years ago |
farid | 5254a98f0b | 3 years ago |
farid | 951d2f90be | 3 years ago |
farid | 1f4a2c5061 | 3 years ago |
farid | a03cc9bdfd | 3 years ago |
farid | e502435524 | 3 years ago |
Alireza Azizi | a081af688b | 3 years ago |
Alireza Azizi | 136cb025f1 | 3 years ago |
saeid | 7b706e7bb5 | 3 years ago |
saeid | 201f991dc6 | 3 years ago |
saeid | d301781312 | 3 years ago |
f.saravi | 0583d4c8af | 3 years ago |
f.saravi | 8f11c7587c | 3 years ago |
f.saravi | 790de962f4 | 3 years ago |
f.saravi | 41e33e9a46 | 3 years ago |
f.saravi | 1c57845c16 | 3 years ago |
f.saravi | cb83460edd | 3 years ago |
f.saravi | aebb816db5 | 3 years ago |
saeid_01 | 3007508443 | 3 years ago |
Saeid | b72ea3d3cf | 3 years ago |
Saeid | 653b1f54b5 | 3 years ago |
Saeid | 82619d5d4c | 3 years ago |
Alireza Azizi | cbe5c3dd0c | 3 years ago |
Alireza Azizi | 645852a6d6 | 3 years ago |
Alireza Azizi | 5c6c919ba8 | 3 years ago |
Alireza Azizi | 2b318b4ef7 | 3 years ago |
saeid | d1fb36949b | 3 years ago |
azizi | 6bac03e6fc | 3 years ago |
saeid_01 | 20b34ba512 | 3 years ago |
azizi | 67d7717653 | 3 years ago |
saeid_01 | 348a71eb13 | 3 years ago |
azizi | c5645d65a8 | 3 years ago |
azizi | 326a539988 | 3 years ago |
azizi | b61f7a3ad8 | 3 years ago |
azizi | 9fb850cf84 | 3 years ago |
azizi | 3e4618b8f6 | 3 years ago |
f.saravi | 3eb11a615f | 3 years ago |
farid | 0d4eade00a | 3 years ago |
f.saravi | 153b049f32 | 3 years ago |
f.saravi | 28f7d12a8e | 3 years ago |
azizi | 4c699ffdb0 | 3 years ago |
saeid_01 | b7c027015c | 3 years ago |
azizi | db952e98ab | 3 years ago |
@ -1,8 +1,3 @@
|
|||||||
FROM registry.willaspace.com/willaspace/willaengine-staging:latest AS php_builder
|
|
||||||
|
|
||||||
WORKDIR /var/www/html/
|
|
||||||
RUN npm install
|
|
||||||
RUN npm run staging
|
|
||||||
|
|
||||||
FROM nginx:1.21.1
|
FROM nginx:1.21.1
|
||||||
COPY --from=php_builder /var/www/html /var/www/html
|
|
||||||
|
COPY public /var/www/html/public
|
||||||
|
@ -1,38 +1,6 @@
|
|||||||
FROM dfs1368/laravel-php-fpm:7.4
|
FROM fsaravi/standard-laravel:7.4
|
||||||
|
|
||||||
ARG ssh_prv_key
|
|
||||||
|
|
||||||
WORKDIR /var/www/html
|
WORKDIR /var/www/html
|
||||||
|
|
||||||
RUN apt install -y sendmail openssh-server libpng-dev
|
|
||||||
|
|
||||||
# Authorize SSH Host
|
|
||||||
RUN mkdir -p /root/.ssh && \
|
|
||||||
chmod 0700 /root/.ssh && \
|
|
||||||
echo "$ssh_prv_key" > /root/.ssh/id_rsa && \
|
|
||||||
ssh-keyscan git.willaspace.com > /root/.ssh/known_hosts && \
|
|
||||||
chmod 600 /root/.ssh/id_rsa
|
|
||||||
|
|
||||||
RUN docker-php-ext-install gd
|
|
||||||
|
|
||||||
RUN curl -fsSL https://deb.nodesource.com/setup_lts.x | bash - && \
|
|
||||||
apt-get install -y nodejs
|
|
||||||
|
|
||||||
RUN printf 'upload_max_filesize=300M;\npost_max_size=300M;\nmax_execution_time=600;\nmax_input_time=600;\n' >> /usr/local/etc/php/conf.d/docker-php-memlimit.ini;
|
|
||||||
RUN echo 'pm.max_children = 100' >> /usr/local/etc/php-fpm.d/zz-docker.conf
|
|
||||||
|
|
||||||
COPY database /var/www/html/database
|
|
||||||
|
|
||||||
COPY composer-staging.* /var/www/html/
|
|
||||||
|
|
||||||
RUN composer clearcache && COMPOSER=composer-staging.json composer install --no-scripts
|
|
||||||
|
|
||||||
COPY . /var/www/html
|
|
||||||
|
|
||||||
RUN php artisan morphmap:cache
|
RUN php artisan morphmap:cache
|
||||||
|
|
||||||
RUN chown -R www-data:www-data \
|
|
||||||
/var/www/html/public \
|
|
||||||
/var/www/html/storage \
|
|
||||||
/var/www/html/bootstrap/cache
|
|
||||||
|
|
||||||
|
File diff suppressed because it is too large
Load Diff
@ -0,0 +1,52 @@
|
|||||||
|
<?php
|
||||||
|
|
||||||
|
return [
|
||||||
|
|
||||||
|
/*
|
||||||
|
* If set to false, no activities will be saved to the database.
|
||||||
|
*/
|
||||||
|
'enabled' => env('ACTIVITY_LOGGER_ENABLED', true),
|
||||||
|
|
||||||
|
/*
|
||||||
|
* When the clean-command is executed, all recording activities older than
|
||||||
|
* the number of days specified here will be deleted.
|
||||||
|
*/
|
||||||
|
'delete_records_older_than_days' => 365,
|
||||||
|
|
||||||
|
/*
|
||||||
|
* If no log name is passed to the activity() helper
|
||||||
|
* we use this default log name.
|
||||||
|
*/
|
||||||
|
'default_log_name' => 'default',
|
||||||
|
|
||||||
|
/*
|
||||||
|
* You can specify an auth driver here that gets user models.
|
||||||
|
* If this is null we'll use the default Laravel auth driver.
|
||||||
|
*/
|
||||||
|
'default_auth_driver' => null,
|
||||||
|
|
||||||
|
/*
|
||||||
|
* If set to true, the subject returns soft deleted models.
|
||||||
|
*/
|
||||||
|
'subject_returns_soft_deleted_models' => false,
|
||||||
|
|
||||||
|
/*
|
||||||
|
* This model will be used to log activity.
|
||||||
|
* It should be implements the Spatie\Activitylog\Contracts\Activity interface
|
||||||
|
* and extend Illuminate\Database\Eloquent\Model.
|
||||||
|
*/
|
||||||
|
'activity_model' => \Spatie\Activitylog\Models\Activity::class,
|
||||||
|
|
||||||
|
/*
|
||||||
|
* This is the name of the table that will be created by the migration and
|
||||||
|
* used by the Activity model shipped with this package.
|
||||||
|
*/
|
||||||
|
'table_name' => 'activity_log',
|
||||||
|
|
||||||
|
/*
|
||||||
|
* This is the database connection that will be used by the migration and
|
||||||
|
* the Activity model shipped with this package. In case it's not set
|
||||||
|
* Laravel database.default will be used instead.
|
||||||
|
*/
|
||||||
|
'database_connection' => env('ACTIVITY_LOGGER_DB_CONNECTION'),
|
||||||
|
];
|
@ -0,0 +1,171 @@
|
|||||||
|
<?php
|
||||||
|
|
||||||
|
return [
|
||||||
|
|
||||||
|
'enabled' => env('AUDITING_ENABLED', true),
|
||||||
|
|
||||||
|
/*
|
||||||
|
|--------------------------------------------------------------------------
|
||||||
|
| Audit Implementation
|
||||||
|
|--------------------------------------------------------------------------
|
||||||
|
|
|
||||||
|
| Define which Audit model implementation should be used.
|
||||||
|
|
|
||||||
|
*/
|
||||||
|
|
||||||
|
'implementation' => OwenIt\Auditing\Models\Audit::class,
|
||||||
|
|
||||||
|
/*
|
||||||
|
|--------------------------------------------------------------------------
|
||||||
|
| User Morph prefix & Guards
|
||||||
|
|--------------------------------------------------------------------------
|
||||||
|
|
|
||||||
|
| Define the morph prefix and authentication guards for the User resolver.
|
||||||
|
|
|
||||||
|
*/
|
||||||
|
|
||||||
|
'user' => [
|
||||||
|
'morph_prefix' => 'user',
|
||||||
|
'guards' => [
|
||||||
|
'web',
|
||||||
|
'api',
|
||||||
|
'apicore'
|
||||||
|
],
|
||||||
|
'resolver' => OwenIt\Auditing\Resolvers\UserResolver::class
|
||||||
|
],
|
||||||
|
|
||||||
|
/*
|
||||||
|
|--------------------------------------------------------------------------
|
||||||
|
| Audit Resolvers
|
||||||
|
|--------------------------------------------------------------------------
|
||||||
|
|
|
||||||
|
| Define the User, IP Address, User Agent and URL resolver implementations.
|
||||||
|
|
|
||||||
|
*/
|
||||||
|
'resolvers' => [
|
||||||
|
'ip_address' => OwenIt\Auditing\Resolvers\IpAddressResolver::class,
|
||||||
|
'user_agent' => OwenIt\Auditing\Resolvers\UserAgentResolver::class,
|
||||||
|
'url' => OwenIt\Auditing\Resolvers\UrlResolver::class,
|
||||||
|
'business_id'=> WM\Common\Services\Audit\BusinessResolver::class,
|
||||||
|
],
|
||||||
|
|
||||||
|
/*
|
||||||
|
|--------------------------------------------------------------------------
|
||||||
|
| Audit Events
|
||||||
|
|--------------------------------------------------------------------------
|
||||||
|
|
|
||||||
|
| The Eloquent events that trigger an Audit.
|
||||||
|
|
|
||||||
|
*/
|
||||||
|
|
||||||
|
'events' => [
|
||||||
|
'created',
|
||||||
|
'updated',
|
||||||
|
'deleted',
|
||||||
|
'restored'
|
||||||
|
],
|
||||||
|
|
||||||
|
/*
|
||||||
|
|--------------------------------------------------------------------------
|
||||||
|
| Strict Mode
|
||||||
|
|--------------------------------------------------------------------------
|
||||||
|
|
|
||||||
|
| Enable the strict mode when auditing?
|
||||||
|
|
|
||||||
|
*/
|
||||||
|
|
||||||
|
'strict' => false,
|
||||||
|
|
||||||
|
/*
|
||||||
|
|--------------------------------------------------------------------------
|
||||||
|
| Global exclude
|
||||||
|
|--------------------------------------------------------------------------
|
||||||
|
|
|
||||||
|
| Have something you always want to exclude by default? - add it here.
|
||||||
|
| Note that this is overwritten (not merged) with local exclude
|
||||||
|
|
|
||||||
|
*/
|
||||||
|
|
||||||
|
'exclude' => [],
|
||||||
|
|
||||||
|
/*
|
||||||
|
|--------------------------------------------------------------------------
|
||||||
|
| Empty Values
|
||||||
|
|--------------------------------------------------------------------------
|
||||||
|
|
|
||||||
|
| Should Audit records be stored when the recorded old_values & new_values
|
||||||
|
| are both empty?
|
||||||
|
|
|
||||||
|
| Some events may be empty on purpose. Use allowed_empty_values to exclude
|
||||||
|
| those from the empty values check. For example when auditing
|
||||||
|
| model retrieved events which will never have new and old values.
|
||||||
|
|
|
||||||
|
|
|
||||||
|
*/
|
||||||
|
|
||||||
|
'empty_values' => true,
|
||||||
|
'allowed_empty_values' => [
|
||||||
|
'retrieved'
|
||||||
|
],
|
||||||
|
|
||||||
|
/*
|
||||||
|
|--------------------------------------------------------------------------
|
||||||
|
| Audit Timestamps
|
||||||
|
|--------------------------------------------------------------------------
|
||||||
|
|
|
||||||
|
| Should the created_at, updated_at and deleted_at timestamps be audited?
|
||||||
|
|
|
||||||
|
*/
|
||||||
|
|
||||||
|
'timestamps' => false,
|
||||||
|
|
||||||
|
/*
|
||||||
|
|--------------------------------------------------------------------------
|
||||||
|
| Audit Threshold
|
||||||
|
|--------------------------------------------------------------------------
|
||||||
|
|
|
||||||
|
| Specify a threshold for the amount of Audit records a model can have.
|
||||||
|
| Zero means no limit.
|
||||||
|
|
|
||||||
|
*/
|
||||||
|
|
||||||
|
'threshold' => 0,
|
||||||
|
|
||||||
|
/*
|
||||||
|
|--------------------------------------------------------------------------
|
||||||
|
| Audit Driver
|
||||||
|
|--------------------------------------------------------------------------
|
||||||
|
|
|
||||||
|
| The default audit driver used to keep track of changes.
|
||||||
|
|
|
||||||
|
*/
|
||||||
|
|
||||||
|
'driver' => 'database',
|
||||||
|
|
||||||
|
/*
|
||||||
|
|--------------------------------------------------------------------------
|
||||||
|
| Audit Driver Configurations
|
||||||
|
|--------------------------------------------------------------------------
|
||||||
|
|
|
||||||
|
| Available audit drivers and respective configurations.
|
||||||
|
|
|
||||||
|
*/
|
||||||
|
|
||||||
|
'drivers' => [
|
||||||
|
'database' => [
|
||||||
|
'table' => 'audits',
|
||||||
|
'connection' => null,
|
||||||
|
],
|
||||||
|
],
|
||||||
|
|
||||||
|
/*
|
||||||
|
|--------------------------------------------------------------------------
|
||||||
|
| Audit Console
|
||||||
|
|--------------------------------------------------------------------------
|
||||||
|
|
|
||||||
|
| Whether console events should be audited (eg. php artisan db:seed).
|
||||||
|
|
|
||||||
|
*/
|
||||||
|
|
||||||
|
'console' => true,
|
||||||
|
];
|
@ -0,0 +1,55 @@
|
|||||||
|
[supervisord]
|
||||||
|
nodaemon=true
|
||||||
|
user = root
|
||||||
|
[supervisorctl]
|
||||||
|
[inet_http_server]
|
||||||
|
port = 127.0.0.1:9001
|
||||||
|
[rpcinterface:supervisor]
|
||||||
|
supervisor.rpcinterface_factory = supervisor.rpcinterface:make_main_rpcinterface
|
||||||
|
|
||||||
|
[program:scheduler]
|
||||||
|
process_name=%(program_name)s_%(process_num)02d
|
||||||
|
command=/bin/sh -c "while [ true ]; do (php /var/www/html/artisan schedule:run --verbose --no-interaction &); sleep 60; done"
|
||||||
|
autostart=true
|
||||||
|
autorestart=true
|
||||||
|
numprocs=1
|
||||||
|
user=www-data
|
||||||
|
redirect_stderr=true
|
||||||
|
stdout_logfile=/var/log/supervisor/scheduler.log
|
||||||
|
|
||||||
|
[program:change-store-order-status]
|
||||||
|
process_name=%(program_name)s_%(process_num)02d
|
||||||
|
command=php /var/www/html/artisan queue:work redis --queue=change_to_successful_store_order --sleep=3 --tries=3 --max-time=3600
|
||||||
|
autostart=true
|
||||||
|
autorestart=true
|
||||||
|
stopasgroup=true
|
||||||
|
killasgroup=true
|
||||||
|
user=www-data
|
||||||
|
numprocs=3
|
||||||
|
redirect_stderr=true
|
||||||
|
stopwaitsecs=3600
|
||||||
|
stdout_logfile=/var/log/supervisor/change-store-order-status.log
|
||||||
|
|
||||||
|
[program:create-store-product]
|
||||||
|
process_name=%(program_name)s_%(process_num)02d
|
||||||
|
command=php /var/www/html/artisan queue:work redis --queue=create_store_product --sleep=3 --tries=3 --max-time=3600
|
||||||
|
autostart=true
|
||||||
|
autorestart=true
|
||||||
|
stopasgroup=true
|
||||||
|
killasgroup=true
|
||||||
|
user=www-data
|
||||||
|
numprocs=3
|
||||||
|
redirect_stderr=true
|
||||||
|
stopwaitsecs=3600
|
||||||
|
stdout_logfile=/var/log/supervisor/create-store-product.log
|
||||||
|
|
||||||
|
|
||||||
|
# [program:check-sms-status]
|
||||||
|
# command=php /var/www/html/artisan queue:work redis --queue=check-sms-status --tries=3
|
||||||
|
# process_name=%(program_name)s_%(process_num)02d
|
||||||
|
# autostart=true
|
||||||
|
# autorestart=true
|
||||||
|
# user=www-data
|
||||||
|
# numprocs=3
|
||||||
|
# redirect_stderr=true
|
||||||
|
# stdout_logfile=/var/log/supervisor/sms-status.log
|
Loading…
Reference in new issue