fork of https://github.com/ActionRetro/68k-news (russian added)
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
tolstoevsky 8566db0d4d Update 'README.md' 2 months ago
php basic modifications 2 months ago
.DS_Store basic modifications 2 months ago
.gitignore basic modifications 2 months ago
LICENSE basic modifications 2 months ago
README.md Update 'README.md' 2 months ago
article.php basic modifications 2 months ago
choose_edition.php basic modifications 2 months ago
composer.json basic modifications 2 months ago
composer.lock basic modifications 2 months ago
image.php basic modifications 2 months ago
image_compressed.php basic modifications 2 months ago
index.php basic modifications 2 months ago

README.md

news.phreedom.club is a fork of 68k.news

Installation

install deps and modules

https://git.phreedom.club/tolstoevsky/68k-news.git

curl -sS https://getcomposer.org/installer | php

php composer.phar install

configure nginx

server {
       listen 80;
       server_name example.com;
       root /var/www/68k-news;
        listen 443 ssl http2; # managed by Certbot
        ssl_certificate /etc/letsencrypt/live/example.com/fullchain.pem; # managed by Certbot
        ssl_certificate_key /etc/letsencrypt/live/example.com/privkey.pem; # managed by Certbot
        include /etc/letsencrypt/options-ssl-nginx.conf; # managed by Certbot
        ssl_dhparam /etc/letsencrypt/ssl-dhparams.pem; # managed by Certbot


       index index.php index.html;

       location ~ ^/favicon.ico$ {
                root /var/www/www.example.com/web/skins/default/images;
                log_not_found off;
                access_log off;
                expires max;
       }

       location = /robots.txt {
                allow all;
                log_not_found off;
                access_log off;
       }

       location ~ ^/(README|INSTALL|LICENSE|CHANGELOG|UPGRADING)$ {
                deny all;
       }
       location ~ ^/(bin|SQL)/ {
                deny all;
       }

       # Deny all attempts to access hidden files such as .htaccess, .htpasswd, .DS_Store (Mac).
       location ~ /\. {
                deny all;
                access_log off;
                log_not_found off;
       }

       location ~ \.php$ {
                try_files $uri =404;
                include /etc/nginx/fastcgi_params;
                fastcgi_pass unix:/var/run/php/php7.4-fpm.sock;
                fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;
                fastcgi_index index.php;
       }
}