Switched to new domain
FOSS-Q is the new domain for this search.
This commit is contained in:
parent
4413387b38
commit
aaa853f5a0
6 changed files with 135 additions and 135 deletions
|
|
@ -1,25 +1,25 @@
|
|||
# Sample Apache2 configuration
|
||||
This is the apache2 configuration file used on the 4g.flossboxin.org.in official instance, in hopes that it's useful to you!
|
||||
This is the apache2 configuration file used on the fossq.com official instance, in hopes that it's useful to you!
|
||||
|
||||
Looking for the apache2 guide? <a href="https://git.bakhai.co.in/FbIN/4get/src/branch/main/docs/apache2.md">go here.</a>.
|
||||
Looking for the apache2 guide? <a href="https://git.flossboxin.org.in/FbIN/fossq/src/branch/main/docs/apache2.md">go here.</a>.
|
||||
|
||||
```xml
|
||||
<VirtualHost *:443>
|
||||
ServerName www.4g.flossboxin.org.in
|
||||
ServerName www.fossq.com
|
||||
|
||||
SSLEngine On
|
||||
SSLCertificateFile /etc/letsencrypt/live/4g.flossboxin.org.in/fullchain.pem
|
||||
SSLCertificateKeyFile /etc/letsencrypt/live/4g.flossboxin.org.in/privkey.pem
|
||||
SSLCertificateChainFile /etc/letsencrypt/live/4g.flossboxin.org.in/chain.pem
|
||||
SSLCertificateFile /etc/letsencrypt/live/fossq.com/fullchain.pem
|
||||
SSLCertificateKeyFile /etc/letsencrypt/live/fossq.com/privkey.pem
|
||||
SSLCertificateChainFile /etc/letsencrypt/live/fossq.com/chain.pem
|
||||
|
||||
RedirectMatch 301 ^(.*)$ https://4g.flossboxin.org.in$1
|
||||
RedirectMatch 301 ^(.*)$ https://fossq.com$1
|
||||
</VirtualHost>
|
||||
|
||||
<VirtualHost *:443>
|
||||
ServerName 4g.flossboxin.org.in
|
||||
ServerName fossq.com
|
||||
|
||||
ServerAdmin dev@flossboxin.org.in
|
||||
DocumentRoot /var/www/4get
|
||||
DocumentRoot /var/www/fossq
|
||||
|
||||
SSLEngine On
|
||||
SSLOptions +StdEnvVars
|
||||
|
|
@ -33,11 +33,11 @@ Looking for the apache2 guide? <a href="https://git.bakhai.co.in/FbIN/4get/src/b
|
|||
AddOutputFilterByType DEFLATE text/plain
|
||||
AddOutputFilterByType DEFLATE text/css
|
||||
|
||||
SSLCertificateFile /etc/letsencrypt/live/4g.flossboxin.org.in/fullchain.pem
|
||||
SSLCertificateKeyFile /etc/letsencrypt/live/4g.flossboxin.org.in/privkey.pem
|
||||
SSLCertificateChainFile /etc/letsencrypt/live/4g.flossboxin.org.in/chain.pem
|
||||
SSLCertificateFile /etc/letsencrypt/live/fossq.com/fullchain.pem
|
||||
SSLCertificateKeyFile /etc/letsencrypt/live/fossq.com/privkey.pem
|
||||
SSLCertificateChainFile /etc/letsencrypt/live/fossq.com/chain.pem
|
||||
|
||||
<Directory /var/www/4get>
|
||||
<Directory /var/www/fossq>
|
||||
Options -MultiViews
|
||||
AllowOverride All
|
||||
Require all granted
|
||||
|
|
@ -49,7 +49,7 @@ Looking for the apache2 guide? <a href="https://git.bakhai.co.in/FbIN/4get/src/b
|
|||
</Directory>
|
||||
|
||||
# deny access to private resources
|
||||
<Directory /var/www/4get/data/>
|
||||
<Directory /var/www/fossq/data/>
|
||||
Order Deny,allow
|
||||
Deny from all
|
||||
</Directory>
|
||||
|
|
@ -59,9 +59,9 @@ Looking for the apache2 guide? <a href="https://git.bakhai.co.in/FbIN/4get/src/b
|
|||
ServerName www.flossboxin.org.in
|
||||
|
||||
SSLEngine On
|
||||
SSLCertificateFile /etc/letsencrypt/live/4g.flossboxin.org.in/fullchain.pem
|
||||
SSLCertificateKeyFile /etc/letsencrypt/live/4g.flossboxin.org.in/privkey.pem
|
||||
SSLCertificateChainFile /etc/letsencrypt/live/4g.flossboxin.org.in/chain.pem
|
||||
SSLCertificateFile /etc/letsencrypt/live/fossq.com/fullchain.pem
|
||||
SSLCertificateKeyFile /etc/letsencrypt/live/fossq.com/privkey.pem
|
||||
SSLCertificateChainFile /etc/letsencrypt/live/fossq.com/chain.pem
|
||||
|
||||
RedirectMatch 301 ^(.*)$ https://flossboxin.org.in$1
|
||||
</VirtualHost>
|
||||
|
|
@ -84,9 +84,9 @@ Looking for the apache2 guide? <a href="https://git.bakhai.co.in/FbIN/4get/src/b
|
|||
AddOutputFilterByType DEFLATE text/plain
|
||||
AddOutputFilterByType DEFLATE text/css
|
||||
|
||||
SSLCertificateFile /etc/letsencrypt/live/4g.flossboxin.org.in/fullchain.pem
|
||||
SSLCertificateKeyFile /etc/letsencrypt/live/4g.flossboxin.org.in/privkey.pem
|
||||
SSLCertificateChainFile /etc/letsencrypt/live/4g.flossboxin.org.in/chain.pem
|
||||
SSLCertificateFile /etc/letsencrypt/live/fossq.com/fullchain.pem
|
||||
SSLCertificateKeyFile /etc/letsencrypt/live/fossq.com/privkey.pem
|
||||
SSLCertificateChainFile /etc/letsencrypt/live/fossq.com/chain.pem
|
||||
|
||||
<Directory /var/www/flossboxin>
|
||||
Options -MultiViews
|
||||
|
|
@ -146,7 +146,7 @@ Looking for the apache2 guide? <a href="https://git.bakhai.co.in/FbIN/4get/src/b
|
|||
</VirtualHost>
|
||||
|
||||
<VirtualHost *:443>
|
||||
ServerName git.bakhai.co.in
|
||||
ServerName git.flossboxin.org.in
|
||||
|
||||
SSLEngine On
|
||||
SSLOptions +StdEnvVars
|
||||
|
|
@ -160,9 +160,9 @@ Looking for the apache2 guide? <a href="https://git.bakhai.co.in/FbIN/4get/src/b
|
|||
AddOutputFilterByType DEFLATE text/plain
|
||||
AddOutputFilterByType DEFLATE text/css
|
||||
|
||||
SSLCertificateFile /etc/letsencrypt/live/4g.flossboxin.org.in/fullchain.pem
|
||||
SSLCertificateKeyFile /etc/letsencrypt/live/4g.flossboxin.org.in/privkey.pem
|
||||
SSLCertificateChainFile /etc/letsencrypt/live/4g.flossboxin.org.in/chain.pem
|
||||
SSLCertificateFile /etc/letsencrypt/live/fossq.com/fullchain.pem
|
||||
SSLCertificateKeyFile /etc/letsencrypt/live/fossq.com/privkey.pem
|
||||
SSLCertificateChainFile /etc/letsencrypt/live/fossq.com/chain.pem
|
||||
|
||||
ProxyPreserveHost On
|
||||
ProxyRequests off
|
||||
|
|
@ -188,8 +188,8 @@ Looking for the apache2 guide? <a href="https://git.bakhai.co.in/FbIN/4get/src/b
|
|||
AddOutputFilterByType DEFLATE text/plain
|
||||
AddOutputFilterByType DEFLATE text/css
|
||||
|
||||
SSLCertificateFile /etc/letsencrypt/live/4g.flossboxin.org.in/fullchain.pem
|
||||
SSLCertificateKeyFile /etc/letsencrypt/live/4g.flossboxin.org.in/privkey.pem
|
||||
SSLCertificateChainFile /etc/letsencrypt/live/4g.flossboxin.org.in/chain.pem
|
||||
SSLCertificateFile /etc/letsencrypt/live/fossq.com/fullchain.pem
|
||||
SSLCertificateKeyFile /etc/letsencrypt/live/fossq.com/privkey.pem
|
||||
SSLCertificateChainFile /etc/letsencrypt/live/fossq.com/chain.pem
|
||||
</VirtualHost>
|
||||
```
|
||||
|
|
|
|||
|
|
@ -1,5 +1,5 @@
|
|||
# Install guide for Apache2 webserver
|
||||
Welcome to the new and revamped 4get install manual for apache2. Even if you already have services running on an existing installation of apache2, you should still be able to adapt this guide to your needs.
|
||||
Welcome to the new and revamped fossq install manual for apache2. Even if you already have services running on an existing installation of apache2, you should still be able to adapt this guide to your needs.
|
||||
|
||||
For starters, login as `root`.
|
||||
|
||||
|
|
@ -41,24 +41,24 @@ Now, edit the following file: `/etc/apache2/sites-available/000-default.conf`, r
|
|||
1. The `VirtualHost` here instructs apache2 to redirect all **HTTP** traffic that specify an unknown `Host` header be redirected to a specific domain of your choice. Configuring this is not required but highly recommended.
|
||||
```xml
|
||||
<VirtualHost *:80>
|
||||
# no domain = go to 4g.flossboxin.org.in
|
||||
RedirectMatch 301 ^(.*)$ https://4g.flossboxin.org.in$1
|
||||
# no domain = go to fossq.com
|
||||
RedirectMatch 301 ^(.*)$ https://fossq.com$1
|
||||
</VirtualHost>
|
||||
```
|
||||
|
||||
2. This instruction tells apache2 to redirect all HTTP traffic on `Host` flossboxin.org.in to the HTTPS version of the site. You should add a rule like this for all of your services explicitly.
|
||||
2. This instruction tells apache2 to redirect all HTTP traffic on `Host` fossq.com to the HTTPS version of the site. You should add a rule like this for all of your services explicitly.
|
||||
```xml
|
||||
<VirtualHost *:80>
|
||||
ServerName flossboxin.org.in
|
||||
RedirectMatch 301 ^(.*)$ https://flossboxin.org.in$1
|
||||
ServerName fossq.com
|
||||
RedirectMatch 301 ^(.*)$ https://fossq.com$1
|
||||
</VirtualHost>
|
||||
```
|
||||
|
||||
3. Subdomains won't be matched by the above rule, so I recommend you also add them to be more explicit:
|
||||
```xml
|
||||
<VirtualHost *:80>
|
||||
ServerName www.flossboxin.org.in
|
||||
RedirectMatch 301 ^(.*)$ https://flossboxin.org.in$1
|
||||
ServerName www.fossq.com
|
||||
RedirectMatch 301 ^(.*)$ https://fossq.com$1
|
||||
</VirtualHost>
|
||||
```
|
||||
|
||||
|
|
@ -68,7 +68,7 @@ Now, edit the following file: `/etc/apache2/sites-available/000-default.conf`, r
|
|||
```xml
|
||||
<VirtualHost *:80>
|
||||
# tor site
|
||||
ServerName 4getwebfrq5zr4sxugk6htxvawqehxtdgjrbcn2oslllcol2vepa23yd.onion
|
||||
ServerName fossqwebfrq5zr4sxugk6htxvawqehxtdgjrbcn2oslllcol2vepa23yd.onion
|
||||
|
||||
# compress
|
||||
AddOutputFilterByType DEFLATE application/json
|
||||
|
|
@ -78,7 +78,7 @@ Now, edit the following file: `/etc/apache2/sites-available/000-default.conf`, r
|
|||
AddOutputFilterByType DEFLATE text/plain
|
||||
AddOutputFilterByType DEFLATE text/css
|
||||
|
||||
DocumentRoot /var/www/4get
|
||||
DocumentRoot /var/www/fossq
|
||||
|
||||
<FilesMatch \.php$>
|
||||
SetHandler "proxy:unix:/run/php/php8.1-fpm.sock|fcgi://localhost/"
|
||||
|
|
@ -90,7 +90,7 @@ Now, edit the following file: `/etc/apache2/sites-available/000-default.conf`, r
|
|||
RewriteCond %{REQUEST_FILENAME} !-f
|
||||
RewriteRule ^([^\.]+)$ $1.php [NC,L]
|
||||
|
||||
<Directory /var/www/4get>
|
||||
<Directory /var/www/fossq>
|
||||
Options -MultiViews
|
||||
AllowOverride All
|
||||
Require all granted
|
||||
|
|
@ -102,40 +102,40 @@ Now, edit the following file: `/etc/apache2/sites-available/000-default.conf`, r
|
|||
</Directory>
|
||||
|
||||
# deny access to private resources
|
||||
<Directory /var/www/4get/data/>
|
||||
<Directory /var/www/fossq/data/>
|
||||
Order Deny,allow
|
||||
Deny from all
|
||||
</Directory>
|
||||
</VirtualHost>
|
||||
```
|
||||
To make the above snippet work, please refer to our <a href="https://git.bakhai.co.in/FbIN/4get/src/branch/main/docs/tor.md">tor site guide</a>.
|
||||
To make the above snippet work, please refer to our <a href="https://git.flossboxin.org.in/FbIN/fossq/src/branch/main/docs/tor.md">tor site guide</a>.
|
||||
|
||||
## default-ssl.conf
|
||||
Now, edit the file `/etc/apache2/sites-available/default-ssl.conf`, remove everything and, again, add each rule while modifying the relevant fields:
|
||||
|
||||
First, append the following redirect rule to point traffic from `www.4g.flossboxin.org.in` to `4g.flossboxin.org.in`:
|
||||
First, append the following redirect rule to point traffic from `www.fossq.com` to `fossq.com`:
|
||||
```xml
|
||||
<VirtualHost *:443>
|
||||
ServerName www.4g.flossboxin.org.in
|
||||
ServerName www.fossq.com
|
||||
|
||||
SSLEngine On
|
||||
SSLCertificateFile /etc/letsencrypt/live/4g.flossboxin.org.in/fullchain.pem
|
||||
SSLCertificateKeyFile /etc/letsencrypt/live/4g.flossboxin.org.in/privkey.pem
|
||||
SSLCertificateChainFile /etc/letsencrypt/live/4g.flossboxin.org.in/chain.pem
|
||||
SSLCertificateFile /etc/letsencrypt/live/fossq.com/fullchain.pem
|
||||
SSLCertificateKeyFile /etc/letsencrypt/live/fossq.com/privkey.pem
|
||||
SSLCertificateChainFile /etc/letsencrypt/live/fossq.com/chain.pem
|
||||
|
||||
RedirectMatch 301 ^(.*)$ https://4g.flossboxin.org.in$1
|
||||
RedirectMatch 301 ^(.*)$ https://fossq.com$1
|
||||
</VirtualHost>
|
||||
```
|
||||
|
||||
This ruleset tells apache2 where 4get is located (`/var/www/4get`), ensures that `4g.flossboxin.org.in/settings` resolves to `4g.flossboxin.org.in/settings.php` internally and that we deny access to `/data/*`, which may contain files you might want to keep private. `StdEnvVArs+` will make it so that PHP can view if the connection uses HTTPS, and which cipher was used. Useful for basic bot protection.
|
||||
This ruleset tells apache2 where fossq is located (`/var/www/fossq`), ensures that `fossq.com/settings` resolves to `fossq.com/settings.php` internally and that we deny access to `/data/*`, which may contain files you might want to keep private. `StdEnvVArs+` will make it so that PHP can view if the connection uses HTTPS, and which cipher was used. Useful for basic bot protection.
|
||||
|
||||
Make sure to replace `4g.flossboxin.org.in` with your own domain under the `SSLCertificate*` directives!
|
||||
Make sure to replace `fossq.com` with your own domain under the `SSLCertificate*` directives!
|
||||
```xml
|
||||
<VirtualHost *:443>
|
||||
ServerName 4g.flossboxin.org.in
|
||||
ServerName fossq.com
|
||||
|
||||
ServerAdmin dev@flossboxin.org.in
|
||||
DocumentRoot /var/www/4get
|
||||
DocumentRoot /var/www/fossq
|
||||
|
||||
Protocols h2 http/1.1
|
||||
SSLEngine On
|
||||
|
|
@ -154,11 +154,11 @@ Make sure to replace `4g.flossboxin.org.in` with your own domain under the `SSLC
|
|||
SetHandler "proxy:unix:/run/php/php8.1-fpm.sock|fcgi://localhost/"
|
||||
</FilesMatch>
|
||||
|
||||
SSLCertificateFile /etc/letsencrypt/live/4g.flossboxin.org.in/fullchain.pem
|
||||
SSLCertificateKeyFile /etc/letsencrypt/live/4g.flossboxin.org.in/privkey.pem
|
||||
SSLCertificateChainFile /etc/letsencrypt/live/4g.flossboxin.org.in/chain.pem
|
||||
SSLCertificateFile /etc/letsencrypt/live/fossq.com/fullchain.pem
|
||||
SSLCertificateKeyFile /etc/letsencrypt/live/fossq.com/privkey.pem
|
||||
SSLCertificateChainFile /etc/letsencrypt/live/fossq.com/chain.pem
|
||||
|
||||
<Directory /var/www/4get>
|
||||
<Directory /var/www/fossq>
|
||||
Options -MultiViews
|
||||
AllowOverride All
|
||||
Require all granted
|
||||
|
|
@ -170,14 +170,14 @@ Make sure to replace `4g.flossboxin.org.in` with your own domain under the `SSLC
|
|||
</Directory>
|
||||
|
||||
# deny access to private resources
|
||||
<Directory /var/www/4get/data/>
|
||||
<Directory /var/www/fossq/data/>
|
||||
Order Deny,allow
|
||||
Deny from all
|
||||
</Directory>
|
||||
</VirtualHost>
|
||||
```
|
||||
|
||||
By default, the first rule dictates where traffic should be redirected to in case the client specifies an unknown domain name. Don't forget your webserver's other rules! For a complete real-world example, please <a href="https://git.bakhai.co.in/FbIN/4get/src/branch/main/docs/apache2-example.md">check out my real-world config file I use on 4g.flossboxin.org.in</a>.
|
||||
By default, the first rule dictates where traffic should be redirected to in case the client specifies an unknown domain name. Don't forget your webserver's other rules! For a complete real-world example, please <a href="https://git.flossboxin.org.in/FbIN/fossq/src/branch/main/docs/apache2-example.md">check out my real-world config file I use on fossq.com</a>.
|
||||
|
||||
## security.conf
|
||||
If you enabled the `headers` module, you can head over to `/etc/apache2/conf-enabled/security.conf` and edit:
|
||||
|
|
@ -215,12 +215,12 @@ service apache2 stop
|
|||
|
||||
Now, run `certbot`, and specify all of your domains by prepending `-d` every time. Make sure the first domain you specify is your main domain, and the same domain you specified in the configuration above! We use ECDSA encryption here as it's better than RSA.
|
||||
```sh
|
||||
certbot certonly --standalone --key-type ecdsa -d 4g.flossboxin.org.in -d www.4g.flossboxin.org.in -d flossboxin.org.in -d www.flossboxin.org.in
|
||||
certbot certonly --standalone --key-type ecdsa -d fossq.com -d www.fossq.com -d fossq.com -d www.fossq.com
|
||||
```
|
||||
|
||||
Certbot should ask you a few questions, just play along. At the end of the setup, certbot should tell you about the location of the certificates. Double check to make sure they correspond to the paths we specified in `default-ssl.conf`. Your certificates should now update every 2-3 months automatically.
|
||||
|
||||
After this is complete, create a directory in `/var/www/4get`.
|
||||
After this is complete, create a directory in `/var/www/fossq`.
|
||||
|
||||
Now, start `apache2`.
|
||||
```sh
|
||||
|
|
@ -232,11 +232,11 @@ Congratulations! You now have a... 404 error on your webserver, if everything we
|
|||
# Import the fun junk
|
||||
Run these commands:
|
||||
```
|
||||
cd /var/www/4get
|
||||
git clone https://git.bakhai.co.in/FbIN/4get
|
||||
cd /var/www/fossq
|
||||
git clone https://git.flossboxin.org.in/FbIN/fossq
|
||||
chmod 777 -R icons/
|
||||
```
|
||||
|
||||
... And try accessing your webserver. You should now have a working 4get instance!
|
||||
... And try accessing your webserver. You should now have a working fossq instance!
|
||||
|
||||
Please make sure to check out how to further <a href="https://git.bakhai.co.in/FbIN/4get/src/branch/main/docs/configure.md">configure 4get</a> to your liking!
|
||||
Please make sure to check out how to further <a href="https://git.flossboxin.org.in/FbIN/fossq/src/branch/main/docs/configure.md">configure fossq</a> to your liking!
|
||||
|
|
@ -6,17 +6,17 @@
|
|||
|
||||
2. Clone this repository where you want to host this from:
|
||||
|
||||
`cd /var/www && sudo git clone https://git.konakona.moe/diowo/4get`
|
||||
`cd /var/www && sudo git clone https://git.flossboxin.org.in/FbIN/fossq`
|
||||
|
||||
3. Set permission on the `icons` directory inside `4get`
|
||||
3. Set permission on the `icons` directory inside `fossq`
|
||||
|
||||
`cd /var/www/4get/ && sudo chmod 777 -R icons/`
|
||||
`cd /var/www/fossq/ && sudo chmod 777 -R icons/`
|
||||
|
||||
4. Add an entry for 4get on your Caddyfile at `/etc/caddy/Caddyfile`
|
||||
4. Add an entry for fossq on your Caddyfile at `/etc/caddy/Caddyfile`
|
||||
|
||||
```sh
|
||||
4get.konakona.moe {
|
||||
root * /var/www/4get
|
||||
fossq.com {
|
||||
root * /var/www/fossq
|
||||
file_server
|
||||
encode gzip
|
||||
php_fastcgi unix//var/run/php/php8.2-fpm.sock {
|
||||
|
|
@ -47,7 +47,7 @@ Edit `000-default-le-ssl.conf`
|
|||
|
||||
Add this at the end:
|
||||
```xml
|
||||
<Directory /var/www/html/4get>
|
||||
<Directory /var/www/html/fossq>
|
||||
RewriteEngine On
|
||||
RewriteCond %{REQUEST_FILENAME}.php -f
|
||||
RewriteRule (.*) $1.php [L]
|
||||
|
|
|
|||
|
|
@ -1,6 +1,6 @@
|
|||
# 4get configuation options
|
||||
# FOSS-Q configuation options
|
||||
|
||||
Welcome! This guide assumes that you have a working 4get instance. This will help you configure your instance to the best it can be!
|
||||
Welcome! This guide assumes that you have a working fossq instance. This will help you configure your instance to the best it can be!
|
||||
|
||||
# Files location
|
||||
1. The main configuration file is located at `data/config.php`
|
||||
|
|
@ -57,7 +57,7 @@ To be listed on https://4get.ca/instances , you must contact *any* of the people
|
|||
If you see spammy entries in your instances list, simply remove the instance from your list that pushes the offending entries.
|
||||
|
||||
# Proxies
|
||||
4get supports rotating proxies for scrapers! Configuring one is really easy.
|
||||
FOSS-Q supports rotating proxies for scrapers! Configuring one is really easy.
|
||||
|
||||
1. Head over to the **proxies** folder. Give it any name you want, like `myproxy`, but make sure it has the `txt` extension.
|
||||
2. Add your proxies to the file. Examples:
|
||||
|
|
|
|||
|
|
@ -1,8 +1,8 @@
|
|||
<h1 align=center>Installation of 4get in NGINX</h1>
|
||||
<h1 align=center>Installation of FOSS-Q in NGINX</h1>
|
||||
|
||||
<div align=right>
|
||||
|
||||
> NOTE: As the previous version stated, it is better to follow the <a href="https://git.bakhai.co.in/FbIN/4get/src/branch/main/docs/apache2.md">Apache2 guide</a> instead of the Nginx one.
|
||||
> NOTE: As the previous version stated, it is better to follow the <a href="https://git.flossboxin.org.in/FbIN/fossq/src/branch/main/docs/apache2.md">Apache2 guide</a> instead of the Nginx one.
|
||||
|
||||
> NOTE: This is going to guess that you're using either a <abbr title="(Arch Linux, Artix Linux, Endeavouros, etc...) ">Arch-based system</abbr> or a <abbr title="(Debian, Ubuntu, Devuan, etc...)">Debian-based system</abbr>, although you can still follow it with minor issues.
|
||||
|
||||
|
|
@ -13,7 +13,7 @@
|
|||
* On Arch-based, run `pacman -Syu`.
|
||||
* On Debian-based, run `apt update`, then `apt upgrade`.
|
||||
3. Install the following dependencies:
|
||||
* `git`: So you can clone <a href="https://git.bakhai.co.in/FbIN/4get">this</a> repository.
|
||||
* `git`: So you can clone <a href="https://git.flossboxin.org.in/FbIN/fossq">this</a> repository.
|
||||
* `nginx`: So you can run Nginx.
|
||||
* `php-fpm`: This is what allows Nginx to run *(and show)* PHP files.
|
||||
* `php-imagick`, `imagemagick`: Image manipulation.
|
||||
|
|
@ -42,15 +42,15 @@
|
|||
# If it does not, run:
|
||||
mkdir conf.d
|
||||
```
|
||||
5. Make a file inside `conf.d/` called `4get.conf` and place the following content:
|
||||
* First run `touch conf.d/4get.conf` then `nano conf.d/4get.conf` to open the nano editor: *(Install it if it is not, or use another editor.)*
|
||||
5. Make a file inside `conf.d/` called `fossq.conf` and place the following content:
|
||||
* First run `touch conf.d/fossq.conf` then `nano conf.d/fossq.conf` to open the nano editor: *(Install it if it is not, or use another editor.)*
|
||||
```sh
|
||||
server {
|
||||
access_log /dev/null; # Search log file. Do you really need to?
|
||||
error_log /dev/null; # Error log file.
|
||||
|
||||
# Change this if you have 4get in another folder.
|
||||
root /var/www/4get;
|
||||
# Change this if you have fossq in another folder.
|
||||
root /var/www/fossq;
|
||||
# Change 'yourdomain' to your domain.
|
||||
server_name www.yourdomain.com yourdomain.com;
|
||||
# Port to listen to.
|
||||
|
|
@ -121,7 +121,7 @@
|
|||
dinitctl restart nginx
|
||||
```
|
||||
6. Clone the repository to `/var/www`:
|
||||
* `git clone --depth 1 https://git.bakhai.co.in/FbIN/4get 4get` - It clones the repository with the depth of one commit *(so it takes less time to download)* and saves the cloned repository as '4get'.
|
||||
* `git clone --depth 1 https://git.flossboxin.org.in/FbIN/fossq fossq` - It clones the repository with the depth of one commit *(so it takes less time to download)* and saves the cloned repository as 'fossq'.
|
||||
7. That should be it! There are some extra steps you can take, but it really just depends on you.
|
||||
|
||||
<h2 align=center>Encryption setup</h2>
|
||||
|
|
@ -131,7 +131,7 @@
|
|||
```sh
|
||||
certbot --nginx --key-type ecdsa -d www.yourdomain.com -d yourdomain.com
|
||||
```
|
||||
2. After that, certbot will deploy the certificate automatically to your 4get conf file; It should be ready to use from there.
|
||||
2. After that, certbot will deploy the certificate automatically to your fossq conf file; It should be ready to use from there.
|
||||
|
||||
<h2 align=center>Tor Setup</h2>
|
||||
|
||||
|
|
@ -151,8 +151,8 @@
|
|||
access_log /dev/null; # Search log file. Do you really need to?
|
||||
error_log /dev/null; # Error log file.
|
||||
|
||||
# Change this if you have 4get in another folder.
|
||||
root /var/www/4get;
|
||||
# Change this if you have fossq in another folder.
|
||||
root /var/www/fossq;
|
||||
# Change 'onionadress.onion' to your onion link.
|
||||
server_name onionadress.onion;
|
||||
# Port to listen to.
|
||||
|
|
@ -179,12 +179,12 @@
|
|||
}
|
||||
```
|
||||
A real world example is present in [^2].
|
||||
5. Once done, check the configuration with `nginx -t`. If everything's fine and dandy, refer to <a href="https://git.bakhai.co.in/FbIN/4get/src/branch/main/docs/tor.md">the Tor guide</a> to setup your onion site.
|
||||
5. Once done, check the configuration with `nginx -t`. If everything's fine and dandy, refer to <a href="https://git.flossboxin.org.in/FbIN/fossq/src/branch/main/docs/tor.md">the Tor guide</a> to setup your onion site.
|
||||
|
||||
<h2 align=center>Other important things</h2>
|
||||
|
||||
1. <a href="https://git.bakhai.co.in/FbIN/4get/src/branch/main/docs/configure.md">Configuration guide</a>: Things to do after setup.
|
||||
2. <a href="https://git.bakhai.co.in/FbIN/4get/src/branch/main/docs/apache2.md">Apache2 guide</a>: Fallback to this if you couldn't get something to work, or you don't know something.
|
||||
1. <a href="https://git.flossboxin.org.in/FbIN/fossq/src/branch/main/docs/configure.md">Configuration guide</a>: Things to do after setup.
|
||||
2. <a href="https://git.flossboxin.org.in/FbIN/fossq/src/branch/main/docs/apache2.md">Apache2 guide</a>: Fallback to this if you couldn't get something to work, or you don't know something.
|
||||
|
||||
<h2 align=center>Known issues</h2>
|
||||
|
||||
|
|
|
|||
|
|
@ -1,16 +1,16 @@
|
|||
# Tor setup
|
||||
This guide assumes that there is already a configured webserver sitting on port 80 waiting for localhost connections. The <a href="https://git.bakhai.co.in/FbIN/4get/src/branch/main/docs/apache2.md">apache2 guide</a> guides you through this.
|
||||
This guide assumes that there is already a configured webserver sitting on port 80 waiting for localhost connections. The <a href="https://git.flossboxin.org.in/FbIN/fossq/src/branch/main/docs/apache2.md">apache2 guide</a> guides you through this.
|
||||
|
||||
1. Login as `root`.
|
||||
2. Install `tor`.
|
||||
3. Edit `/etc/tor/torrc`
|
||||
4. Go to the line that contains `HiddenServiceDir` and `HiddenServicePort`, uncomment those 2 lines and set them like this:
|
||||
```
|
||||
HiddenServiceDir /var/lib/tor/4get
|
||||
HiddenServiceDir /var/lib/tor/fossq
|
||||
HiddenServicePort 80 127.0.0.1:80
|
||||
```
|
||||
5. Restart the tor service using `service tor restart`
|
||||
6. Wait for a while...
|
||||
7. Run `cat /var/lib/tor/4get/hostname`. That is your onion address!
|
||||
7. Run `cat /var/lib/tor/fossq/hostname`. That is your onion address!
|
||||
|
||||
# Specify your own tor address
|
||||
|
|
|
|||
Loading…
Reference in a new issue