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
AllCops: | |
NewCops: enable | |
Layout/LineLength: | |
Enabled: false | |
Style/Documentation: | |
Enabled: false | |
Style/FrozenStringLiteralComment: | |
Enabled: false |
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
[deploy@Bagira 20220418191516]$ bundle | |
Warning: the running version of Bundler (2.1.4) is older than the version that created the lockfile (2.2.4). We suggest you to upgrade to the version that created the lockfile by running `gem install bundler:2.2.4`. | |
The dependency tzinfo-data (>= 0) will be unused by any of the platforms Bundler is installing for. Bundler is installing for ruby but the dependency is only for x86-mingw32, x86-mswin32, x64-mingw32, java. To add those platforms to the bundle, run `bundle lock --add-platform x86-mingw32 x86-mswin32 x64-mingw32 java`. | |
Fetching gem metadata from https://rails-assets.org/.... | |
Fetching gem metadata from https://rubygems.org/./usr/lib/ruby/gems/2.7.0/gems/bundler-2.1.4/lib/bundler/shared_helpers.rb:103: [BUG] Segmentation fault at 0x0000000000000210 | |
ruby 2.7.3p183 (2021-04-05 revision 647ee6f091) [e2k-linux] | |
-- Control frame information ----------------------------------------------- | |
c:0013 p:---- s:0063 e:000062 CFUNC :read | |
c:0012 p:---- s:0060 e:000059 CFUNC |
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
package main | |
import ( | |
"bytes" | |
"encoding/binary" | |
"fmt" | |
"io" | |
"log" | |
"net" | |
) |
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
package main | |
import ( | |
"bytes" | |
"encoding/binary" | |
"fmt" | |
"io" | |
"log" | |
"net" | |
"time" |
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
# устанавливаем ГОСТ-овское шифрование | |
sudo apt install libengine-gost-openssl1.1 | |
# правим конфиг | |
sudo nano /etc/ssl/openssl.cnf | |
# в начало файла | |
openssl_conf = openssl_def | |
# в конец |
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
Hello world! |
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
server { | |
listen 80; | |
listen [::]:80; | |
server_name ec2-3-134-77-212.us-east-2.compute.amazonaws.com; | |
root /home/deploy/tms/current/public; | |
access_log /home/deploy/tms/current/log/nginx.access.log; | |
error_log /home/deploy/tms/current/log/nginx.error.log info; |
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
upstream unicorn { | |
server unix:/home/deploy/tms/shared/tmp/sockets/unicorn.sock fail_timeout=0; | |
} | |
server { | |
listen 80; | |
listen [::]:80; | |
server_name ec2-3-134-77-212.us-east-2.compute.amazonaws.com; |
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
upstream application_server { | |
server unix:/home/deploy/tms/shared/tmp/sockets/puma.sock fail_timeout=0; | |
} | |
server { | |
listen 80 default_server; | |
listen [::]:80 default_server; | |
# listen 443 ssl default_server; | |
# listen [::]:443 ssl default_server; |
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
### Nginx ### | |
check process nginx with pidfile /run/nginx.pid | |
start program = "/usr/sbin/service nginx start" | |
stop program = "/usr/sbin/service nginx stop" | |
if cpu > 60% for 2 cycles then alert | |
if cpu > 80% for 5 cycles then restart | |
if memory usage > 80% for 5 cycles then restart | |
if failed host localhost port 80 protocol http | |
then restart | |
if 3 restarts within 5 cycles then timeout |
NewerOlder