hop la
This commit is contained in:
parent
d5d5edda0d
commit
7b3f403a3d
|
@ -1,28 +0,0 @@
|
||||||
server {
|
|
||||||
listen _PORT_;
|
|
||||||
listen [::]:_PORT_;
|
|
||||||
|
|
||||||
server_name _MY_NODE_NAME_ localhost 127.0.0.1;
|
|
||||||
|
|
||||||
index index.php index.html;
|
|
||||||
root /var/www/g1billet;
|
|
||||||
|
|
||||||
# set expiration of assets to MAX for caching
|
|
||||||
location ~* \.(ico|css|js|gif|jpe?g|png)(\?[0-9]+)?$ {
|
|
||||||
expires max;
|
|
||||||
log_not_found off;
|
|
||||||
}
|
|
||||||
|
|
||||||
# php parsing
|
|
||||||
location ~ \.php$ {
|
|
||||||
include fastcgi_params;
|
|
||||||
fastcgi_pass unix:/var/run/php/php_PHPVERSION_-fpm.sock;
|
|
||||||
fastcgi_index index.php;
|
|
||||||
fastcgi_param SCRIPT_FILENAME $request_filename;
|
|
||||||
}
|
|
||||||
|
|
||||||
error_log /var/log/nginx/g1billet_error.log;
|
|
||||||
access_log /var/log/nginx/g1billet_access.log;
|
|
||||||
|
|
||||||
|
|
||||||
}
|
|
|
@ -5,7 +5,10 @@ server {
|
||||||
|
|
||||||
root /var/www/loveland/_APPLI_;
|
root /var/www/loveland/_APPLI_;
|
||||||
|
|
||||||
server_name _MY_NODE_NAME_;
|
server_name _MY_NODE_NAME_ localhost 127.0.0.1;
|
||||||
|
|
||||||
|
error_log /var/log/nginx/_APPLI_.error.log;
|
||||||
|
access_log /var/log/nginx/_APPLI_.access.log;
|
||||||
|
|
||||||
# This section can be copied into an existing default setup
|
# This section can be copied into an existing default setup
|
||||||
location / {
|
location / {
|
||||||
|
|
|
@ -1,44 +0,0 @@
|
||||||
server {
|
|
||||||
|
|
||||||
listen 80 default_server;
|
|
||||||
listen [::]:80 default_server;
|
|
||||||
|
|
||||||
root /var/www/rompr;
|
|
||||||
index index.php index.html index.htm;
|
|
||||||
|
|
||||||
server_name copylaradio;
|
|
||||||
|
|
||||||
# This section can be copied into an existing default setup
|
|
||||||
location / {
|
|
||||||
allow all;
|
|
||||||
index index.php;
|
|
||||||
location ~ \.php {
|
|
||||||
try_files $uri index.php =404;
|
|
||||||
fastcgi_pass unix:/var/run/php/php7.0-fpm.sock;
|
|
||||||
fastcgi_index index.php;
|
|
||||||
fastcgi_param SCRIPT_FILENAME $request_filename;
|
|
||||||
include /etc/nginx/fastcgi_params;
|
|
||||||
fastcgi_read_timeout 1800;
|
|
||||||
}
|
|
||||||
error_page 404 = /404.php;
|
|
||||||
try_files $uri $uri/ =404;
|
|
||||||
location ~ /albumart/* {
|
|
||||||
expires -1s;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
# IPFS GATEWAY PROXY
|
|
||||||
location /ipfs {
|
|
||||||
proxy_pass http://127.0.0.1:8080;
|
|
||||||
proxy_set_header Host $host;
|
|
||||||
proxy_set_header X-Forwarded-For $remote_addr;
|
|
||||||
}
|
|
||||||
|
|
||||||
location /ipns {
|
|
||||||
proxy_pass http://127.0.0.1:8080;
|
|
||||||
proxy_set_header Host $host;
|
|
||||||
proxy_set_header X-Forwarded-For $remote_addr;
|
|
||||||
}
|
|
||||||
|
|
||||||
}
|
|
||||||
|
|
|
@ -75,7 +75,7 @@ do
|
||||||
[[ ! $isMyFriend ]] && echo "WARNING! $count IS NOT my SSB Friend !!! Check $ssbID" # TODO Send sbotc message?
|
[[ ! $isMyFriend ]] && echo "WARNING! $count IS NOT my SSB Friend !!! Check $ssbID" # TODO Send sbotc message?
|
||||||
# TODO: PROD ACTIVATE # && ipfs swarm disconnect $peer && ipfs bootstrap rm $peer
|
# TODO: PROD ACTIVATE # && ipfs swarm disconnect $peer && ipfs bootstrap rm $peer
|
||||||
## TODO: Use fail2ban if same node continue entering our swarm...
|
## TODO: Use fail2ban if same node continue entering our swarm...
|
||||||
|
echo "============================================================="
|
||||||
count=$((count+1))
|
count=$((count+1))
|
||||||
|
|
||||||
done
|
done
|
||||||
|
|
Loading…
Reference in New Issue