First commit.
This commit is contained in:
commit
70eacb2517
1
.gitignore
vendored
Normal file
1
.gitignore
vendored
Normal file
@ -0,0 +1 @@
|
||||
.hugo_build.lock
|
674
LICENSE
Normal file
674
LICENSE
Normal file
@ -0,0 +1,674 @@
|
||||
GNU GENERAL PUBLIC LICENSE
|
||||
Version 3, 29 June 2007
|
||||
|
||||
Copyright (C) 2007 Free Software Foundation, Inc. <https://fsf.org/>
|
||||
Everyone is permitted to copy and distribute verbatim copies
|
||||
of this license document, but changing it is not allowed.
|
||||
|
||||
Preamble
|
||||
|
||||
The GNU General Public License is a free, copyleft license for
|
||||
software and other kinds of works.
|
||||
|
||||
The licenses for most software and other practical works are designed
|
||||
to take away your freedom to share and change the works. By contrast,
|
||||
the GNU General Public License is intended to guarantee your freedom to
|
||||
share and change all versions of a program--to make sure it remains free
|
||||
software for all its users. We, the Free Software Foundation, use the
|
||||
GNU General Public License for most of our software; it applies also to
|
||||
any other work released this way by its authors. You can apply it to
|
||||
your programs, too.
|
||||
|
||||
When we speak of free software, we are referring to freedom, not
|
||||
price. Our General Public Licenses are designed to make sure that you
|
||||
have the freedom to distribute copies of free software (and charge for
|
||||
them if you wish), that you receive source code or can get it if you
|
||||
want it, that you can change the software or use pieces of it in new
|
||||
free programs, and that you know you can do these things.
|
||||
|
||||
To protect your rights, we need to prevent others from denying you
|
||||
these rights or asking you to surrender the rights. Therefore, you have
|
||||
certain responsibilities if you distribute copies of the software, or if
|
||||
you modify it: responsibilities to respect the freedom of others.
|
||||
|
||||
For example, if you distribute copies of such a program, whether
|
||||
gratis or for a fee, you must pass on to the recipients the same
|
||||
freedoms that you received. You must make sure that they, too, receive
|
||||
or can get the source code. And you must show them these terms so they
|
||||
know their rights.
|
||||
|
||||
Developers that use the GNU GPL protect your rights with two steps:
|
||||
(1) assert copyright on the software, and (2) offer you this License
|
||||
giving you legal permission to copy, distribute and/or modify it.
|
||||
|
||||
For the developers' and authors' protection, the GPL clearly explains
|
||||
that there is no warranty for this free software. For both users' and
|
||||
authors' sake, the GPL requires that modified versions be marked as
|
||||
changed, so that their problems will not be attributed erroneously to
|
||||
authors of previous versions.
|
||||
|
||||
Some devices are designed to deny users access to install or run
|
||||
modified versions of the software inside them, although the manufacturer
|
||||
can do so. This is fundamentally incompatible with the aim of
|
||||
protecting users' freedom to change the software. The systematic
|
||||
pattern of such abuse occurs in the area of products for individuals to
|
||||
use, which is precisely where it is most unacceptable. Therefore, we
|
||||
have designed this version of the GPL to prohibit the practice for those
|
||||
products. If such problems arise substantially in other domains, we
|
||||
stand ready to extend this provision to those domains in future versions
|
||||
of the GPL, as needed to protect the freedom of users.
|
||||
|
||||
Finally, every program is threatened constantly by software patents.
|
||||
States should not allow patents to restrict development and use of
|
||||
software on general-purpose computers, but in those that do, we wish to
|
||||
avoid the special danger that patents applied to a free program could
|
||||
make it effectively proprietary. To prevent this, the GPL assures that
|
||||
patents cannot be used to render the program non-free.
|
||||
|
||||
The precise terms and conditions for copying, distribution and
|
||||
modification follow.
|
||||
|
||||
TERMS AND CONDITIONS
|
||||
|
||||
0. Definitions.
|
||||
|
||||
"This License" refers to version 3 of the GNU General Public License.
|
||||
|
||||
"Copyright" also means copyright-like laws that apply to other kinds of
|
||||
works, such as semiconductor masks.
|
||||
|
||||
"The Program" refers to any copyrightable work licensed under this
|
||||
License. Each licensee is addressed as "you". "Licensees" and
|
||||
"recipients" may be individuals or organizations.
|
||||
|
||||
To "modify" a work means to copy from or adapt all or part of the work
|
||||
in a fashion requiring copyright permission, other than the making of an
|
||||
exact copy. The resulting work is called a "modified version" of the
|
||||
earlier work or a work "based on" the earlier work.
|
||||
|
||||
A "covered work" means either the unmodified Program or a work based
|
||||
on the Program.
|
||||
|
||||
To "propagate" a work means to do anything with it that, without
|
||||
permission, would make you directly or secondarily liable for
|
||||
infringement under applicable copyright law, except executing it on a
|
||||
computer or modifying a private copy. Propagation includes copying,
|
||||
distribution (with or without modification), making available to the
|
||||
public, and in some countries other activities as well.
|
||||
|
||||
To "convey" a work means any kind of propagation that enables other
|
||||
parties to make or receive copies. Mere interaction with a user through
|
||||
a computer network, with no transfer of a copy, is not conveying.
|
||||
|
||||
An interactive user interface displays "Appropriate Legal Notices"
|
||||
to the extent that it includes a convenient and prominently visible
|
||||
feature that (1) displays an appropriate copyright notice, and (2)
|
||||
tells the user that there is no warranty for the work (except to the
|
||||
extent that warranties are provided), that licensees may convey the
|
||||
work under this License, and how to view a copy of this License. If
|
||||
the interface presents a list of user commands or options, such as a
|
||||
menu, a prominent item in the list meets this criterion.
|
||||
|
||||
1. Source Code.
|
||||
|
||||
The "source code" for a work means the preferred form of the work
|
||||
for making modifications to it. "Object code" means any non-source
|
||||
form of a work.
|
||||
|
||||
A "Standard Interface" means an interface that either is an official
|
||||
standard defined by a recognized standards body, or, in the case of
|
||||
interfaces specified for a particular programming language, one that
|
||||
is widely used among developers working in that language.
|
||||
|
||||
The "System Libraries" of an executable work include anything, other
|
||||
than the work as a whole, that (a) is included in the normal form of
|
||||
packaging a Major Component, but which is not part of that Major
|
||||
Component, and (b) serves only to enable use of the work with that
|
||||
Major Component, or to implement a Standard Interface for which an
|
||||
implementation is available to the public in source code form. A
|
||||
"Major Component", in this context, means a major essential component
|
||||
(kernel, window system, and so on) of the specific operating system
|
||||
(if any) on which the executable work runs, or a compiler used to
|
||||
produce the work, or an object code interpreter used to run it.
|
||||
|
||||
The "Corresponding Source" for a work in object code form means all
|
||||
the source code needed to generate, install, and (for an executable
|
||||
work) run the object code and to modify the work, including scripts to
|
||||
control those activities. However, it does not include the work's
|
||||
System Libraries, or general-purpose tools or generally available free
|
||||
programs which are used unmodified in performing those activities but
|
||||
which are not part of the work. For example, Corresponding Source
|
||||
includes interface definition files associated with source files for
|
||||
the work, and the source code for shared libraries and dynamically
|
||||
linked subprograms that the work is specifically designed to require,
|
||||
such as by intimate data communication or control flow between those
|
||||
subprograms and other parts of the work.
|
||||
|
||||
The Corresponding Source need not include anything that users
|
||||
can regenerate automatically from other parts of the Corresponding
|
||||
Source.
|
||||
|
||||
The Corresponding Source for a work in source code form is that
|
||||
same work.
|
||||
|
||||
2. Basic Permissions.
|
||||
|
||||
All rights granted under this License are granted for the term of
|
||||
copyright on the Program, and are irrevocable provided the stated
|
||||
conditions are met. This License explicitly affirms your unlimited
|
||||
permission to run the unmodified Program. The output from running a
|
||||
covered work is covered by this License only if the output, given its
|
||||
content, constitutes a covered work. This License acknowledges your
|
||||
rights of fair use or other equivalent, as provided by copyright law.
|
||||
|
||||
You may make, run and propagate covered works that you do not
|
||||
convey, without conditions so long as your license otherwise remains
|
||||
in force. You may convey covered works to others for the sole purpose
|
||||
of having them make modifications exclusively for you, or provide you
|
||||
with facilities for running those works, provided that you comply with
|
||||
the terms of this License in conveying all material for which you do
|
||||
not control copyright. Those thus making or running the covered works
|
||||
for you must do so exclusively on your behalf, under your direction
|
||||
and control, on terms that prohibit them from making any copies of
|
||||
your copyrighted material outside their relationship with you.
|
||||
|
||||
Conveying under any other circumstances is permitted solely under
|
||||
the conditions stated below. Sublicensing is not allowed; section 10
|
||||
makes it unnecessary.
|
||||
|
||||
3. Protecting Users' Legal Rights From Anti-Circumvention Law.
|
||||
|
||||
No covered work shall be deemed part of an effective technological
|
||||
measure under any applicable law fulfilling obligations under article
|
||||
11 of the WIPO copyright treaty adopted on 20 December 1996, or
|
||||
similar laws prohibiting or restricting circumvention of such
|
||||
measures.
|
||||
|
||||
When you convey a covered work, you waive any legal power to forbid
|
||||
circumvention of technological measures to the extent such circumvention
|
||||
is effected by exercising rights under this License with respect to
|
||||
the covered work, and you disclaim any intention to limit operation or
|
||||
modification of the work as a means of enforcing, against the work's
|
||||
users, your or third parties' legal rights to forbid circumvention of
|
||||
technological measures.
|
||||
|
||||
4. Conveying Verbatim Copies.
|
||||
|
||||
You may convey verbatim copies of the Program's source code as you
|
||||
receive it, in any medium, provided that you conspicuously and
|
||||
appropriately publish on each copy an appropriate copyright notice;
|
||||
keep intact all notices stating that this License and any
|
||||
non-permissive terms added in accord with section 7 apply to the code;
|
||||
keep intact all notices of the absence of any warranty; and give all
|
||||
recipients a copy of this License along with the Program.
|
||||
|
||||
You may charge any price or no price for each copy that you convey,
|
||||
and you may offer support or warranty protection for a fee.
|
||||
|
||||
5. Conveying Modified Source Versions.
|
||||
|
||||
You may convey a work based on the Program, or the modifications to
|
||||
produce it from the Program, in the form of source code under the
|
||||
terms of section 4, provided that you also meet all of these conditions:
|
||||
|
||||
a) The work must carry prominent notices stating that you modified
|
||||
it, and giving a relevant date.
|
||||
|
||||
b) The work must carry prominent notices stating that it is
|
||||
released under this License and any conditions added under section
|
||||
7. This requirement modifies the requirement in section 4 to
|
||||
"keep intact all notices".
|
||||
|
||||
c) You must license the entire work, as a whole, under this
|
||||
License to anyone who comes into possession of a copy. This
|
||||
License will therefore apply, along with any applicable section 7
|
||||
additional terms, to the whole of the work, and all its parts,
|
||||
regardless of how they are packaged. This License gives no
|
||||
permission to license the work in any other way, but it does not
|
||||
invalidate such permission if you have separately received it.
|
||||
|
||||
d) If the work has interactive user interfaces, each must display
|
||||
Appropriate Legal Notices; however, if the Program has interactive
|
||||
interfaces that do not display Appropriate Legal Notices, your
|
||||
work need not make them do so.
|
||||
|
||||
A compilation of a covered work with other separate and independent
|
||||
works, which are not by their nature extensions of the covered work,
|
||||
and which are not combined with it such as to form a larger program,
|
||||
in or on a volume of a storage or distribution medium, is called an
|
||||
"aggregate" if the compilation and its resulting copyright are not
|
||||
used to limit the access or legal rights of the compilation's users
|
||||
beyond what the individual works permit. Inclusion of a covered work
|
||||
in an aggregate does not cause this License to apply to the other
|
||||
parts of the aggregate.
|
||||
|
||||
6. Conveying Non-Source Forms.
|
||||
|
||||
You may convey a covered work in object code form under the terms
|
||||
of sections 4 and 5, provided that you also convey the
|
||||
machine-readable Corresponding Source under the terms of this License,
|
||||
in one of these ways:
|
||||
|
||||
a) Convey the object code in, or embodied in, a physical product
|
||||
(including a physical distribution medium), accompanied by the
|
||||
Corresponding Source fixed on a durable physical medium
|
||||
customarily used for software interchange.
|
||||
|
||||
b) Convey the object code in, or embodied in, a physical product
|
||||
(including a physical distribution medium), accompanied by a
|
||||
written offer, valid for at least three years and valid for as
|
||||
long as you offer spare parts or customer support for that product
|
||||
model, to give anyone who possesses the object code either (1) a
|
||||
copy of the Corresponding Source for all the software in the
|
||||
product that is covered by this License, on a durable physical
|
||||
medium customarily used for software interchange, for a price no
|
||||
more than your reasonable cost of physically performing this
|
||||
conveying of source, or (2) access to copy the
|
||||
Corresponding Source from a network server at no charge.
|
||||
|
||||
c) Convey individual copies of the object code with a copy of the
|
||||
written offer to provide the Corresponding Source. This
|
||||
alternative is allowed only occasionally and noncommercially, and
|
||||
only if you received the object code with such an offer, in accord
|
||||
with subsection 6b.
|
||||
|
||||
d) Convey the object code by offering access from a designated
|
||||
place (gratis or for a charge), and offer equivalent access to the
|
||||
Corresponding Source in the same way through the same place at no
|
||||
further charge. You need not require recipients to copy the
|
||||
Corresponding Source along with the object code. If the place to
|
||||
copy the object code is a network server, the Corresponding Source
|
||||
may be on a different server (operated by you or a third party)
|
||||
that supports equivalent copying facilities, provided you maintain
|
||||
clear directions next to the object code saying where to find the
|
||||
Corresponding Source. Regardless of what server hosts the
|
||||
Corresponding Source, you remain obligated to ensure that it is
|
||||
available for as long as needed to satisfy these requirements.
|
||||
|
||||
e) Convey the object code using peer-to-peer transmission, provided
|
||||
you inform other peers where the object code and Corresponding
|
||||
Source of the work are being offered to the general public at no
|
||||
charge under subsection 6d.
|
||||
|
||||
A separable portion of the object code, whose source code is excluded
|
||||
from the Corresponding Source as a System Library, need not be
|
||||
included in conveying the object code work.
|
||||
|
||||
A "User Product" is either (1) a "consumer product", which means any
|
||||
tangible personal property which is normally used for personal, family,
|
||||
or household purposes, or (2) anything designed or sold for incorporation
|
||||
into a dwelling. In determining whether a product is a consumer product,
|
||||
doubtful cases shall be resolved in favor of coverage. For a particular
|
||||
product received by a particular user, "normally used" refers to a
|
||||
typical or common use of that class of product, regardless of the status
|
||||
of the particular user or of the way in which the particular user
|
||||
actually uses, or expects or is expected to use, the product. A product
|
||||
is a consumer product regardless of whether the product has substantial
|
||||
commercial, industrial or non-consumer uses, unless such uses represent
|
||||
the only significant mode of use of the product.
|
||||
|
||||
"Installation Information" for a User Product means any methods,
|
||||
procedures, authorization keys, or other information required to install
|
||||
and execute modified versions of a covered work in that User Product from
|
||||
a modified version of its Corresponding Source. The information must
|
||||
suffice to ensure that the continued functioning of the modified object
|
||||
code is in no case prevented or interfered with solely because
|
||||
modification has been made.
|
||||
|
||||
If you convey an object code work under this section in, or with, or
|
||||
specifically for use in, a User Product, and the conveying occurs as
|
||||
part of a transaction in which the right of possession and use of the
|
||||
User Product is transferred to the recipient in perpetuity or for a
|
||||
fixed term (regardless of how the transaction is characterized), the
|
||||
Corresponding Source conveyed under this section must be accompanied
|
||||
by the Installation Information. But this requirement does not apply
|
||||
if neither you nor any third party retains the ability to install
|
||||
modified object code on the User Product (for example, the work has
|
||||
been installed in ROM).
|
||||
|
||||
The requirement to provide Installation Information does not include a
|
||||
requirement to continue to provide support service, warranty, or updates
|
||||
for a work that has been modified or installed by the recipient, or for
|
||||
the User Product in which it has been modified or installed. Access to a
|
||||
network may be denied when the modification itself materially and
|
||||
adversely affects the operation of the network or violates the rules and
|
||||
protocols for communication across the network.
|
||||
|
||||
Corresponding Source conveyed, and Installation Information provided,
|
||||
in accord with this section must be in a format that is publicly
|
||||
documented (and with an implementation available to the public in
|
||||
source code form), and must require no special password or key for
|
||||
unpacking, reading or copying.
|
||||
|
||||
7. Additional Terms.
|
||||
|
||||
"Additional permissions" are terms that supplement the terms of this
|
||||
License by making exceptions from one or more of its conditions.
|
||||
Additional permissions that are applicable to the entire Program shall
|
||||
be treated as though they were included in this License, to the extent
|
||||
that they are valid under applicable law. If additional permissions
|
||||
apply only to part of the Program, that part may be used separately
|
||||
under those permissions, but the entire Program remains governed by
|
||||
this License without regard to the additional permissions.
|
||||
|
||||
When you convey a copy of a covered work, you may at your option
|
||||
remove any additional permissions from that copy, or from any part of
|
||||
it. (Additional permissions may be written to require their own
|
||||
removal in certain cases when you modify the work.) You may place
|
||||
additional permissions on material, added by you to a covered work,
|
||||
for which you have or can give appropriate copyright permission.
|
||||
|
||||
Notwithstanding any other provision of this License, for material you
|
||||
add to a covered work, you may (if authorized by the copyright holders of
|
||||
that material) supplement the terms of this License with terms:
|
||||
|
||||
a) Disclaiming warranty or limiting liability differently from the
|
||||
terms of sections 15 and 16 of this License; or
|
||||
|
||||
b) Requiring preservation of specified reasonable legal notices or
|
||||
author attributions in that material or in the Appropriate Legal
|
||||
Notices displayed by works containing it; or
|
||||
|
||||
c) Prohibiting misrepresentation of the origin of that material, or
|
||||
requiring that modified versions of such material be marked in
|
||||
reasonable ways as different from the original version; or
|
||||
|
||||
d) Limiting the use for publicity purposes of names of licensors or
|
||||
authors of the material; or
|
||||
|
||||
e) Declining to grant rights under trademark law for use of some
|
||||
trade names, trademarks, or service marks; or
|
||||
|
||||
f) Requiring indemnification of licensors and authors of that
|
||||
material by anyone who conveys the material (or modified versions of
|
||||
it) with contractual assumptions of liability to the recipient, for
|
||||
any liability that these contractual assumptions directly impose on
|
||||
those licensors and authors.
|
||||
|
||||
All other non-permissive additional terms are considered "further
|
||||
restrictions" within the meaning of section 10. If the Program as you
|
||||
received it, or any part of it, contains a notice stating that it is
|
||||
governed by this License along with a term that is a further
|
||||
restriction, you may remove that term. If a license document contains
|
||||
a further restriction but permits relicensing or conveying under this
|
||||
License, you may add to a covered work material governed by the terms
|
||||
of that license document, provided that the further restriction does
|
||||
not survive such relicensing or conveying.
|
||||
|
||||
If you add terms to a covered work in accord with this section, you
|
||||
must place, in the relevant source files, a statement of the
|
||||
additional terms that apply to those files, or a notice indicating
|
||||
where to find the applicable terms.
|
||||
|
||||
Additional terms, permissive or non-permissive, may be stated in the
|
||||
form of a separately written license, or stated as exceptions;
|
||||
the above requirements apply either way.
|
||||
|
||||
8. Termination.
|
||||
|
||||
You may not propagate or modify a covered work except as expressly
|
||||
provided under this License. Any attempt otherwise to propagate or
|
||||
modify it is void, and will automatically terminate your rights under
|
||||
this License (including any patent licenses granted under the third
|
||||
paragraph of section 11).
|
||||
|
||||
However, if you cease all violation of this License, then your
|
||||
license from a particular copyright holder is reinstated (a)
|
||||
provisionally, unless and until the copyright holder explicitly and
|
||||
finally terminates your license, and (b) permanently, if the copyright
|
||||
holder fails to notify you of the violation by some reasonable means
|
||||
prior to 60 days after the cessation.
|
||||
|
||||
Moreover, your license from a particular copyright holder is
|
||||
reinstated permanently if the copyright holder notifies you of the
|
||||
violation by some reasonable means, this is the first time you have
|
||||
received notice of violation of this License (for any work) from that
|
||||
copyright holder, and you cure the violation prior to 30 days after
|
||||
your receipt of the notice.
|
||||
|
||||
Termination of your rights under this section does not terminate the
|
||||
licenses of parties who have received copies or rights from you under
|
||||
this License. If your rights have been terminated and not permanently
|
||||
reinstated, you do not qualify to receive new licenses for the same
|
||||
material under section 10.
|
||||
|
||||
9. Acceptance Not Required for Having Copies.
|
||||
|
||||
You are not required to accept this License in order to receive or
|
||||
run a copy of the Program. Ancillary propagation of a covered work
|
||||
occurring solely as a consequence of using peer-to-peer transmission
|
||||
to receive a copy likewise does not require acceptance. However,
|
||||
nothing other than this License grants you permission to propagate or
|
||||
modify any covered work. These actions infringe copyright if you do
|
||||
not accept this License. Therefore, by modifying or propagating a
|
||||
covered work, you indicate your acceptance of this License to do so.
|
||||
|
||||
10. Automatic Licensing of Downstream Recipients.
|
||||
|
||||
Each time you convey a covered work, the recipient automatically
|
||||
receives a license from the original licensors, to run, modify and
|
||||
propagate that work, subject to this License. You are not responsible
|
||||
for enforcing compliance by third parties with this License.
|
||||
|
||||
An "entity transaction" is a transaction transferring control of an
|
||||
organization, or substantially all assets of one, or subdividing an
|
||||
organization, or merging organizations. If propagation of a covered
|
||||
work results from an entity transaction, each party to that
|
||||
transaction who receives a copy of the work also receives whatever
|
||||
licenses to the work the party's predecessor in interest had or could
|
||||
give under the previous paragraph, plus a right to possession of the
|
||||
Corresponding Source of the work from the predecessor in interest, if
|
||||
the predecessor has it or can get it with reasonable efforts.
|
||||
|
||||
You may not impose any further restrictions on the exercise of the
|
||||
rights granted or affirmed under this License. For example, you may
|
||||
not impose a license fee, royalty, or other charge for exercise of
|
||||
rights granted under this License, and you may not initiate litigation
|
||||
(including a cross-claim or counterclaim in a lawsuit) alleging that
|
||||
any patent claim is infringed by making, using, selling, offering for
|
||||
sale, or importing the Program or any portion of it.
|
||||
|
||||
11. Patents.
|
||||
|
||||
A "contributor" is a copyright holder who authorizes use under this
|
||||
License of the Program or a work on which the Program is based. The
|
||||
work thus licensed is called the contributor's "contributor version".
|
||||
|
||||
A contributor's "essential patent claims" are all patent claims
|
||||
owned or controlled by the contributor, whether already acquired or
|
||||
hereafter acquired, that would be infringed by some manner, permitted
|
||||
by this License, of making, using, or selling its contributor version,
|
||||
but do not include claims that would be infringed only as a
|
||||
consequence of further modification of the contributor version. For
|
||||
purposes of this definition, "control" includes the right to grant
|
||||
patent sublicenses in a manner consistent with the requirements of
|
||||
this License.
|
||||
|
||||
Each contributor grants you a non-exclusive, worldwide, royalty-free
|
||||
patent license under the contributor's essential patent claims, to
|
||||
make, use, sell, offer for sale, import and otherwise run, modify and
|
||||
propagate the contents of its contributor version.
|
||||
|
||||
In the following three paragraphs, a "patent license" is any express
|
||||
agreement or commitment, however denominated, not to enforce a patent
|
||||
(such as an express permission to practice a patent or covenant not to
|
||||
sue for patent infringement). To "grant" such a patent license to a
|
||||
party means to make such an agreement or commitment not to enforce a
|
||||
patent against the party.
|
||||
|
||||
If you convey a covered work, knowingly relying on a patent license,
|
||||
and the Corresponding Source of the work is not available for anyone
|
||||
to copy, free of charge and under the terms of this License, through a
|
||||
publicly available network server or other readily accessible means,
|
||||
then you must either (1) cause the Corresponding Source to be so
|
||||
available, or (2) arrange to deprive yourself of the benefit of the
|
||||
patent license for this particular work, or (3) arrange, in a manner
|
||||
consistent with the requirements of this License, to extend the patent
|
||||
license to downstream recipients. "Knowingly relying" means you have
|
||||
actual knowledge that, but for the patent license, your conveying the
|
||||
covered work in a country, or your recipient's use of the covered work
|
||||
in a country, would infringe one or more identifiable patents in that
|
||||
country that you have reason to believe are valid.
|
||||
|
||||
If, pursuant to or in connection with a single transaction or
|
||||
arrangement, you convey, or propagate by procuring conveyance of, a
|
||||
covered work, and grant a patent license to some of the parties
|
||||
receiving the covered work authorizing them to use, propagate, modify
|
||||
or convey a specific copy of the covered work, then the patent license
|
||||
you grant is automatically extended to all recipients of the covered
|
||||
work and works based on it.
|
||||
|
||||
A patent license is "discriminatory" if it does not include within
|
||||
the scope of its coverage, prohibits the exercise of, or is
|
||||
conditioned on the non-exercise of one or more of the rights that are
|
||||
specifically granted under this License. You may not convey a covered
|
||||
work if you are a party to an arrangement with a third party that is
|
||||
in the business of distributing software, under which you make payment
|
||||
to the third party based on the extent of your activity of conveying
|
||||
the work, and under which the third party grants, to any of the
|
||||
parties who would receive the covered work from you, a discriminatory
|
||||
patent license (a) in connection with copies of the covered work
|
||||
conveyed by you (or copies made from those copies), or (b) primarily
|
||||
for and in connection with specific products or compilations that
|
||||
contain the covered work, unless you entered into that arrangement,
|
||||
or that patent license was granted, prior to 28 March 2007.
|
||||
|
||||
Nothing in this License shall be construed as excluding or limiting
|
||||
any implied license or other defenses to infringement that may
|
||||
otherwise be available to you under applicable patent law.
|
||||
|
||||
12. No Surrender of Others' Freedom.
|
||||
|
||||
If conditions are imposed on you (whether by court order, agreement or
|
||||
otherwise) that contradict the conditions of this License, they do not
|
||||
excuse you from the conditions of this License. If you cannot convey a
|
||||
covered work so as to satisfy simultaneously your obligations under this
|
||||
License and any other pertinent obligations, then as a consequence you may
|
||||
not convey it at all. For example, if you agree to terms that obligate you
|
||||
to collect a royalty for further conveying from those to whom you convey
|
||||
the Program, the only way you could satisfy both those terms and this
|
||||
License would be to refrain entirely from conveying the Program.
|
||||
|
||||
13. Use with the GNU Affero General Public License.
|
||||
|
||||
Notwithstanding any other provision of this License, you have
|
||||
permission to link or combine any covered work with a work licensed
|
||||
under version 3 of the GNU Affero General Public License into a single
|
||||
combined work, and to convey the resulting work. The terms of this
|
||||
License will continue to apply to the part which is the covered work,
|
||||
but the special requirements of the GNU Affero General Public License,
|
||||
section 13, concerning interaction through a network will apply to the
|
||||
combination as such.
|
||||
|
||||
14. Revised Versions of this License.
|
||||
|
||||
The Free Software Foundation may publish revised and/or new versions of
|
||||
the GNU General Public License from time to time. Such new versions will
|
||||
be similar in spirit to the present version, but may differ in detail to
|
||||
address new problems or concerns.
|
||||
|
||||
Each version is given a distinguishing version number. If the
|
||||
Program specifies that a certain numbered version of the GNU General
|
||||
Public License "or any later version" applies to it, you have the
|
||||
option of following the terms and conditions either of that numbered
|
||||
version or of any later version published by the Free Software
|
||||
Foundation. If the Program does not specify a version number of the
|
||||
GNU General Public License, you may choose any version ever published
|
||||
by the Free Software Foundation.
|
||||
|
||||
If the Program specifies that a proxy can decide which future
|
||||
versions of the GNU General Public License can be used, that proxy's
|
||||
public statement of acceptance of a version permanently authorizes you
|
||||
to choose that version for the Program.
|
||||
|
||||
Later license versions may give you additional or different
|
||||
permissions. However, no additional obligations are imposed on any
|
||||
author or copyright holder as a result of your choosing to follow a
|
||||
later version.
|
||||
|
||||
15. Disclaimer of Warranty.
|
||||
|
||||
THERE IS NO WARRANTY FOR THE PROGRAM, TO THE EXTENT PERMITTED BY
|
||||
APPLICABLE LAW. EXCEPT WHEN OTHERWISE STATED IN WRITING THE COPYRIGHT
|
||||
HOLDERS AND/OR OTHER PARTIES PROVIDE THE PROGRAM "AS IS" WITHOUT WARRANTY
|
||||
OF ANY KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING, BUT NOT LIMITED TO,
|
||||
THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
|
||||
PURPOSE. THE ENTIRE RISK AS TO THE QUALITY AND PERFORMANCE OF THE PROGRAM
|
||||
IS WITH YOU. SHOULD THE PROGRAM PROVE DEFECTIVE, YOU ASSUME THE COST OF
|
||||
ALL NECESSARY SERVICING, REPAIR OR CORRECTION.
|
||||
|
||||
16. Limitation of Liability.
|
||||
|
||||
IN NO EVENT UNLESS REQUIRED BY APPLICABLE LAW OR AGREED TO IN WRITING
|
||||
WILL ANY COPYRIGHT HOLDER, OR ANY OTHER PARTY WHO MODIFIES AND/OR CONVEYS
|
||||
THE PROGRAM AS PERMITTED ABOVE, BE LIABLE TO YOU FOR DAMAGES, INCLUDING ANY
|
||||
GENERAL, SPECIAL, INCIDENTAL OR CONSEQUENTIAL DAMAGES ARISING OUT OF THE
|
||||
USE OR INABILITY TO USE THE PROGRAM (INCLUDING BUT NOT LIMITED TO LOSS OF
|
||||
DATA OR DATA BEING RENDERED INACCURATE OR LOSSES SUSTAINED BY YOU OR THIRD
|
||||
PARTIES OR A FAILURE OF THE PROGRAM TO OPERATE WITH ANY OTHER PROGRAMS),
|
||||
EVEN IF SUCH HOLDER OR OTHER PARTY HAS BEEN ADVISED OF THE POSSIBILITY OF
|
||||
SUCH DAMAGES.
|
||||
|
||||
17. Interpretation of Sections 15 and 16.
|
||||
|
||||
If the disclaimer of warranty and limitation of liability provided
|
||||
above cannot be given local legal effect according to their terms,
|
||||
reviewing courts shall apply local law that most closely approximates
|
||||
an absolute waiver of all civil liability in connection with the
|
||||
Program, unless a warranty or assumption of liability accompanies a
|
||||
copy of the Program in return for a fee.
|
||||
|
||||
END OF TERMS AND CONDITIONS
|
||||
|
||||
How to Apply These Terms to Your New Programs
|
||||
|
||||
If you develop a new program, and you want it to be of the greatest
|
||||
possible use to the public, the best way to achieve this is to make it
|
||||
free software which everyone can redistribute and change under these terms.
|
||||
|
||||
To do so, attach the following notices to the program. It is safest
|
||||
to attach them to the start of each source file to most effectively
|
||||
state the exclusion of warranty; and each file should have at least
|
||||
the "copyright" line and a pointer to where the full notice is found.
|
||||
|
||||
termux-dots
|
||||
Copyright (C) 2022 Crony Akatsuki
|
||||
|
||||
This program is free software: you can redistribute it and/or modify
|
||||
it under the terms of the GNU General Public License as published by
|
||||
the Free Software Foundation, either version 3 of the License, or
|
||||
(at your option) any later version.
|
||||
|
||||
This program is distributed in the hope that it will be useful,
|
||||
but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||
GNU General Public License for more details.
|
||||
|
||||
You should have received a copy of the GNU General Public License
|
||||
along with this program. If not, see <https://www.gnu.org/licenses/>.
|
||||
|
||||
Also add information on how to contact you by electronic and paper mail.
|
||||
|
||||
If the program does terminal interaction, make it output a short
|
||||
notice like this when it starts in an interactive mode:
|
||||
|
||||
<program> Copyright (C) 2022 Crony Akatsuki
|
||||
This program comes with ABSOLUTELY NO WARRANTY; for details type `show w'.
|
||||
This is free software, and you are welcome to redistribute it
|
||||
under certain conditions; type `show c' for details.
|
||||
|
||||
The hypothetical commands `show w' and `show c' should show the appropriate
|
||||
parts of the General Public License. Of course, your program's commands
|
||||
might be different; for a GUI interface, you would use an "about box".
|
||||
|
||||
You should also get your employer (if you work as a programmer) or school,
|
||||
if any, to sign a "copyright disclaimer" for the program, if necessary.
|
||||
For more information on this, and how to apply and follow the GNU GPL, see
|
||||
<https://www.gnu.org/licenses/>.
|
||||
|
||||
The GNU General Public License does not permit incorporating your program
|
||||
into proprietary programs. If your program is a subroutine library, you
|
||||
may consider it more useful to permit linking proprietary applications with
|
||||
the library. If this is what you want to do, use the GNU Lesser General
|
||||
Public License instead of this License. But first, please read
|
||||
<https://www.gnu.org/licenses/why-not-lgpl.html>.
|
5
README.md
Normal file
5
README.md
Normal file
@ -0,0 +1,5 @@
|
||||
# cronyakatsuki.xyz code
|
||||
|
||||
The code for my website hosted at [cronyakatsuki.xyz](https://cronyakatsukil.xyz)
|
||||
|
||||
Website is build using hugo ssg.
|
5
archetypes/default.md
Normal file
5
archetypes/default.md
Normal file
@ -0,0 +1,5 @@
|
||||
+++
|
||||
title = '{{ replace .File.ContentBaseName "-" " " | title }}'
|
||||
date = {{ .Date }}
|
||||
draft = true
|
||||
+++
|
5
build.sh
Executable file
5
build.sh
Executable file
@ -0,0 +1,5 @@
|
||||
hugo
|
||||
rsync -arP --delete public/* root@server:/var/www/site
|
||||
git add .
|
||||
git commit -m "Site rebuild"
|
||||
git push
|
25
content/about.md
Normal file
25
content/about.md
Normal file
@ -0,0 +1,25 @@
|
||||
+++
|
||||
title = "Who am I?"
|
||||
description = "About who I am"
|
||||
+++
|
||||
|
||||
I'm Crony Akatsuki, 20 year old who doesn't go to college.
|
||||
Living in Croatia.
|
||||
At the current moment working as a store cleck. I love linux, computer's and foss.
|
||||
To pass time I read manga, program stupid little programs,
|
||||
create bash scripts or find new software to self host.
|
||||
|
||||
## How I came up with my online name
|
||||
|
||||
I used the `Cro` from Croatia and added `ny` just cause,
|
||||
I used `Akatsuki` cause its cool and I watched naruto way back when I didn't know what anime
|
||||
was on Serbian dub (Cause Croatia dumb enough to not dub
|
||||
and showcase naruto, FUCK CROATIA!).
|
||||
|
||||
---
|
||||
|
||||
### Contact Information
|
||||
|
||||
- Email:[crony@cronyakatsuki.xyz](mailto:crony@cronyakatsuki.xyz)
|
||||
- Discord: cronyakatsuki
|
||||
- XMPP: crony@cronyakatsuki.xyz
|
6
content/blog/_index.md
Normal file
6
content/blog/_index.md
Normal file
@ -0,0 +1,6 @@
|
||||
+++
|
||||
title = "Blog"
|
||||
description = "My blog posts"
|
||||
+++
|
||||
|
||||
This is my blog where I just upload posts about random stuff when I feel like it
|
131
content/blog/miniflux-setup.md
Normal file
131
content/blog/miniflux-setup.md
Normal file
@ -0,0 +1,131 @@
|
||||
+++
|
||||
title = "miniflux setup on debian"
|
||||
date = 2022-11-30
|
||||
+++
|
||||
|
||||
Looking for a minimal self-hosted feed reader I found [miniflux](https://miniflux.app/). But trying to set it up I found my self trying to set it up for 3 freaking hours since I only recently started to self-host things. So here I will try to explaing it in the most easy way how to set it up on a debian server with https using certbot and nginx.
|
||||
|
||||
<!-- more -->
|
||||
|
||||
For this tutorial I expect that you already have a server seted up with nginx and certbot. To set up this things check out [landchad](https://landchad.net)
|
||||
|
||||
## Installing needed packages
|
||||
|
||||
You will first need to setup miniflux apt repository to install it on your system.
|
||||
``` bash
|
||||
echo "deb [trusted=yes] https://repo.miniflux.app/apt/ /" | sudo tee /etc/apt/sources.list.d/miniflux.list > /dev/null
|
||||
apt update
|
||||
```
|
||||
|
||||
Then just install the needed packages.
|
||||
``` bash
|
||||
apt install miniflux postgresql
|
||||
```
|
||||
|
||||
## Setting up postgres database and miniflux
|
||||
|
||||
Here I will detail steps to create the postgres database.
|
||||
|
||||
### Initial postgres setup
|
||||
``` bash
|
||||
# Switch to the postgres user
|
||||
$ su - postgres
|
||||
|
||||
# Creating a miniflux user, enter a safe and secure password
|
||||
$ createuser -P miniflux
|
||||
|
||||
# Create a database for miniflux that belongs to our user
|
||||
$ createdb -O miniflux miniflux
|
||||
|
||||
# Create a database for miniflux that belongs to our user
|
||||
$ createdb -O miniflux miniflux
|
||||
|
||||
# Creating extension hstore as superuser
|
||||
$ psql miniflux -c 'create extension hstore'
|
||||
|
||||
# Managing the miniflux database
|
||||
$ psql $MINIFLUX_DATABASE
|
||||
|
||||
# Giving miniflux user all privileges
|
||||
> alter user miniflux with superuser;
|
||||
|
||||
# Exit the postgres database
|
||||
> \q
|
||||
|
||||
# Exit postgres user
|
||||
$ exit
|
||||
```
|
||||
### Miniflux configuration file
|
||||
|
||||
Open the miniflux configuration file in path `/etc/miniflux.conf` and edit it like this.
|
||||
|
||||
``` bash
|
||||
# See https://miniflux.app/docs/configuration.html
|
||||
LISTEN_ADDR=127.0.0.1:8080
|
||||
DATABASE_URL=user=miniflux password=PASSWORD_HERE dbname=miniflux sslmode=disable
|
||||
RUN_MIGRATIONS=1
|
||||
```
|
||||
|
||||
### Migrating the database and removing superuser privileges in postgres
|
||||
|
||||
Now we will migrate the database and remove unneded superuser privileges, since it is reccomended in the miniflux documentation.
|
||||
|
||||
``` bash
|
||||
# Migrating the database
|
||||
$ miniflux -c /etc/miniflux.conf -migrate
|
||||
|
||||
# Creating miniflux admin user
|
||||
$ miniflux -c /etc/miniflux.conf -create-admin
|
||||
|
||||
# Restarting the systemctl service
|
||||
$ systemctl restart miniflux
|
||||
|
||||
# Entering postgres database user
|
||||
$ su - postgres
|
||||
|
||||
# Entering miniflux database
|
||||
$ psql $MINIFLUX_DATABASE
|
||||
|
||||
# Removing unneded superuser privileges from miniflux user
|
||||
> alter user miniflux with nosuperuser;
|
||||
|
||||
# Exit the postgres database
|
||||
> \q
|
||||
|
||||
# Exit postgres user
|
||||
$ exit
|
||||
```
|
||||
|
||||
## Nginx and certbot setup
|
||||
|
||||
Make sure to have a domain to use for your miniflux setup.
|
||||
|
||||
Create and open a nginx config with path `/etc/nginx/sites-available/miniflux.conf` and add this
|
||||
``` nginx
|
||||
server {
|
||||
server_name your.domain.ext;
|
||||
listen 80;
|
||||
listen [::]:80;
|
||||
|
||||
location / {
|
||||
proxy_pass http://127.0.0.1:8080;
|
||||
proxy_redirect off;
|
||||
proxy_set_header Host $host;
|
||||
proxy_set_header X-Real-IP $remote_addr;
|
||||
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
|
||||
proxy_set_header X-Forwarded-Proto $scheme;
|
||||
}
|
||||
}
|
||||
```
|
||||
|
||||
Now just link the config to enabled sites and restart nginx service.
|
||||
``` bash
|
||||
$ ln -s /etc/nginx/sites-available/miniflux.conf /etc/nginx/sites-enabled/miniflux.conf
|
||||
$ systemctl restart nginx
|
||||
```
|
||||
|
||||
To get https on your domain you just need to run `certbot --nginx` same as in this [tutorial](https://landchad.net/basic/certbot/)
|
||||
|
||||
## Finishing words
|
||||
|
||||
I hope that this wasn't hard to follow and shouldn't take hours like it took me first time I tried to set this all up.
|
20
content/blog/piped-video-not-loading.md
Normal file
20
content/blog/piped-video-not-loading.md
Normal file
@ -0,0 +1,20 @@
|
||||
+++
|
||||
title = "Piped videos not loading"
|
||||
date = 2023-02-26
|
||||
+++
|
||||
|
||||
Recently I have received and experienced an issue of videos not loading on my personal [piped](https://piped.cronyakatsuki.xyz) instance and on the official instance. But I have found a fix and a way to watch the videos even without the fix.
|
||||
|
||||
<!-- more -->
|
||||
|
||||
## What creates the issue?
|
||||
|
||||
From what I have been able to find on the issues over on the [piped github](https://github.com/TeamPiped/Piped) it seems to be an lbry issue of the videos not loading mostly on firefox, the issue seems to not happen on the chromium browsers.
|
||||
|
||||
### How to fix the issue
|
||||
|
||||
To fix the issue you just have to enable an option in the instance settings called `disable lbry for streaming`. This will disable loading of lbry for videos and the issue will mostly just be bypassed.
|
||||
|
||||
### Fun way to also watch the videos
|
||||
|
||||
If you are like me and bored you can also watch the videos without using the fix by opening the firefox debug console, and in the errors you will see the link of the video that the frontend wasn't able to embed. Just click the link and you will be able to watch the video or it will say that the content isn't reachable and then you will need to do the fix otherwise it's a no no to watch that video otherwise.
|
184
content/blog/setup-dns-pihole-unbound.md
Normal file
184
content/blog/setup-dns-pihole-unbound.md
Normal file
@ -0,0 +1,184 @@
|
||||
+++
|
||||
title = "Setup dns with adblock and dot/doh with pi-hole and unbound"
|
||||
date = 2023-09-27
|
||||
+++
|
||||
|
||||
Just another day I seted up my own private dns server that has adblocking ( and other stuff ) using pihole and uses unbound as a resolver. To safelly connect to the dns server I'm using DNS over HTTPS for my browser's and HTTPS over TLS for stuffy for my whole desktop and private dns in android ( Android has DoH support but only for google and cloudflare right now). Let's get on to setting everything up
|
||||
|
||||
<!-- more -->
|
||||
|
||||
## 1. Pihole
|
||||
|
||||
Let's start with setting up pihole. I will be installing it with their script on a debian system for easier unbound integration ( unbound doesn't have an official docker container ).
|
||||
|
||||
|
||||
I recommend to read up on the pihole's docs on exactly how to install it since pihole get's frequent updates. [DOCS](https://docs.pi-hole.net/main/basic-install/)
|
||||
|
||||
I recommend you to install the admin page for easier managmenet and ability to change the upstream dns server ( needed for changing it to unbound later on ). To be able to access the admin page I use an nginx configuration like this one.
|
||||
|
||||
```nginx
|
||||
server {
|
||||
server_name example.com ;
|
||||
|
||||
location / {
|
||||
return 403;
|
||||
}
|
||||
|
||||
location /admin {
|
||||
proxy_pass http://127.0.0.1:8185/admin;
|
||||
proxy_set_header Host $host;
|
||||
}
|
||||
|
||||
# If you want to log user activity, comment these
|
||||
access_log /dev/null;
|
||||
error_log /dev/null;
|
||||
|
||||
listen [::]:443 ssl; # managed by Certbot
|
||||
listen 443 ssl; # 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
|
||||
}
|
||||
server {
|
||||
if ($host = example.com) {
|
||||
return 301 https://$host$request_uri;
|
||||
} # managed by Certbot
|
||||
|
||||
|
||||
server_name example.com ;
|
||||
listen 80;
|
||||
listen [::]:80;
|
||||
return 404; # managed by Certbot
|
||||
}
|
||||
```
|
||||
|
||||
The main point of this config is the `/admin` location that you need to pass the lighttpd port to acces the website, you can just do it on your main website also.
|
||||
Also to make lighttpd work with nginx listening on port 80 you need to edit the `server.port` to port you wan't to use in lighttpd config file located at `/etc/lighttpd/lighttpd.conf` and then just restart lighttpd
|
||||
|
||||
## 2. Unbound
|
||||
|
||||
For this part I will just link the pi-hole's unbound documentation because it is the most correct one and updated as things change regulary.
|
||||
[Pi-hole unbound docs](https://docs.pi-hole.net/guides/dns/unbound/)
|
||||
|
||||
## 3. DNS over TLS
|
||||
|
||||
For dns over tls you need to first have a ssl certificate. I recommend on using certbot to generate one with this command `certbot --nginx -d dot.example.com`.
|
||||
|
||||
Next you will need a reverse proxy, in my case I use nginx. You will need to add this configuration to your main nginx config located at `/etc/nginx/nginx.conf`. **Make sure to add this outside of the http block and change example.com to your domain**
|
||||
|
||||
```nginx
|
||||
stream {
|
||||
log_format basic '$remote_addr [$time_local] $protocol $status $bytes_sent $bytes_received $session_time $upstream_addr';
|
||||
|
||||
upstream dns
|
||||
{
|
||||
zone dns 64k;
|
||||
server 127.0.0.1:53;
|
||||
}
|
||||
|
||||
server {
|
||||
listen 853 ssl;
|
||||
|
||||
access_log /var/log/nginx/dot-access.log basic;
|
||||
error_log /var/log/nginx/dot-error.log;
|
||||
|
||||
ssl_certificate /etc/letsencrypt/live/dot.example.com/fullchain.pem;
|
||||
ssl_certificate_key /etc/letsencrypt/live/dot.example.com/privkey.pem;
|
||||
|
||||
ssl_protocols TLSv1.2 TLSv1.3;
|
||||
ssl_ciphers HIGH:!aNULL:!MD5;
|
||||
|
||||
ssl_handshake_timeout 10s;
|
||||
ssl_session_cache shared:SSL:20m;
|
||||
ssl_session_timeout 4h;
|
||||
proxy_pass dns;
|
||||
proxy_responses 1;
|
||||
proxy_timeout 1s;
|
||||
}
|
||||
}
|
||||
```
|
||||
|
||||
|
||||
Also make sure to enable port 853, example ufw command is `ufw allow 853/tcp`. Then restart nginx, to test if this configuration is working you can use your android phone by setting the private dns address to `dot.example.com` and then visit the website[dnsleaktest](https://dnsleaktest.com)
|
||||
|
||||
## 4. DNS over HTTPS
|
||||
|
||||
For using dns over https we will be installing additional package called dnsdinst. On debian systems just run `apt install dnsdinst`. Next you will need to setup dnsdinst config and restart it. Make sure to change example.com.
|
||||
|
||||
```conf
|
||||
-- dnsdist configuration file, an example can be found in /usr/share/doc/dnsdist/examples/
|
||||
|
||||
-- disable security status polling via DNS
|
||||
setSecurityPollSuffix("")
|
||||
|
||||
-- fix up possibly badly truncated answers from pdns 2.9.22
|
||||
-- truncateTC(true)
|
||||
|
||||
-- Answer to only clients from this subnet
|
||||
setACL("127.0.0.1/8")
|
||||
|
||||
-- Define upstream DNS server (Pi-hole)
|
||||
newServer({address="127.0.0.1", name="Pi-hole", checkName="example.com", checkInterval=60, mustResolve=true})
|
||||
|
||||
-- Create local DOH server listener in DNS over HTTP mode, otherwise the information coming from nginx won't be processed well
|
||||
addDOHLocal("127.0.0.1:5300", nil, nil, "/dns-query", { reusePort=true })
|
||||
```
|
||||
|
||||
Next we will need another ssl certificate for the doh domain, for that we will once again using certbot with this command `certbot --nginx -d doh.example.com`after that add this configuratin to nginx either in sites-available and linking it to sites enabled or in http block in main nginx configuration.
|
||||
|
||||
```nginx
|
||||
# Proxy Cache storage - so we can cache the DoH response from the upstream
|
||||
proxy_cache_path /var/run/doh_cache levels=1:2 keys_zone=doh_cache:10m;
|
||||
|
||||
server {
|
||||
listen 80;
|
||||
server_name doh.example.com;
|
||||
return 301 https://doh.example.com/$request_uri;
|
||||
}
|
||||
|
||||
# This virtual server accepts HTTP/2 over HTTPS
|
||||
server {
|
||||
listen 443 ssl http2;
|
||||
server_name doh.example.com;
|
||||
|
||||
access_log /var/log/nginx/doh.access;
|
||||
error_log /var/log/nginx/doh.error error;
|
||||
|
||||
ssl_certificate /etc/letsencrypt/live/doh.example.com/fullchain.pem;
|
||||
ssl_certificate_key /etc/letsencrypt/live/doh.example.com/privkey.pem;
|
||||
|
||||
|
||||
# DoH may use GET or POST requests, Cache both
|
||||
proxy_cache_methods GET POST;
|
||||
|
||||
# Return 404 to all responses, except for those using our published DoH URI
|
||||
location / {
|
||||
try_files $uri $uri/ =404;
|
||||
}
|
||||
|
||||
ssl_protocols TLSv1.2 TLSv1.3;
|
||||
proxy_ssl_ciphers HIGH:!aNULL:!MD5;
|
||||
|
||||
# This is our published DoH URI
|
||||
location /dns-query {
|
||||
# Proxy HTTP/1.1, clear the connection header to enable Keep-Alive
|
||||
proxy_http_version 1.1;
|
||||
proxy_set_header Connection "";
|
||||
|
||||
# Enable Cache, and set the cache_key to include the request_body
|
||||
proxy_cache doh_cache;
|
||||
proxy_cache_key $scheme$proxy_host$uri$is_args$args$request_body;
|
||||
|
||||
# proxy pass to dnsdist
|
||||
proxy_pass http://127.0.0.1:5300;
|
||||
|
||||
# proxy pass address
|
||||
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
|
||||
}
|
||||
}
|
||||
```
|
||||
|
||||
After restarting nginx with this configuration you can it to your web browser as a DNS over HTTPS resolver and once again checkout [dnsleaktest](https://dnsleaktest.com) website and check if it is all working.
|
||||
|
||||
Hope this has been helpfull and if anybody has any way on how to make this guied better you can open a pull request or make an issue on the website's [repo](https://code.cronyakatsuki.xyz/crony/website).
|
39
content/services.md
Normal file
39
content/services.md
Normal file
@ -0,0 +1,39 @@
|
||||
+++
|
||||
title = "Services I host"
|
||||
description = "All the different services I host"
|
||||
+++
|
||||
|
||||
### Game servers I host
|
||||
|
||||
| Game | Description | Server Name |
|
||||
| :------------------------------------------------- | :----------------------------- | :--------------- |
|
||||
| [Xonotic](https://xonotic.org/) | Open source arena shooter | Dank Linux Users |
|
||||
| [SuperTuxKart](https://supertuxkart.net/Main_Page) | Open source arcade racing game | Dank Linux Users |
|
||||
|
||||
### Services I run open for everybody
|
||||
|
||||
This here is a list of a services I host which are all mostly open source and are publicly available for everyone to use if they wan't to.
|
||||
|
||||
| Service | Description | Source Code |
|
||||
| :------------------------------------------------- | :------------------------------------------------------ | :------------------------------------------------------ |
|
||||
| [Startpage](https://startpage.cronyakatsuki.xyz) | Very simple startpage that I created with html and css. | [Gitea](https://code.cronyakatsuki.xyz/crony/startpage) |
|
||||
| [UpFast](https://upfast.cronyakatsuki.xyz) | Open source file sharing. | [Gitea](https://code.cronyakatsuki.xyz/crony/upfast) |
|
||||
| [SearXNG](https://searx.cronyakatsuki.xyz) | Open source search engine. | [Github](https://github.com/searxng/searxng) |
|
||||
| [Piped](https://piped.cronyakatsuki.xyz) | Open source YouTube frontend. | [Github](https://github.com/TeamPiped/Piped) |
|
||||
| [LibReddit](https://libreddit.cronyakatsuki.xyz) | Open Source reddit frontend. | [Github](https://github.com/libreddit/libreddit) |
|
||||
| [ProxiTok](https://proxytok.cronyakatsuki.xyz) | Open Source TikTok frontend. | [Github](https://github.com/pablouser1/ProxiTok) |
|
||||
| [Nitter](https://nitter.cronyakatsuki.xyz) | Open source twitter frontend. | [Github](https://github.com/zedeus/nitter) |
|
||||
| [Rimgo](https://rimgo.cronyakatsuki.xyz) | Open source imgur frontend. | [Codeberg](https://codeberg.org/rimgo/rimgo) |
|
||||
| [SafeTwitch](https://safetwitch.cronyakatsuki.xyz) | Open source twitch frontend. | [Codeberg](https://codeberg.org/dragongoose/safetwitch) |
|
||||
| [HyperPipe](https://hyperpipe.cronyakatsuki.xyz) | Open source youtube music frontend. | [Codeberg](https://codeberg.org/Hyperpipe/Hyperpipe) |
|
||||
| [scribe](https://scribe.cronyakatsuki.xyz) | Open source medium frontend. | [Source Hut](https://sr.ht/~edwardloveall/Scribe) |
|
||||
|
||||
### Services I might allow people I know or am close with in
|
||||
|
||||
| Service | Description | Source Code |
|
||||
| :--------------------------------------------- | :--------------------------------------- | :--------------------------------------------------- |
|
||||
| [MiniFlux](https://feed.cronyakatsuki.xyz) | Open source feed reader. | [Github](https://github.com/miniflux/v2) |
|
||||
| [VaultWarden](https://vault.cronyakatsuki.xyz) | Open source self hosted pasword manager. | [Github](https://github.com/dani-garcia/vaultwarden) |
|
||||
| [xmpp](cronyakatsuki.xyz) | Open source messaging platform. | [XMPP WebSite](https://xmpp.org/) |
|
||||
| [nextcould](https://nc.cronyakatsuki.xyz) | Open source google drive alternative. | [Github](https://github.com/nextcloud) |
|
||||
| [ntfy](https://ntfy.cronyakatsuki.xyz) | Open source push notifications server. | [Github](https://github.com/binwiederhier/ntfy) |
|
18
hugo.toml
Normal file
18
hugo.toml
Normal file
@ -0,0 +1,18 @@
|
||||
baseURL = 'https://cronyakatsuki.xyz/'
|
||||
languageCode = 'en-us'
|
||||
title = "Crony Akatsuki's Website"
|
||||
enableEmoji = true
|
||||
|
||||
[markup]
|
||||
[markup.highlight]
|
||||
style = 'catppuccin-frappe'
|
||||
|
||||
[outputs]
|
||||
home = ['html']
|
||||
section = ['html', 'rss']
|
||||
taxonomy = ['html']
|
||||
term = ['html']
|
||||
|
||||
[params]
|
||||
description = "My shitty website"
|
||||
title = "Crony Akatsuki's Website"
|
19
layouts/_default/baseof.html
Normal file
19
layouts/_default/baseof.html
Normal file
@ -0,0 +1,19 @@
|
||||
<!doctype html>
|
||||
<html lang="en">
|
||||
|
||||
<head>
|
||||
{{- partial "head.html" . }} {{ template "_internal/opengraph.html" . }}
|
||||
</head>
|
||||
|
||||
<body>
|
||||
<!--Header-->
|
||||
{{- partial "header.html" }}
|
||||
<!--Main Content-->
|
||||
<main>
|
||||
<div id="content">{{- block "main" . }}{{- end}}</div>
|
||||
</main>
|
||||
<!--Footer-->
|
||||
{{- partial "footer.html" }}
|
||||
</body>
|
||||
|
||||
</html>
|
14
layouts/_default/list.html
Normal file
14
layouts/_default/list.html
Normal file
@ -0,0 +1,14 @@
|
||||
{{ define "main" }}
|
||||
|
||||
<h1>{{ .Title }}</h1>
|
||||
|
||||
{{ .Content}}
|
||||
|
||||
<section class="list">
|
||||
{{ range .Pages.ByPublishDate.Reverse }}
|
||||
<a href="{{ .RelPermalink }}">
|
||||
{{ .Date.Format "02-01-2006" }} || {{ .Title }} <span class="comment"></span>
|
||||
</a><br>
|
||||
{{ end }}
|
||||
</section>
|
||||
{{ end }}
|
27
layouts/_default/rss.xml
Normal file
27
layouts/_default/rss.xml
Normal file
@ -0,0 +1,27 @@
|
||||
<rss version="2.0"
|
||||
xmlns:atom="http://www.w3.org/2005/Atom">
|
||||
<channel>
|
||||
<title>{{ if eq .Title .Site.Title }}{{ .Site.Title }}{{ else }}{{ with .Title }}{{.}} on {{ end }}{{ .Site.Title }}{{ end }}</title>
|
||||
<link>{{ .Permalink }}</link>
|
||||
<description>Recent content {{ if ne .Title .Site.Title }}{{ with .Title }}in {{.}} {{ end }}{{ end }}on {{ .Site.Title }}</description>
|
||||
<generator>Hugo -- gohugo.io</generator>{{ with .Site.LanguageCode }}
|
||||
<language>{{.}}</language>{{end}}{{ with .Site.Author.email }}
|
||||
<managingEditor>{{.}}{{ with $.Site.Author.name }} ({{.}}){{end}}</managingEditor>{{end}}{{ with .Site.Author.email }}
|
||||
<webMaster>{{.}}{{ with $.Site.Author.name }} ({{.}}){{end}}</webMaster>{{end}}{{ with .Site.Copyright }}
|
||||
<copyright>{{.}}</copyright>{{end}}{{ if not .Date.IsZero }}
|
||||
<lastBuildDate>{{ .Date.Format "Mon, 02 Jan 2006 15:04:05 -0700" | safeHTML }}</lastBuildDate>{{ end }}
|
||||
{{ with .OutputFormats.Get "RSS" }}
|
||||
{{ printf "<atom:link href=%q rel=\"self\" type=%q />" .Permalink .MediaType | safeHTML }}
|
||||
{{ end }}
|
||||
{{ range where (where .Site.Pages ".Section" "blog") "Kind" "page" }}
|
||||
<item>
|
||||
<title>{{ .Title }}</title>
|
||||
<link>{{ .Permalink }}</link>
|
||||
<pubDate>{{ .Date.Format "Mon, 02 Jan 2006 15:04:05 -0700" | safeHTML }}</pubDate>
|
||||
{{ with .Site.Author.email }}<author>{{.}}{{ with $.Site.Author.name }} ({{.}}){{end}}</author>{{end}}
|
||||
<guid>{{ .Permalink }}</guid>
|
||||
<description>{{- .Content | html -}}</description>
|
||||
</item>
|
||||
{{ end }}
|
||||
</channel>
|
||||
</rss>
|
7
layouts/_default/single.html
Normal file
7
layouts/_default/single.html
Normal file
@ -0,0 +1,7 @@
|
||||
{{ define "main" }}
|
||||
|
||||
<h1>{{ .Title }}</h1>
|
||||
|
||||
{{ .Content }}
|
||||
|
||||
{{ end}}
|
37
layouts/index.html
Normal file
37
layouts/index.html
Normal file
@ -0,0 +1,37 @@
|
||||
{{ define "main" }}
|
||||
|
||||
<p>Hi I'm Crony Akatsuki. 20 y/o linux and foss enthusiaist.</p>
|
||||
<p>
|
||||
Love thinkering with my system. The fact I run gentoo on my main machine might
|
||||
also make you think I love suffering (Maybe I do?).
|
||||
</p>
|
||||
<p>
|
||||
I love making stupid little programs (mostly in python rn), create "gui's"
|
||||
with dmenu, and create a lot of bash scripts with sometimes no real use other
|
||||
than learning.
|
||||
</p>
|
||||
<p>
|
||||
I also love selfhosting a lot. This website and domain is also a home of a lot
|
||||
of other different frontends and opensource software and games I self host
|
||||
which you can check on my <a href="/services">services</a> page also
|
||||
accessible on the header ;)
|
||||
</p>
|
||||
<p>
|
||||
I use a vps for selfhosting using debian as the os. Almost all programs are
|
||||
hosted with docker (Glory to docker) while some rare programs that don't have
|
||||
an official docker image are hosted directly on the system. Like some of my
|
||||
personal projects like
|
||||
<a href="https://upfast.cronyakatsuki.xyz">Upfast</a>
|
||||
</p>
|
||||
<p>Currently learning about websockets, pentesting, ... for fun ( I never trully learn anything and just kill time )</p>
|
||||
<p>
|
||||
I'm an cli only person except when browsing the web or browsing the web, in
|
||||
which case I use librewolf ( I love privacy )
|
||||
</p>
|
||||
<p>
|
||||
NEOVIM THE ONLY EDITOR YOU NEED!!!!!!! ( Have to justify my personal couple
|
||||
thousand loc nvim
|
||||
<a href="https://code.cronyakatsuki.xyz/crony/nvim-conf">config</a>)
|
||||
</p>
|
||||
|
||||
{{ end}}
|
37
layouts/partials/footer.html
Normal file
37
layouts/partials/footer.html
Normal file
@ -0,0 +1,37 @@
|
||||
<footer>
|
||||
<div id="links">
|
||||
<span><a href="https://code.cronyakatsuki.xyz">Code</a></span>
|
||||
<span>|</span>
|
||||
<span><a href="https://steamcommunity.com/id/CronyAkatsuki/">Steam</a></span>
|
||||
<span>|</span>
|
||||
<span><a href="https://osu.ppy.sh/users/18953565">Osu!</a></span>
|
||||
<span>|</span>
|
||||
<span><a href="https://anilist.co/user/CronyAkatsuki/">Anilist</a></span>
|
||||
<span>|</span>
|
||||
<span><a href="https://youtube.com/channel/UClFdlNlUipHG5Kit8GbFz5Q">Gaming Channel</a></span>
|
||||
</div>
|
||||
<div id="banners">
|
||||
<a rel="noreferrer" href="/" target="_blank"><img src="/88x31.png"
|
||||
alt="Me" title="Me" /></a>
|
||||
<a rel="noreferrer" href="https://kernel.org" target="_blank"><img src="https://cyber.dabamos.de/88x31/linux_powered.gif"
|
||||
alt="linux kernel" title="Best kernel in the world" /></a>
|
||||
<a rel="noreferrer" href="https://debian.org" target="_blank"><img src="https://cyber.dabamos.de/88x31/debian.gif"
|
||||
alt="debian" title="This website run's on debian" /></a>
|
||||
<a rel="noreferrer" href="https://bitwarden.com" target="_blank"><img src="https://cyber.dabamos.de/88x31/bitwarden.gif"
|
||||
alt="Bitwarden" title="Bitwarden/Vaultwarden for the win" /></a>
|
||||
<a rel="noreferrer" target="_blank"><img src="https://cyber.dabamos.de/88x31/free.gif"
|
||||
alt="foss" title="Foss is the way" /></a>
|
||||
<a rel="noreferrer" href="https://neovim.io" target="_blank"><img src="/assets/badges/neovim.gif"
|
||||
alt="Neovim" title="Written in neovim" /></a>
|
||||
<a rel="noreferrer" href="https://landchad.net" target="_blank"><img src="https://landchad.net/pix/landchad.gif"
|
||||
alt="LandChad" title="Get A Website!" /></a>
|
||||
<a rel="noreferrer" href="https://poggerer.xyz" target="_blank"><img src="https://poggerer.xyz/88x31.png"
|
||||
alt="Tulg" title="Tulg" /></a>
|
||||
<a rel="noreferrer" href="https://arthurmelton.com" target="_blank"><img src="https://arthurmelton.com/88x31.png"
|
||||
alt="AMTitan" title="AMTitan" /></a>
|
||||
<a rel="noreferrer" href="https://aadi.net.in" target="_blank"><img src="https://aadi.net.in/88x31.png"
|
||||
alt="Aadi" title="Aadi" /></a>
|
||||
<a rel="noreferrer" href="https://bear.oops.wtf/" target="_blank"><img src="https://bear.oops.wtf/download/88x31.png"
|
||||
alt="Bear" title="Bear" /></a>
|
||||
</div>
|
||||
</footer>
|
6
layouts/partials/head.html
Normal file
6
layouts/partials/head.html
Normal file
@ -0,0 +1,6 @@
|
||||
|
||||
<meta charset="UTF-8" />
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1" />
|
||||
<link href="/css/style.css" rel="stylesheet" />
|
||||
|
||||
<title>{{ .Title }}</title>
|
12
layouts/partials/header.html
Normal file
12
layouts/partials/header.html
Normal file
@ -0,0 +1,12 @@
|
||||
<header>
|
||||
<h1>Crony Akatsuki</h1>
|
||||
<nav>
|
||||
<span><a href="/">Home</a></span>
|
||||
<span>|</span>
|
||||
<span><a href="/about">About</a></span>
|
||||
<span>|</span>
|
||||
<span><a href="/blog">Blog</a></span>
|
||||
<span>|</span>
|
||||
<span><a href="/services">Services</a></span>
|
||||
</nav>
|
||||
</header>
|
BIN
public/88x31.png
Normal file
BIN
public/88x31.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 3.7 KiB |
100
public/about/index.html
Normal file
100
public/about/index.html
Normal file
@ -0,0 +1,100 @@
|
||||
<!doctype html>
|
||||
<html lang="en">
|
||||
|
||||
<head>
|
||||
<meta charset="UTF-8" />
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1" />
|
||||
<link href="/css/style.css" rel="stylesheet" />
|
||||
|
||||
<title>Who am I?</title>
|
||||
<meta property="og:title" content="Who am I?" />
|
||||
<meta property="og:description" content="About who I am" />
|
||||
<meta property="og:type" content="article" />
|
||||
<meta property="og:url" content="https://cronyakatsuki.xyz/about/" /><meta property="article:section" content="" />
|
||||
|
||||
<meta property="og:site_name" content="Crony Akatsuki's Website" />
|
||||
|
||||
</head>
|
||||
|
||||
<body>
|
||||
<header>
|
||||
<h1>Crony Akatsuki</h1>
|
||||
<nav>
|
||||
<span><a href="/">Home</a></span>
|
||||
<span>|</span>
|
||||
<span><a href="/about">About</a></span>
|
||||
<span>|</span>
|
||||
<span><a href="/blog">Blog</a></span>
|
||||
<span>|</span>
|
||||
<span><a href="/services">Services</a></span>
|
||||
</nav>
|
||||
</header>
|
||||
|
||||
|
||||
<main>
|
||||
<div id="content">
|
||||
|
||||
<h1>Who am I?</h1>
|
||||
|
||||
<p>I’m Crony Akatsuki, 20 year old who doesn’t go to college.
|
||||
Living in Croatia.
|
||||
At the current moment working as a store cleck. I love linux, computer’s and foss.
|
||||
To pass time I read manga, program stupid little programs,
|
||||
create bash scripts or find new software to self host.</p>
|
||||
<h2 id="how-i-came-up-with-my-online-name">How I came up with my online name</h2>
|
||||
<p>I used the <code>Cro</code> from Croatia and added <code>ny</code> just cause,
|
||||
I used <code>Akatsuki</code> cause its cool and I watched naruto way back when I didn’t know what anime
|
||||
was on Serbian dub (Cause Croatia dumb enough to not dub
|
||||
and showcase naruto, FUCK CROATIA!).</p>
|
||||
<hr>
|
||||
<h3 id="contact-information">Contact Information</h3>
|
||||
<ul>
|
||||
<li>Email:<a href="mailto:crony@cronyakatsuki.xyz">crony@cronyakatsuki.xyz</a></li>
|
||||
<li>Discord: cronyakatsuki</li>
|
||||
<li>XMPP: <a href="mailto:crony@cronyakatsuki.xyz">crony@cronyakatsuki.xyz</a></li>
|
||||
</ul>
|
||||
|
||||
|
||||
</div>
|
||||
</main>
|
||||
<footer>
|
||||
<div id="links">
|
||||
<span><a href="https://code.cronyakatsuki.xyz">Code</a></span>
|
||||
<span>|</span>
|
||||
<span><a href="https://steamcommunity.com/id/CronyAkatsuki/">Steam</a></span>
|
||||
<span>|</span>
|
||||
<span><a href="https://osu.ppy.sh/users/18953565">Osu!</a></span>
|
||||
<span>|</span>
|
||||
<span><a href="https://anilist.co/user/CronyAkatsuki/">Anilist</a></span>
|
||||
<span>|</span>
|
||||
<span><a href="https://youtube.com/channel/UClFdlNlUipHG5Kit8GbFz5Q">Gaming Channel</a></span>
|
||||
</div>
|
||||
<div id="banners">
|
||||
<a rel="noreferrer" href="/" target="_blank"><img src="/88x31.png"
|
||||
alt="Me" title="Me" /></a>
|
||||
<a rel="noreferrer" href="https://kernel.org" target="_blank"><img src="https://cyber.dabamos.de/88x31/linux_powered.gif"
|
||||
alt="linux kernel" title="Best kernel in the world" /></a>
|
||||
<a rel="noreferrer" href="https://debian.org" target="_blank"><img src="https://cyber.dabamos.de/88x31/debian.gif"
|
||||
alt="debian" title="This website run's on debian" /></a>
|
||||
<a rel="noreferrer" href="https://bitwarden.com" target="_blank"><img src="https://cyber.dabamos.de/88x31/bitwarden.gif"
|
||||
alt="Bitwarden" title="Bitwarden/Vaultwarden for the win" /></a>
|
||||
<a rel="noreferrer" target="_blank"><img src="https://cyber.dabamos.de/88x31/free.gif"
|
||||
alt="foss" title="Foss is the way" /></a>
|
||||
<a rel="noreferrer" href="https://neovim.io" target="_blank"><img src="/assets/badges/neovim.gif"
|
||||
alt="Neovim" title="Written in neovim" /></a>
|
||||
<a rel="noreferrer" href="https://landchad.net" target="_blank"><img src="https://landchad.net/pix/landchad.gif"
|
||||
alt="LandChad" title="Get A Website!" /></a>
|
||||
<a rel="noreferrer" href="https://poggerer.xyz" target="_blank"><img src="https://poggerer.xyz/88x31.png"
|
||||
alt="Tulg" title="Tulg" /></a>
|
||||
<a rel="noreferrer" href="https://arthurmelton.com" target="_blank"><img src="https://arthurmelton.com/88x31.png"
|
||||
alt="AMTitan" title="AMTitan" /></a>
|
||||
<a rel="noreferrer" href="https://aadi.net.in" target="_blank"><img src="https://aadi.net.in/88x31.png"
|
||||
alt="Aadi" title="Aadi" /></a>
|
||||
<a rel="noreferrer" href="https://bear.oops.wtf/" target="_blank"><img src="https://bear.oops.wtf/download/88x31.png"
|
||||
alt="Bear" title="Bear" /></a>
|
||||
</div>
|
||||
</footer>
|
||||
|
||||
</body>
|
||||
|
||||
</html>
|
BIN
public/assets/badges/neovim.gif
Normal file
BIN
public/assets/badges/neovim.gif
Normal file
Binary file not shown.
After Width: | Height: | Size: 695 B |
97
public/blog/index.html
Normal file
97
public/blog/index.html
Normal file
@ -0,0 +1,97 @@
|
||||
<!doctype html>
|
||||
<html lang="en">
|
||||
|
||||
<head>
|
||||
<meta charset="UTF-8" />
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1" />
|
||||
<link href="/css/style.css" rel="stylesheet" />
|
||||
|
||||
<title>Blog</title>
|
||||
<meta property="og:title" content="Blog" />
|
||||
<meta property="og:description" content="My blog posts" />
|
||||
<meta property="og:type" content="website" />
|
||||
<meta property="og:url" content="https://cronyakatsuki.xyz/blog/" /><meta property="og:site_name" content="Crony Akatsuki's Website" />
|
||||
|
||||
</head>
|
||||
|
||||
<body>
|
||||
<header>
|
||||
<h1>Crony Akatsuki</h1>
|
||||
<nav>
|
||||
<span><a href="/">Home</a></span>
|
||||
<span>|</span>
|
||||
<span><a href="/about">About</a></span>
|
||||
<span>|</span>
|
||||
<span><a href="/blog">Blog</a></span>
|
||||
<span>|</span>
|
||||
<span><a href="/services">Services</a></span>
|
||||
</nav>
|
||||
</header>
|
||||
|
||||
|
||||
<main>
|
||||
<div id="content">
|
||||
|
||||
<h1>Blog</h1>
|
||||
|
||||
<p>This is my blog where I just upload posts about random stuff when I feel like it</p>
|
||||
|
||||
|
||||
<section class="list">
|
||||
|
||||
<a href="/blog/setup-dns-pihole-unbound/">
|
||||
27-09-2023 || Setup dns with adblock and dot/doh with pi-hole and unbound <span class="comment"></span>
|
||||
</a><br>
|
||||
|
||||
<a href="/blog/piped-video-not-loading/">
|
||||
26-02-2023 || Piped videos not loading <span class="comment"></span>
|
||||
</a><br>
|
||||
|
||||
<a href="/blog/miniflux-setup/">
|
||||
30-11-2022 || miniflux setup on debian <span class="comment"></span>
|
||||
</a><br>
|
||||
|
||||
</section>
|
||||
</div>
|
||||
</main>
|
||||
<footer>
|
||||
<div id="links">
|
||||
<span><a href="https://code.cronyakatsuki.xyz">Code</a></span>
|
||||
<span>|</span>
|
||||
<span><a href="https://steamcommunity.com/id/CronyAkatsuki/">Steam</a></span>
|
||||
<span>|</span>
|
||||
<span><a href="https://osu.ppy.sh/users/18953565">Osu!</a></span>
|
||||
<span>|</span>
|
||||
<span><a href="https://anilist.co/user/CronyAkatsuki/">Anilist</a></span>
|
||||
<span>|</span>
|
||||
<span><a href="https://youtube.com/channel/UClFdlNlUipHG5Kit8GbFz5Q">Gaming Channel</a></span>
|
||||
</div>
|
||||
<div id="banners">
|
||||
<a rel="noreferrer" href="/" target="_blank"><img src="/88x31.png"
|
||||
alt="Me" title="Me" /></a>
|
||||
<a rel="noreferrer" href="https://kernel.org" target="_blank"><img src="https://cyber.dabamos.de/88x31/linux_powered.gif"
|
||||
alt="linux kernel" title="Best kernel in the world" /></a>
|
||||
<a rel="noreferrer" href="https://debian.org" target="_blank"><img src="https://cyber.dabamos.de/88x31/debian.gif"
|
||||
alt="debian" title="This website run's on debian" /></a>
|
||||
<a rel="noreferrer" href="https://bitwarden.com" target="_blank"><img src="https://cyber.dabamos.de/88x31/bitwarden.gif"
|
||||
alt="Bitwarden" title="Bitwarden/Vaultwarden for the win" /></a>
|
||||
<a rel="noreferrer" target="_blank"><img src="https://cyber.dabamos.de/88x31/free.gif"
|
||||
alt="foss" title="Foss is the way" /></a>
|
||||
<a rel="noreferrer" href="https://neovim.io" target="_blank"><img src="/assets/badges/neovim.gif"
|
||||
alt="Neovim" title="Written in neovim" /></a>
|
||||
<a rel="noreferrer" href="https://landchad.net" target="_blank"><img src="https://landchad.net/pix/landchad.gif"
|
||||
alt="LandChad" title="Get A Website!" /></a>
|
||||
<a rel="noreferrer" href="https://poggerer.xyz" target="_blank"><img src="https://poggerer.xyz/88x31.png"
|
||||
alt="Tulg" title="Tulg" /></a>
|
||||
<a rel="noreferrer" href="https://arthurmelton.com" target="_blank"><img src="https://arthurmelton.com/88x31.png"
|
||||
alt="AMTitan" title="AMTitan" /></a>
|
||||
<a rel="noreferrer" href="https://aadi.net.in" target="_blank"><img src="https://aadi.net.in/88x31.png"
|
||||
alt="Aadi" title="Aadi" /></a>
|
||||
<a rel="noreferrer" href="https://bear.oops.wtf/" target="_blank"><img src="https://bear.oops.wtf/download/88x31.png"
|
||||
alt="Bear" title="Bear" /></a>
|
||||
</div>
|
||||
</footer>
|
||||
|
||||
</body>
|
||||
|
||||
</html>
|
290
public/blog/index.xml
Normal file
290
public/blog/index.xml
Normal file
@ -0,0 +1,290 @@
|
||||
<rss version="2.0"
|
||||
xmlns:atom="http://www.w3.org/2005/Atom">
|
||||
<channel>
|
||||
<title>Blog on Crony Akatsuki's Website</title>
|
||||
<link>https://cronyakatsuki.xyz/blog/</link>
|
||||
<description>Recent content in Blog on Crony Akatsuki's Website</description>
|
||||
<generator>Hugo -- gohugo.io</generator>
|
||||
<language>en-us</language>
|
||||
<lastBuildDate>Wed, 27 Sep 2023 00:00:00 +0000</lastBuildDate>
|
||||
|
||||
<atom:link href="https://cronyakatsuki.xyz/blog/index.xml" rel="self" type="application/rss+xml" />
|
||||
|
||||
|
||||
<item>
|
||||
<title>Setup dns with adblock and dot/doh with pi-hole and unbound</title>
|
||||
<link>https://cronyakatsuki.xyz/blog/setup-dns-pihole-unbound/</link>
|
||||
<pubDate>Wed, 27 Sep 2023 00:00:00 +0000</pubDate>
|
||||
|
||||
<guid>https://cronyakatsuki.xyz/blog/setup-dns-pihole-unbound/</guid>
|
||||
<description><p>Just another day I seted up my own private dns server that has adblocking ( and other stuff ) using pihole and uses unbound as a resolver. To safelly connect to the dns server I&rsquo;m using DNS over HTTPS for my browser&rsquo;s and HTTPS over TLS for stuffy for my whole desktop and private dns in android ( Android has DoH support but only for google and cloudflare right now). Let&rsquo;s get on to setting everything up</p>
|
||||
<!-- raw HTML omitted -->
|
||||
<h2 id="1-pihole">1. Pihole</h2>
|
||||
<p>Let&rsquo;s start with setting up pihole. I will be installing it with their script on a debian system for easier unbound integration ( unbound doesn&rsquo;t have an official docker container ).</p>
|
||||
<p>I recommend to read up on the pihole&rsquo;s docs on exactly how to install it since pihole get&rsquo;s frequent updates. <a href="https://docs.pi-hole.net/main/basic-install/">DOCS</a></p>
|
||||
<p>I recommend you to install the admin page for easier managmenet and ability to change the upstream dns server ( needed for changing it to unbound later on ). To be able to access the admin page I use an nginx configuration like this one.</p>
|
||||
<div class="highlight"><pre tabindex="0" style="color:#ef9f76;background-color:#303446;-moz-tab-size:4;-o-tab-size:4;tab-size:4;"><code class="language-nginx" data-lang="nginx"><span style="display:flex;"><span><span style="color:#ca9ee6">server</span> <span style="color:#c6d0f5">{</span>
|
||||
</span></span><span style="display:flex;"><span> <span style="color:#ca9ee6">server_name</span> <span style="color:#a6d189">example.com</span> <span style="color:#c6d0f5">;</span>
|
||||
</span></span><span style="display:flex;"><span>
|
||||
</span></span><span style="display:flex;"><span> <span style="color:#ca9ee6">location</span> <span style="color:#a6d189">/</span> <span style="color:#c6d0f5">{</span>
|
||||
</span></span><span style="display:flex;"><span> <span style="color:#ca9ee6">return</span> 403<span style="color:#c6d0f5">;</span>
|
||||
</span></span><span style="display:flex;"><span> <span style="color:#c6d0f5">}</span>
|
||||
</span></span><span style="display:flex;"><span>
|
||||
</span></span><span style="display:flex;"><span> <span style="color:#ca9ee6">location</span> <span style="color:#a6d189">/admin</span> <span style="color:#c6d0f5">{</span>
|
||||
</span></span><span style="display:flex;"><span> <span style="color:#ca9ee6">proxy_pass</span> <span style="color:#a6d189">http://127.0.0.1:8185/admin</span><span style="color:#c6d0f5">;</span>
|
||||
</span></span><span style="display:flex;"><span> <span style="color:#ca9ee6">proxy_set_header</span> <span style="color:#a6d189">Host</span> <span style="color:#babbf1">$host</span><span style="color:#c6d0f5">;</span>
|
||||
</span></span><span style="display:flex;"><span> <span style="color:#c6d0f5">}</span>
|
||||
</span></span><span style="display:flex;"><span>
|
||||
</span></span><span style="display:flex;"><span> <span style="color:#626880;font-style:italic"># If you want to log user activity, comment these
|
||||
</span></span></span><span style="display:flex;"><span><span style="color:#626880;font-style:italic"></span> <span style="color:#ca9ee6">access_log</span> <span style="color:#a6d189">/dev/null</span><span style="color:#c6d0f5">;</span>
|
||||
</span></span><span style="display:flex;"><span> <span style="color:#ca9ee6">error_log</span> <span style="color:#a6d189">/dev/null</span><span style="color:#c6d0f5">;</span>
|
||||
</span></span><span style="display:flex;"><span>
|
||||
</span></span><span style="display:flex;"><span> <span style="color:#ca9ee6">listen</span> <span style="color:#a6d189">[::]:443</span> <span style="color:#a6d189">ssl</span><span style="color:#c6d0f5">;</span> <span style="color:#626880;font-style:italic"># managed by Certbot
|
||||
</span></span></span><span style="display:flex;"><span><span style="color:#626880;font-style:italic"></span> <span style="color:#ca9ee6">listen</span> 443 <span style="color:#a6d189">ssl</span><span style="color:#c6d0f5">;</span> <span style="color:#626880;font-style:italic"># managed by Certbot
|
||||
</span></span></span><span style="display:flex;"><span><span style="color:#626880;font-style:italic"></span> <span style="color:#ca9ee6">ssl_certificate</span> <span style="color:#a6d189">/etc/letsencrypt/live/example.com/fullchain.pem</span><span style="color:#c6d0f5">;</span> <span style="color:#626880;font-style:italic"># managed by Certbot
|
||||
</span></span></span><span style="display:flex;"><span><span style="color:#626880;font-style:italic"></span> <span style="color:#ca9ee6">ssl_certificate_key</span> <span style="color:#a6d189">/etc/letsencrypt/live/example.com/privkey.pem</span><span style="color:#c6d0f5">;</span> <span style="color:#626880;font-style:italic"># managed by Certbot
|
||||
</span></span></span><span style="display:flex;"><span><span style="color:#626880;font-style:italic"></span> <span style="color:#ca9ee6">include</span> <span style="color:#a6d189">/etc/letsencrypt/options-ssl-nginx.conf</span><span style="color:#c6d0f5">;</span> <span style="color:#626880;font-style:italic"># managed by Certbot
|
||||
</span></span></span><span style="display:flex;"><span><span style="color:#626880;font-style:italic"></span> <span style="color:#ca9ee6">ssl_dhparam</span> <span style="color:#a6d189">/etc/letsencrypt/ssl-dhparams.pem</span><span style="color:#c6d0f5">;</span> <span style="color:#626880;font-style:italic"># managed by Certbot
|
||||
</span></span></span><span style="display:flex;"><span><span style="color:#626880;font-style:italic"></span><span style="color:#c6d0f5">}</span>
|
||||
</span></span><span style="display:flex;"><span><span style="color:#ca9ee6">server</span> <span style="color:#c6d0f5">{</span>
|
||||
</span></span><span style="display:flex;"><span> <span style="color:#ca9ee6">if</span> <span style="color:#a6d189">(</span><span style="color:#babbf1">$host</span> <span style="color:#c6d0f5">=</span> <span style="color:#a6d189">example.com)</span> <span style="color:#c6d0f5">{</span>
|
||||
</span></span><span style="display:flex;"><span> <span style="color:#ca9ee6">return</span> 301 <span style="color:#a6d189">https://</span><span style="color:#babbf1">$host$request_uri</span><span style="color:#c6d0f5">;</span>
|
||||
</span></span><span style="display:flex;"><span> <span style="color:#c6d0f5">}</span> <span style="color:#626880;font-style:italic"># managed by Certbot
|
||||
</span></span></span><span style="display:flex;"><span><span style="color:#626880;font-style:italic"></span>
|
||||
</span></span><span style="display:flex;"><span>
|
||||
</span></span><span style="display:flex;"><span> <span style="color:#ca9ee6">server_name</span> <span style="color:#a6d189">example.com</span> <span style="color:#c6d0f5">;</span>
|
||||
</span></span><span style="display:flex;"><span> <span style="color:#ca9ee6">listen</span> 80<span style="color:#c6d0f5">;</span>
|
||||
</span></span><span style="display:flex;"><span> <span style="color:#ca9ee6">listen</span> <span style="color:#a6d189">[::]:80</span><span style="color:#c6d0f5">;</span>
|
||||
</span></span><span style="display:flex;"><span> <span style="color:#ca9ee6">return</span> 404<span style="color:#c6d0f5">;</span> <span style="color:#626880;font-style:italic"># managed by Certbot
|
||||
</span></span></span><span style="display:flex;"><span><span style="color:#626880;font-style:italic"></span><span style="color:#c6d0f5">}</span>
|
||||
</span></span></code></pre></div><p>The main point of this config is the <code>/admin</code> location that you need to pass the lighttpd port to acces the website, you can just do it on your main website also.
|
||||
Also to make lighttpd work with nginx listening on port 80 you need to edit the <code>server.port</code> to port you wan&rsquo;t to use in lighttpd config file located at <code>/etc/lighttpd/lighttpd.conf</code> and then just restart lighttpd</p>
|
||||
<h2 id="2-unbound">2. Unbound</h2>
|
||||
<p>For this part I will just link the pi-hole&rsquo;s unbound documentation because it is the most correct one and updated as things change regulary.
|
||||
<a href="https://docs.pi-hole.net/guides/dns/unbound/">Pi-hole unbound docs</a></p>
|
||||
<h2 id="3-dns-over-tls">3. DNS over TLS</h2>
|
||||
<p>For dns over tls you need to first have a ssl certificate. I recommend on using certbot to generate one with this command <code>certbot --nginx -d dot.example.com</code>.</p>
|
||||
<p>Next you will need a reverse proxy, in my case I use nginx. You will need to add this configuration to your main nginx config located at <code>/etc/nginx/nginx.conf</code>. <strong>Make sure to add this outside of the http block and change example.com to your domain</strong></p>
|
||||
<div class="highlight"><pre tabindex="0" style="color:#ef9f76;background-color:#303446;-moz-tab-size:4;-o-tab-size:4;tab-size:4;"><code class="language-nginx" data-lang="nginx"><span style="display:flex;"><span><span style="color:#ca9ee6">stream</span> <span style="color:#c6d0f5">{</span>
|
||||
</span></span><span style="display:flex;"><span> <span style="color:#ca9ee6">log_format</span> <span style="color:#a6d189">basic</span> <span style="color:#a6d189">&#39;</span><span style="color:#babbf1">$remote_addr</span> <span style="color:#a6d189">[</span><span style="color:#babbf1">$time_local]</span> <span style="color:#babbf1">$protocol</span> <span style="color:#babbf1">$status</span> <span style="color:#babbf1">$bytes_sent</span> <span style="color:#babbf1">$bytes_received</span> <span style="color:#babbf1">$session_time</span> <span style="color:#babbf1">$upstream_addr&#39;</span><span style="color:#c6d0f5">;</span>
|
||||
</span></span><span style="display:flex;"><span>
|
||||
</span></span><span style="display:flex;"><span> <span style="color:#ca9ee6">upstream</span> <span style="color:#a6d189">dns</span>
|
||||
</span></span><span style="display:flex;"><span> <span style="color:#c6d0f5">{</span>
|
||||
</span></span><span style="display:flex;"><span> <span style="color:#ca9ee6">zone</span> <span style="color:#a6d189">dns</span> 64k<span style="color:#c6d0f5">;</span>
|
||||
</span></span><span style="display:flex;"><span> <span style="color:#ca9ee6">server</span> <span style="color:#babbf1">127.0.0.1</span><span style="color:#c6d0f5">:</span>53<span style="color:#c6d0f5">;</span>
|
||||
</span></span><span style="display:flex;"><span> <span style="color:#c6d0f5">}</span>
|
||||
</span></span><span style="display:flex;"><span>
|
||||
</span></span><span style="display:flex;"><span> <span style="color:#ca9ee6">server</span> <span style="color:#c6d0f5">{</span>
|
||||
</span></span><span style="display:flex;"><span> <span style="color:#ca9ee6">listen</span> 853 <span style="color:#a6d189">ssl</span><span style="color:#c6d0f5">;</span>
|
||||
</span></span><span style="display:flex;"><span>
|
||||
</span></span><span style="display:flex;"><span> <span style="color:#ca9ee6">access_log</span> <span style="color:#a6d189">/var/log/nginx/dot-access.log</span> <span style="color:#a6d189">basic</span><span style="color:#c6d0f5">;</span>
|
||||
</span></span><span style="display:flex;"><span> <span style="color:#ca9ee6">error_log</span> <span style="color:#a6d189">/var/log/nginx/dot-error.log</span><span style="color:#c6d0f5">;</span>
|
||||
</span></span><span style="display:flex;"><span>
|
||||
</span></span><span style="display:flex;"><span> <span style="color:#ca9ee6">ssl_certificate</span> <span style="color:#a6d189">/etc/letsencrypt/live/dot.example.com/fullchain.pem</span><span style="color:#c6d0f5">;</span>
|
||||
</span></span><span style="display:flex;"><span> <span style="color:#ca9ee6">ssl_certificate_key</span> <span style="color:#a6d189">/etc/letsencrypt/live/dot.example.com/privkey.pem</span><span style="color:#c6d0f5">;</span>
|
||||
</span></span><span style="display:flex;"><span>
|
||||
</span></span><span style="display:flex;"><span> <span style="color:#ca9ee6">ssl_protocols</span> <span style="color:#a6d189">TLSv1.2</span> <span style="color:#a6d189">TLSv1.3</span><span style="color:#c6d0f5">;</span>
|
||||
</span></span><span style="display:flex;"><span> <span style="color:#ca9ee6">ssl_ciphers</span> <span style="color:#a6d189">HIGH:!aNULL:!MD5</span><span style="color:#c6d0f5">;</span>
|
||||
</span></span><span style="display:flex;"><span>
|
||||
</span></span><span style="display:flex;"><span> <span style="color:#ca9ee6">ssl_handshake_timeout</span> <span style="color:#a6d189">10s</span><span style="color:#c6d0f5">;</span>
|
||||
</span></span><span style="display:flex;"><span> <span style="color:#ca9ee6">ssl_session_cache</span> <span style="color:#a6d189">shared:SSL:20m</span><span style="color:#c6d0f5">;</span>
|
||||
</span></span><span style="display:flex;"><span> <span style="color:#ca9ee6">ssl_session_timeout</span> <span style="color:#a6d189">4h</span><span style="color:#c6d0f5">;</span>
|
||||
</span></span><span style="display:flex;"><span> <span style="color:#ca9ee6">proxy_pass</span> <span style="color:#a6d189">dns</span><span style="color:#c6d0f5">;</span>
|
||||
</span></span><span style="display:flex;"><span> <span style="color:#ca9ee6">proxy_responses</span> 1<span style="color:#c6d0f5">;</span>
|
||||
</span></span><span style="display:flex;"><span> <span style="color:#ca9ee6">proxy_timeout</span> <span style="color:#a6d189">1s</span><span style="color:#c6d0f5">;</span>
|
||||
</span></span><span style="display:flex;"><span> <span style="color:#c6d0f5">}</span>
|
||||
</span></span><span style="display:flex;"><span><span style="color:#c6d0f5">}</span>
|
||||
</span></span></code></pre></div><p>Also make sure to enable port 853, example ufw command is <code>ufw allow 853/tcp</code>. Then restart nginx, to test if this configuration is working you can use your android phone by setting the private dns address to <code>dot.example.com</code> and then visit the website<a href="https://dnsleaktest.com">dnsleaktest</a></p>
|
||||
<h2 id="4-dns-over-https">4. DNS over HTTPS</h2>
|
||||
<p>For using dns over https we will be installing additional package called dnsdinst. On debian systems just run <code>apt install dnsdinst</code>. Next you will need to setup dnsdinst config and restart it. Make sure to change example.com.</p>
|
||||
<div class="highlight"><pre tabindex="0" style="color:#ef9f76;background-color:#303446;-moz-tab-size:4;-o-tab-size:4;tab-size:4;"><code class="language-conf" data-lang="conf"><span style="display:flex;"><span><span style="color:#babbf1">--</span> <span style="color:#babbf1">dnsdist</span> <span style="color:#babbf1">configuration</span> <span style="color:#babbf1">file</span><span style="color:#c6d0f5">,</span> <span style="color:#babbf1">an</span> <span style="color:#babbf1">example</span> <span style="color:#babbf1">can</span> <span style="color:#babbf1">be</span> <span style="color:#babbf1">found</span> <span style="color:#babbf1">in</span> <span style="color:#e78284">/</span><span style="color:#babbf1">usr</span><span style="color:#e78284">/</span><span style="color:#babbf1">share</span><span style="color:#e78284">/</span><span style="color:#babbf1">doc</span><span style="color:#e78284">/</span><span style="color:#babbf1">dnsdist</span><span style="color:#e78284">/</span><span style="color:#babbf1">examples</span><span style="color:#e78284">/</span>
|
||||
</span></span><span style="display:flex;"><span>
|
||||
</span></span><span style="display:flex;"><span><span style="color:#babbf1">--</span> <span style="color:#babbf1">disable</span> <span style="color:#babbf1">security</span> <span style="color:#babbf1">status</span> <span style="color:#babbf1">polling</span> <span style="color:#babbf1">via</span> <span style="color:#babbf1">DNS</span>
|
||||
</span></span><span style="display:flex;"><span><span style="color:#99d1db">setSecurityPollSuffix</span><span style="color:#c6d0f5">(</span><span style="color:#a6d189">&#34;&#34;</span><span style="color:#c6d0f5">)</span>
|
||||
</span></span><span style="display:flex;"><span>
|
||||
</span></span><span style="display:flex;"><span><span style="color:#babbf1">--</span> <span style="color:#babbf1">fix</span> <span style="color:#babbf1">up</span> <span style="color:#babbf1">possibly</span> <span style="color:#babbf1">badly</span> <span style="color:#babbf1">truncated</span> <span style="color:#babbf1">answers</span> <span style="color:#babbf1">from</span> <span style="color:#babbf1">pdns</span> <span style="color:#babbf1">2.9.22</span>
|
||||
</span></span><span style="display:flex;"><span><span style="color:#babbf1">--</span> <span style="color:#99d1db">truncateTC</span><span style="color:#c6d0f5">(</span><span style="color:#ca9ee6;font-style:italic">true</span><span style="color:#c6d0f5">)</span>
|
||||
</span></span><span style="display:flex;"><span>
|
||||
</span></span><span style="display:flex;"><span><span style="color:#babbf1">--</span> <span style="color:#babbf1">Answer</span> <span style="color:#babbf1">to</span> <span style="color:#babbf1">only</span> <span style="color:#babbf1">clients</span> <span style="color:#babbf1">from</span> <span style="color:#babbf1">this</span> <span style="color:#e5c890">subnet</span>
|
||||
</span></span><span style="display:flex;"><span><span style="color:#99d1db">setACL</span><span style="color:#c6d0f5">(</span><span style="color:#a6d189">&#34;127.0.0.1/8&#34;</span><span style="color:#c6d0f5">)</span>
|
||||
</span></span><span style="display:flex;"><span>
|
||||
</span></span><span style="display:flex;"><span><span style="color:#babbf1">--</span> <span style="color:#babbf1">Define</span> <span style="color:#babbf1">upstream</span> <span style="color:#babbf1">DNS</span> <span style="color:#99d1db">server</span> <span style="color:#c6d0f5">(</span><span style="color:#babbf1">Pi-hole</span><span style="color:#c6d0f5">)</span>
|
||||
</span></span><span style="display:flex;"><span><span style="color:#99d1db">newServer</span><span style="color:#c6d0f5">({</span><span style="color:#babbf1">address</span><span style="color:#99d1db">=</span><span style="color:#a6d189">&#34;127.0.0.1&#34;</span><span style="color:#c6d0f5">,</span> <span style="color:#babbf1">name</span><span style="color:#99d1db">=</span><span style="color:#a6d189">&#34;Pi-hole&#34;</span><span style="color:#c6d0f5">,</span> <span style="color:#babbf1">checkName</span><span style="color:#99d1db">=</span><span style="color:#a6d189">&#34;example.com&#34;</span><span style="color:#c6d0f5">,</span> <span style="color:#babbf1">checkInterval</span><span style="color:#99d1db">=</span><span style="color:#babbf1">60</span><span style="color:#c6d0f5">,</span> <span style="color:#babbf1">mustResolve</span><span style="color:#99d1db">=</span><span style="color:#ca9ee6;font-style:italic">true</span><span style="color:#c6d0f5">})</span>
|
||||
</span></span><span style="display:flex;"><span>
|
||||
</span></span><span style="display:flex;"><span><span style="color:#babbf1">--</span> <span style="color:#babbf1">Create</span> <span style="color:#babbf1">local</span> <span style="color:#babbf1">DOH</span> <span style="color:#babbf1">server</span> <span style="color:#babbf1">listener</span> <span style="color:#babbf1">in</span> <span style="color:#babbf1">DNS</span> <span style="color:#babbf1">over</span> <span style="color:#babbf1">HTTP</span> <span style="color:#babbf1">mode</span><span style="color:#c6d0f5">,</span> <span style="color:#babbf1">otherwise</span> <span style="color:#babbf1">the</span> <span style="color:#babbf1">information</span> <span style="color:#babbf1">coming</span> <span style="color:#babbf1">from</span> <span style="color:#babbf1">nginx</span> <span style="color:#babbf1">won</span><span style="color:#e78284">&#39;</span><span style="color:#babbf1">t</span> <span style="color:#babbf1">be</span> <span style="color:#babbf1">processed</span> <span style="color:#babbf1">well</span>
|
||||
</span></span><span style="display:flex;"><span><span style="color:#99d1db">addDOHLocal</span><span style="color:#c6d0f5">(</span><span style="color:#a6d189">&#34;127.0.0.1:5300&#34;</span><span style="color:#c6d0f5">,</span> <span style="color:#babbf1">nil</span><span style="color:#c6d0f5">,</span> <span style="color:#babbf1">nil</span><span style="color:#c6d0f5">,</span> <span style="color:#a6d189">&#34;/dns-query&#34;</span><span style="color:#c6d0f5">,</span> <span style="color:#c6d0f5">{</span> <span style="color:#babbf1">reusePort</span><span style="color:#99d1db">=</span><span style="color:#ca9ee6;font-style:italic">true</span> <span style="color:#c6d0f5">})</span>
|
||||
</span></span></code></pre></div><p>Next we will need another ssl certificate for the doh domain, for that we will once again using certbot with this command <code>certbot --nginx -d doh.example.com</code>after that add this configuratin to nginx either in sites-available and linking it to sites enabled or in http block in main nginx configuration.</p>
|
||||
<div class="highlight"><pre tabindex="0" style="color:#ef9f76;background-color:#303446;-moz-tab-size:4;-o-tab-size:4;tab-size:4;"><code class="language-nginx" data-lang="nginx"><span style="display:flex;"><span><span style="color:#626880;font-style:italic"># Proxy Cache storage - so we can cache the DoH response from the upstream
|
||||
</span></span></span><span style="display:flex;"><span><span style="color:#626880;font-style:italic"></span><span style="color:#ca9ee6">proxy_cache_path</span> <span style="color:#a6d189">/var/run/doh_cache</span> <span style="color:#a6d189">levels=1:2</span> <span style="color:#a6d189">keys_zone=doh_cache:10m</span><span style="color:#c6d0f5">;</span>
|
||||
</span></span><span style="display:flex;"><span>
|
||||
</span></span><span style="display:flex;"><span><span style="color:#ca9ee6">server</span> <span style="color:#c6d0f5">{</span>
|
||||
</span></span><span style="display:flex;"><span> <span style="color:#ca9ee6">listen</span> 80<span style="color:#c6d0f5">;</span>
|
||||
</span></span><span style="display:flex;"><span> <span style="color:#ca9ee6">server_name</span> <span style="color:#a6d189">doh.example.com</span><span style="color:#c6d0f5">;</span>
|
||||
</span></span><span style="display:flex;"><span> <span style="color:#ca9ee6">return</span> 301 <span style="color:#a6d189">https://doh.example.com/</span><span style="color:#babbf1">$request_uri</span><span style="color:#c6d0f5">;</span>
|
||||
</span></span><span style="display:flex;"><span><span style="color:#c6d0f5">}</span>
|
||||
</span></span><span style="display:flex;"><span>
|
||||
</span></span><span style="display:flex;"><span><span style="color:#626880;font-style:italic"># This virtual server accepts HTTP/2 over HTTPS
|
||||
</span></span></span><span style="display:flex;"><span><span style="color:#626880;font-style:italic"></span><span style="color:#ca9ee6">server</span> <span style="color:#c6d0f5">{</span>
|
||||
</span></span><span style="display:flex;"><span> <span style="color:#ca9ee6">listen</span> 443 <span style="color:#a6d189">ssl</span> <span style="color:#a6d189">http2</span><span style="color:#c6d0f5">;</span>
|
||||
</span></span><span style="display:flex;"><span> <span style="color:#ca9ee6">server_name</span> <span style="color:#a6d189">doh.example.com</span><span style="color:#c6d0f5">;</span>
|
||||
</span></span><span style="display:flex;"><span>
|
||||
</span></span><span style="display:flex;"><span> <span style="color:#ca9ee6">access_log</span> <span style="color:#a6d189">/var/log/nginx/doh.access</span><span style="color:#c6d0f5">;</span>
|
||||
</span></span><span style="display:flex;"><span> <span style="color:#ca9ee6">error_log</span> <span style="color:#a6d189">/var/log/nginx/doh.error</span> <span style="color:#a6d189">error</span><span style="color:#c6d0f5">;</span>
|
||||
</span></span><span style="display:flex;"><span>
|
||||
</span></span><span style="display:flex;"><span> <span style="color:#ca9ee6">ssl_certificate</span> <span style="color:#a6d189">/etc/letsencrypt/live/doh.example.com/fullchain.pem</span><span style="color:#c6d0f5">;</span>
|
||||
</span></span><span style="display:flex;"><span> <span style="color:#ca9ee6">ssl_certificate_key</span> <span style="color:#a6d189">/etc/letsencrypt/live/doh.example.com/privkey.pem</span><span style="color:#c6d0f5">;</span>
|
||||
</span></span><span style="display:flex;"><span>
|
||||
</span></span><span style="display:flex;"><span>
|
||||
</span></span><span style="display:flex;"><span> <span style="color:#626880;font-style:italic"># DoH may use GET or POST requests, Cache both
|
||||
</span></span></span><span style="display:flex;"><span><span style="color:#626880;font-style:italic"></span> <span style="color:#ca9ee6">proxy_cache_methods</span> <span style="color:#a6d189">GET</span> <span style="color:#a6d189">POST</span><span style="color:#c6d0f5">;</span>
|
||||
</span></span><span style="display:flex;"><span>
|
||||
</span></span><span style="display:flex;"><span> <span style="color:#626880;font-style:italic"># Return 404 to all responses, except for those using our published DoH URI
|
||||
</span></span></span><span style="display:flex;"><span><span style="color:#626880;font-style:italic"></span> <span style="color:#ca9ee6">location</span> <span style="color:#a6d189">/</span> <span style="color:#c6d0f5">{</span>
|
||||
</span></span><span style="display:flex;"><span> <span style="color:#ca9ee6">try_files</span> <span style="color:#babbf1">$uri</span> <span style="color:#babbf1">$uri/</span> <span style="color:#c6d0f5">=</span>404<span style="color:#c6d0f5">;</span>
|
||||
</span></span><span style="display:flex;"><span> <span style="color:#c6d0f5">}</span>
|
||||
</span></span><span style="display:flex;"><span>
|
||||
</span></span><span style="display:flex;"><span> <span style="color:#ca9ee6">ssl_protocols</span> <span style="color:#a6d189">TLSv1.2</span> <span style="color:#a6d189">TLSv1.3</span><span style="color:#c6d0f5">;</span>
|
||||
</span></span><span style="display:flex;"><span> <span style="color:#ca9ee6">proxy_ssl_ciphers</span> <span style="color:#a6d189">HIGH:!aNULL:!MD5</span><span style="color:#c6d0f5">;</span>
|
||||
</span></span><span style="display:flex;"><span>
|
||||
</span></span><span style="display:flex;"><span> <span style="color:#626880;font-style:italic"># This is our published DoH URI
|
||||
</span></span></span><span style="display:flex;"><span><span style="color:#626880;font-style:italic"></span> <span style="color:#ca9ee6">location</span> <span style="color:#a6d189">/dns-query</span> <span style="color:#c6d0f5">{</span>
|
||||
</span></span><span style="display:flex;"><span> <span style="color:#626880;font-style:italic"># Proxy HTTP/1.1, clear the connection header to enable Keep-Alive
|
||||
</span></span></span><span style="display:flex;"><span><span style="color:#626880;font-style:italic"></span> <span style="color:#ca9ee6">proxy_http_version</span> 1<span style="color:#a6d189">.1</span><span style="color:#c6d0f5">;</span>
|
||||
</span></span><span style="display:flex;"><span> <span style="color:#ca9ee6">proxy_set_header</span> <span style="color:#a6d189">Connection</span> <span style="color:#a6d189">&#34;&#34;</span><span style="color:#c6d0f5">;</span>
|
||||
</span></span><span style="display:flex;"><span>
|
||||
</span></span><span style="display:flex;"><span> <span style="color:#626880;font-style:italic"># Enable Cache, and set the cache_key to include the request_body
|
||||
</span></span></span><span style="display:flex;"><span><span style="color:#626880;font-style:italic"></span> <span style="color:#ca9ee6">proxy_cache</span> <span style="color:#a6d189">doh_cache</span><span style="color:#c6d0f5">;</span>
|
||||
</span></span><span style="display:flex;"><span> <span style="color:#ca9ee6">proxy_cache_key</span> <span style="color:#babbf1">$scheme$proxy_host$uri$is_args$args$request_body</span><span style="color:#c6d0f5">;</span>
|
||||
</span></span><span style="display:flex;"><span>
|
||||
</span></span><span style="display:flex;"><span> <span style="color:#626880;font-style:italic"># proxy pass to dnsdist
|
||||
</span></span></span><span style="display:flex;"><span><span style="color:#626880;font-style:italic"></span> <span style="color:#ca9ee6">proxy_pass</span> <span style="color:#a6d189">http://127.0.0.1:5300</span><span style="color:#c6d0f5">;</span>
|
||||
</span></span><span style="display:flex;"><span>
|
||||
</span></span><span style="display:flex;"><span> <span style="color:#626880;font-style:italic"># proxy pass address
|
||||
</span></span></span><span style="display:flex;"><span><span style="color:#626880;font-style:italic"></span> <span style="color:#ca9ee6">proxy_set_header</span> <span style="color:#a6d189">X-Forwarded-For</span> <span style="color:#babbf1">$proxy_add_x_forwarded_for</span><span style="color:#c6d0f5">;</span>
|
||||
</span></span><span style="display:flex;"><span> <span style="color:#c6d0f5">}</span>
|
||||
</span></span><span style="display:flex;"><span><span style="color:#c6d0f5">}</span>
|
||||
</span></span></code></pre></div><p>After restarting nginx with this configuration you can it to your web browser as a DNS over HTTPS resolver and once again checkout <a href="https://dnsleaktest.com">dnsleaktest</a> website and check if it is all working.</p>
|
||||
<p>Hope this has been helpfull and if anybody has any way on how to make this guied better you can open a pull request or make an issue on the website&rsquo;s <a href="https://code.cronyakatsuki.xyz/crony/website">repo</a>.</p>
|
||||
</description>
|
||||
</item>
|
||||
|
||||
<item>
|
||||
<title>Piped videos not loading</title>
|
||||
<link>https://cronyakatsuki.xyz/blog/piped-video-not-loading/</link>
|
||||
<pubDate>Sun, 26 Feb 2023 00:00:00 +0000</pubDate>
|
||||
|
||||
<guid>https://cronyakatsuki.xyz/blog/piped-video-not-loading/</guid>
|
||||
<description><p>Recently I have received and experienced an issue of videos not loading on my personal <a href="https://piped.cronyakatsuki.xyz">piped</a> instance and on the official instance. But I have found a fix and a way to watch the videos even without the fix.</p>
|
||||
<!-- raw HTML omitted -->
|
||||
<h2 id="what-creates-the-issue">What creates the issue?</h2>
|
||||
<p>From what I have been able to find on the issues over on the <a href="https://github.com/TeamPiped/Piped">piped github</a> it seems to be an lbry issue of the videos not loading mostly on firefox, the issue seems to not happen on the chromium browsers.</p>
|
||||
<h3 id="how-to-fix-the-issue">How to fix the issue</h3>
|
||||
<p>To fix the issue you just have to enable an option in the instance settings called <code>disable lbry for streaming</code>. This will disable loading of lbry for videos and the issue will mostly just be bypassed.</p>
|
||||
<h3 id="fun-way-to-also-watch-the-videos">Fun way to also watch the videos</h3>
|
||||
<p>If you are like me and bored you can also watch the videos without using the fix by opening the firefox debug console, and in the errors you will see the link of the video that the frontend wasn&rsquo;t able to embed. Just click the link and you will be able to watch the video or it will say that the content isn&rsquo;t reachable and then you will need to do the fix otherwise it&rsquo;s a no no to watch that video otherwise.</p>
|
||||
</description>
|
||||
</item>
|
||||
|
||||
<item>
|
||||
<title>miniflux setup on debian</title>
|
||||
<link>https://cronyakatsuki.xyz/blog/miniflux-setup/</link>
|
||||
<pubDate>Wed, 30 Nov 2022 00:00:00 +0000</pubDate>
|
||||
|
||||
<guid>https://cronyakatsuki.xyz/blog/miniflux-setup/</guid>
|
||||
<description><p>Looking for a minimal self-hosted feed reader I found <a href="https://miniflux.app/">miniflux</a>. But trying to set it up I found my self trying to set it up for 3 freaking hours since I only recently started to self-host things. So here I will try to explaing it in the most easy way how to set it up on a debian server with https using certbot and nginx.</p>
|
||||
<!-- raw HTML omitted -->
|
||||
<p>For this tutorial I expect that you already have a server seted up with nginx and certbot. To set up this things check out <a href="https://landchad.net">landchad</a></p>
|
||||
<h2 id="installing-needed-packages">Installing needed packages</h2>
|
||||
<p>You will first need to setup miniflux apt repository to install it on your system.</p>
|
||||
<div class="highlight"><pre tabindex="0" style="color:#ef9f76;background-color:#303446;-moz-tab-size:4;-o-tab-size:4;tab-size:4;"><code class="language-bash" data-lang="bash"><span style="display:flex;"><span><span style="color:#c6d0f5;font-style:italic">echo</span> <span style="color:#a6d189">&#34;deb [trusted=yes] https://repo.miniflux.app/apt/ /&#34;</span> <span style="color:#c6d0f5">|</span> sudo tee /etc/apt/sources.list.d/miniflux.list &gt; /dev/null
|
||||
</span></span><span style="display:flex;"><span>apt update
|
||||
</span></span></code></pre></div><p>Then just install the needed packages.</p>
|
||||
<div class="highlight"><pre tabindex="0" style="color:#ef9f76;background-color:#303446;-moz-tab-size:4;-o-tab-size:4;tab-size:4;"><code class="language-bash" data-lang="bash"><span style="display:flex;"><span>apt install miniflux postgresql
|
||||
</span></span></code></pre></div><h2 id="setting-up-postgres-database-and-miniflux">Setting up postgres database and miniflux</h2>
|
||||
<p>Here I will detail steps to create the postgres database.</p>
|
||||
<h3 id="initial-postgres-setup">Initial postgres setup</h3>
|
||||
<div class="highlight"><pre tabindex="0" style="color:#ef9f76;background-color:#303446;-moz-tab-size:4;-o-tab-size:4;tab-size:4;"><code class="language-bash" data-lang="bash"><span style="display:flex;"><span><span style="color:#626880;font-style:italic"># Switch to the postgres user</span>
|
||||
</span></span><span style="display:flex;"><span>$ su - postgres
|
||||
</span></span><span style="display:flex;"><span>
|
||||
</span></span><span style="display:flex;"><span><span style="color:#626880;font-style:italic"># Creating a miniflux user, enter a safe and secure password</span>
|
||||
</span></span><span style="display:flex;"><span>$ createuser -P miniflux
|
||||
</span></span><span style="display:flex;"><span>
|
||||
</span></span><span style="display:flex;"><span><span style="color:#626880;font-style:italic"># Create a database for miniflux that belongs to our user</span>
|
||||
</span></span><span style="display:flex;"><span>$ createdb -O miniflux miniflux
|
||||
</span></span><span style="display:flex;"><span>
|
||||
</span></span><span style="display:flex;"><span><span style="color:#626880;font-style:italic"># Create a database for miniflux that belongs to our user</span>
|
||||
</span></span><span style="display:flex;"><span>$ createdb -O miniflux miniflux
|
||||
</span></span><span style="display:flex;"><span>
|
||||
</span></span><span style="display:flex;"><span><span style="color:#626880;font-style:italic"># Creating extension hstore as superuser</span>
|
||||
</span></span><span style="display:flex;"><span>$ psql miniflux -c <span style="color:#a6d189">&#39;create extension hstore&#39;</span>
|
||||
</span></span><span style="display:flex;"><span>
|
||||
</span></span><span style="display:flex;"><span><span style="color:#626880;font-style:italic"># Managing the miniflux database</span>
|
||||
</span></span><span style="display:flex;"><span>$ psql <span style="color:#babbf1">$MINIFLUX_DATABASE</span>
|
||||
</span></span><span style="display:flex;"><span>
|
||||
</span></span><span style="display:flex;"><span><span style="color:#626880;font-style:italic"># Giving miniflux user all privileges</span>
|
||||
</span></span><span style="display:flex;"><span>&gt; alter user miniflux with superuser<span style="color:#c6d0f5">;</span>
|
||||
</span></span><span style="display:flex;"><span>
|
||||
</span></span><span style="display:flex;"><span><span style="color:#626880;font-style:italic"># Exit the postgres database</span>
|
||||
</span></span><span style="display:flex;"><span>&gt; <span style="color:#8caaee">\q</span>
|
||||
</span></span><span style="display:flex;"><span>
|
||||
</span></span><span style="display:flex;"><span><span style="color:#626880;font-style:italic"># Exit postgres user</span>
|
||||
</span></span><span style="display:flex;"><span>$ <span style="color:#c6d0f5;font-style:italic">exit</span>
|
||||
</span></span></code></pre></div><h3 id="miniflux-configuration-file">Miniflux configuration file</h3>
|
||||
<p>Open the miniflux configuration file in path <code>/etc/miniflux.conf</code> and edit it like this.</p>
|
||||
<div class="highlight"><pre tabindex="0" style="color:#ef9f76;background-color:#303446;-moz-tab-size:4;-o-tab-size:4;tab-size:4;"><code class="language-bash" data-lang="bash"><span style="display:flex;"><span><span style="color:#626880;font-style:italic"># See https://miniflux.app/docs/configuration.html</span>
|
||||
</span></span><span style="display:flex;"><span><span style="color:#babbf1">LISTEN_ADDR</span><span style="color:#99d1db">=</span>127.0.0.1:8080
|
||||
</span></span><span style="display:flex;"><span><span style="color:#babbf1">DATABASE_URL</span><span style="color:#99d1db">=</span><span style="color:#babbf1">user</span><span style="color:#99d1db">=</span>miniflux <span style="color:#babbf1">password</span><span style="color:#99d1db">=</span>PASSWORD_HERE <span style="color:#babbf1">dbname</span><span style="color:#99d1db">=</span>miniflux <span style="color:#babbf1">sslmode</span><span style="color:#99d1db">=</span>disable
|
||||
</span></span><span style="display:flex;"><span><span style="color:#babbf1">RUN_MIGRATIONS</span><span style="color:#99d1db">=</span>1
|
||||
</span></span></code></pre></div><h3 id="migrating-the-database-and-removing-superuser-privileges-in-postgres">Migrating the database and removing superuser privileges in postgres</h3>
|
||||
<p>Now we will migrate the database and remove unneded superuser privileges, since it is reccomended in the miniflux documentation.</p>
|
||||
<div class="highlight"><pre tabindex="0" style="color:#ef9f76;background-color:#303446;-moz-tab-size:4;-o-tab-size:4;tab-size:4;"><code class="language-bash" data-lang="bash"><span style="display:flex;"><span><span style="color:#626880;font-style:italic"># Migrating the database</span>
|
||||
</span></span><span style="display:flex;"><span>$ miniflux -c /etc/miniflux.conf -migrate
|
||||
</span></span><span style="display:flex;"><span>
|
||||
</span></span><span style="display:flex;"><span><span style="color:#626880;font-style:italic"># Creating miniflux admin user</span>
|
||||
</span></span><span style="display:flex;"><span>$ miniflux -c /etc/miniflux.conf -create-admin
|
||||
</span></span><span style="display:flex;"><span>
|
||||
</span></span><span style="display:flex;"><span><span style="color:#626880;font-style:italic"># Restarting the systemctl service</span>
|
||||
</span></span><span style="display:flex;"><span>$ systemctl restart miniflux
|
||||
</span></span><span style="display:flex;"><span>
|
||||
</span></span><span style="display:flex;"><span><span style="color:#626880;font-style:italic"># Entering postgres database user</span>
|
||||
</span></span><span style="display:flex;"><span>$ su - postgres
|
||||
</span></span><span style="display:flex;"><span>
|
||||
</span></span><span style="display:flex;"><span><span style="color:#626880;font-style:italic"># Entering miniflux database</span>
|
||||
</span></span><span style="display:flex;"><span>$ psql <span style="color:#babbf1">$MINIFLUX_DATABASE</span>
|
||||
</span></span><span style="display:flex;"><span>
|
||||
</span></span><span style="display:flex;"><span><span style="color:#626880;font-style:italic"># Removing unneded superuser privileges from miniflux user</span>
|
||||
</span></span><span style="display:flex;"><span>&gt; alter user miniflux with nosuperuser<span style="color:#c6d0f5">;</span>
|
||||
</span></span><span style="display:flex;"><span>
|
||||
</span></span><span style="display:flex;"><span><span style="color:#626880;font-style:italic"># Exit the postgres database</span>
|
||||
</span></span><span style="display:flex;"><span>&gt; <span style="color:#8caaee">\q</span>
|
||||
</span></span><span style="display:flex;"><span>
|
||||
</span></span><span style="display:flex;"><span><span style="color:#626880;font-style:italic"># Exit postgres user</span>
|
||||
</span></span><span style="display:flex;"><span>$ <span style="color:#c6d0f5;font-style:italic">exit</span>
|
||||
</span></span></code></pre></div><h2 id="nginx-and-certbot-setup">Nginx and certbot setup</h2>
|
||||
<p>Make sure to have a domain to use for your miniflux setup.</p>
|
||||
<p>Create and open a nginx config with path <code>/etc/nginx/sites-available/miniflux.conf</code> and add this</p>
|
||||
<div class="highlight"><pre tabindex="0" style="color:#ef9f76;background-color:#303446;-moz-tab-size:4;-o-tab-size:4;tab-size:4;"><code class="language-nginx" data-lang="nginx"><span style="display:flex;"><span><span style="color:#ca9ee6">server</span> <span style="color:#c6d0f5">{</span>
|
||||
</span></span><span style="display:flex;"><span> <span style="color:#ca9ee6">server_name</span> <span style="color:#a6d189">your.domain.ext</span><span style="color:#c6d0f5">;</span>
|
||||
</span></span><span style="display:flex;"><span> <span style="color:#ca9ee6">listen</span> 80<span style="color:#c6d0f5">;</span>
|
||||
</span></span><span style="display:flex;"><span> <span style="color:#ca9ee6">listen</span> <span style="color:#a6d189">[::]:80</span><span style="color:#c6d0f5">;</span>
|
||||
</span></span><span style="display:flex;"><span>
|
||||
</span></span><span style="display:flex;"><span> <span style="color:#ca9ee6">location</span> <span style="color:#a6d189">/</span> <span style="color:#c6d0f5">{</span>
|
||||
</span></span><span style="display:flex;"><span> <span style="color:#ca9ee6">proxy_pass</span> <span style="color:#a6d189">http://127.0.0.1:8080</span><span style="color:#c6d0f5">;</span>
|
||||
</span></span><span style="display:flex;"><span> <span style="color:#ca9ee6">proxy_redirect</span> <span style="color:#e5c890">off</span><span style="color:#c6d0f5">;</span>
|
||||
</span></span><span style="display:flex;"><span> <span style="color:#ca9ee6">proxy_set_header</span> <span style="color:#a6d189">Host</span> <span style="color:#babbf1">$host</span><span style="color:#c6d0f5">;</span>
|
||||
</span></span><span style="display:flex;"><span> <span style="color:#ca9ee6">proxy_set_header</span> <span style="color:#a6d189">X-Real-IP</span> <span style="color:#babbf1">$remote_addr</span><span style="color:#c6d0f5">;</span>
|
||||
</span></span><span style="display:flex;"><span> <span style="color:#ca9ee6">proxy_set_header</span> <span style="color:#a6d189">X-Forwarded-For</span> <span style="color:#babbf1">$proxy_add_x_forwarded_for</span><span style="color:#c6d0f5">;</span>
|
||||
</span></span><span style="display:flex;"><span> <span style="color:#ca9ee6">proxy_set_header</span> <span style="color:#a6d189">X-Forwarded-Proto</span> <span style="color:#babbf1">$scheme</span><span style="color:#c6d0f5">;</span>
|
||||
</span></span><span style="display:flex;"><span> <span style="color:#c6d0f5">}</span>
|
||||
</span></span><span style="display:flex;"><span><span style="color:#c6d0f5">}</span>
|
||||
</span></span></code></pre></div><p>Now just link the config to enabled sites and restart nginx service.</p>
|
||||
<div class="highlight"><pre tabindex="0" style="color:#ef9f76;background-color:#303446;-moz-tab-size:4;-o-tab-size:4;tab-size:4;"><code class="language-bash" data-lang="bash"><span style="display:flex;"><span>$ ln -s /etc/nginx/sites-available/miniflux.conf /etc/nginx/sites-enabled/miniflux.conf
|
||||
</span></span><span style="display:flex;"><span>$ systemctl restart nginx
|
||||
</span></span></code></pre></div><p>To get https on your domain you just need to run <code>certbot --nginx</code> same as in this <a href="https://landchad.net/basic/certbot/">tutorial</a></p>
|
||||
<h2 id="finishing-words">Finishing words</h2>
|
||||
<p>I hope that this wasn&rsquo;t hard to follow and shouldn&rsquo;t take hours like it took me first time I tried to set this all up.</p>
|
||||
</description>
|
||||
</item>
|
||||
|
||||
</channel>
|
||||
</rss>
|
176
public/blog/miniflux-setup/index.html
Normal file
176
public/blog/miniflux-setup/index.html
Normal file
@ -0,0 +1,176 @@
|
||||
<!doctype html>
|
||||
<html lang="en">
|
||||
|
||||
<head>
|
||||
<meta charset="UTF-8" />
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1" />
|
||||
<link href="/css/style.css" rel="stylesheet" />
|
||||
|
||||
<title>miniflux setup on debian</title>
|
||||
<meta property="og:title" content="miniflux setup on debian" />
|
||||
<meta property="og:description" content="Looking for a minimal self-hosted feed reader I found miniflux. But trying to set it up I found my self trying to set it up for 3 freaking hours since I only recently started to self-host things. So here I will try to explaing it in the most easy way how to set it up on a debian server with https using certbot and nginx.
|
||||
For this tutorial I expect that you already have a server seted up with nginx and certbot." />
|
||||
<meta property="og:type" content="article" />
|
||||
<meta property="og:url" content="https://cronyakatsuki.xyz/blog/miniflux-setup/" /><meta property="article:section" content="blog" />
|
||||
<meta property="article:published_time" content="2022-11-30T00:00:00+00:00" />
|
||||
<meta property="article:modified_time" content="2022-11-30T00:00:00+00:00" /><meta property="og:site_name" content="Crony Akatsuki's Website" />
|
||||
|
||||
</head>
|
||||
|
||||
<body>
|
||||
<header>
|
||||
<h1>Crony Akatsuki</h1>
|
||||
<nav>
|
||||
<span><a href="/">Home</a></span>
|
||||
<span>|</span>
|
||||
<span><a href="/about">About</a></span>
|
||||
<span>|</span>
|
||||
<span><a href="/blog">Blog</a></span>
|
||||
<span>|</span>
|
||||
<span><a href="/services">Services</a></span>
|
||||
</nav>
|
||||
</header>
|
||||
|
||||
|
||||
<main>
|
||||
<div id="content">
|
||||
|
||||
<h1>miniflux setup on debian</h1>
|
||||
|
||||
<p>Looking for a minimal self-hosted feed reader I found <a href="https://miniflux.app/">miniflux</a>. But trying to set it up I found my self trying to set it up for 3 freaking hours since I only recently started to self-host things. So here I will try to explaing it in the most easy way how to set it up on a debian server with https using certbot and nginx.</p>
|
||||
<!-- raw HTML omitted -->
|
||||
<p>For this tutorial I expect that you already have a server seted up with nginx and certbot. To set up this things check out <a href="https://landchad.net">landchad</a></p>
|
||||
<h2 id="installing-needed-packages">Installing needed packages</h2>
|
||||
<p>You will first need to setup miniflux apt repository to install it on your system.</p>
|
||||
<div class="highlight"><pre tabindex="0" style="color:#ef9f76;background-color:#303446;-moz-tab-size:4;-o-tab-size:4;tab-size:4;"><code class="language-bash" data-lang="bash"><span style="display:flex;"><span><span style="color:#c6d0f5;font-style:italic">echo</span> <span style="color:#a6d189">"deb [trusted=yes] https://repo.miniflux.app/apt/ /"</span> <span style="color:#c6d0f5">|</span> sudo tee /etc/apt/sources.list.d/miniflux.list > /dev/null
|
||||
</span></span><span style="display:flex;"><span>apt update
|
||||
</span></span></code></pre></div><p>Then just install the needed packages.</p>
|
||||
<div class="highlight"><pre tabindex="0" style="color:#ef9f76;background-color:#303446;-moz-tab-size:4;-o-tab-size:4;tab-size:4;"><code class="language-bash" data-lang="bash"><span style="display:flex;"><span>apt install miniflux postgresql
|
||||
</span></span></code></pre></div><h2 id="setting-up-postgres-database-and-miniflux">Setting up postgres database and miniflux</h2>
|
||||
<p>Here I will detail steps to create the postgres database.</p>
|
||||
<h3 id="initial-postgres-setup">Initial postgres setup</h3>
|
||||
<div class="highlight"><pre tabindex="0" style="color:#ef9f76;background-color:#303446;-moz-tab-size:4;-o-tab-size:4;tab-size:4;"><code class="language-bash" data-lang="bash"><span style="display:flex;"><span><span style="color:#626880;font-style:italic"># Switch to the postgres user</span>
|
||||
</span></span><span style="display:flex;"><span>$ su - postgres
|
||||
</span></span><span style="display:flex;"><span>
|
||||
</span></span><span style="display:flex;"><span><span style="color:#626880;font-style:italic"># Creating a miniflux user, enter a safe and secure password</span>
|
||||
</span></span><span style="display:flex;"><span>$ createuser -P miniflux
|
||||
</span></span><span style="display:flex;"><span>
|
||||
</span></span><span style="display:flex;"><span><span style="color:#626880;font-style:italic"># Create a database for miniflux that belongs to our user</span>
|
||||
</span></span><span style="display:flex;"><span>$ createdb -O miniflux miniflux
|
||||
</span></span><span style="display:flex;"><span>
|
||||
</span></span><span style="display:flex;"><span><span style="color:#626880;font-style:italic"># Create a database for miniflux that belongs to our user</span>
|
||||
</span></span><span style="display:flex;"><span>$ createdb -O miniflux miniflux
|
||||
</span></span><span style="display:flex;"><span>
|
||||
</span></span><span style="display:flex;"><span><span style="color:#626880;font-style:italic"># Creating extension hstore as superuser</span>
|
||||
</span></span><span style="display:flex;"><span>$ psql miniflux -c <span style="color:#a6d189">'create extension hstore'</span>
|
||||
</span></span><span style="display:flex;"><span>
|
||||
</span></span><span style="display:flex;"><span><span style="color:#626880;font-style:italic"># Managing the miniflux database</span>
|
||||
</span></span><span style="display:flex;"><span>$ psql <span style="color:#babbf1">$MINIFLUX_DATABASE</span>
|
||||
</span></span><span style="display:flex;"><span>
|
||||
</span></span><span style="display:flex;"><span><span style="color:#626880;font-style:italic"># Giving miniflux user all privileges</span>
|
||||
</span></span><span style="display:flex;"><span>> alter user miniflux with superuser<span style="color:#c6d0f5">;</span>
|
||||
</span></span><span style="display:flex;"><span>
|
||||
</span></span><span style="display:flex;"><span><span style="color:#626880;font-style:italic"># Exit the postgres database</span>
|
||||
</span></span><span style="display:flex;"><span>> <span style="color:#8caaee">\q</span>
|
||||
</span></span><span style="display:flex;"><span>
|
||||
</span></span><span style="display:flex;"><span><span style="color:#626880;font-style:italic"># Exit postgres user</span>
|
||||
</span></span><span style="display:flex;"><span>$ <span style="color:#c6d0f5;font-style:italic">exit</span>
|
||||
</span></span></code></pre></div><h3 id="miniflux-configuration-file">Miniflux configuration file</h3>
|
||||
<p>Open the miniflux configuration file in path <code>/etc/miniflux.conf</code> and edit it like this.</p>
|
||||
<div class="highlight"><pre tabindex="0" style="color:#ef9f76;background-color:#303446;-moz-tab-size:4;-o-tab-size:4;tab-size:4;"><code class="language-bash" data-lang="bash"><span style="display:flex;"><span><span style="color:#626880;font-style:italic"># See https://miniflux.app/docs/configuration.html</span>
|
||||
</span></span><span style="display:flex;"><span><span style="color:#babbf1">LISTEN_ADDR</span><span style="color:#99d1db">=</span>127.0.0.1:8080
|
||||
</span></span><span style="display:flex;"><span><span style="color:#babbf1">DATABASE_URL</span><span style="color:#99d1db">=</span><span style="color:#babbf1">user</span><span style="color:#99d1db">=</span>miniflux <span style="color:#babbf1">password</span><span style="color:#99d1db">=</span>PASSWORD_HERE <span style="color:#babbf1">dbname</span><span style="color:#99d1db">=</span>miniflux <span style="color:#babbf1">sslmode</span><span style="color:#99d1db">=</span>disable
|
||||
</span></span><span style="display:flex;"><span><span style="color:#babbf1">RUN_MIGRATIONS</span><span style="color:#99d1db">=</span>1
|
||||
</span></span></code></pre></div><h3 id="migrating-the-database-and-removing-superuser-privileges-in-postgres">Migrating the database and removing superuser privileges in postgres</h3>
|
||||
<p>Now we will migrate the database and remove unneded superuser privileges, since it is reccomended in the miniflux documentation.</p>
|
||||
<div class="highlight"><pre tabindex="0" style="color:#ef9f76;background-color:#303446;-moz-tab-size:4;-o-tab-size:4;tab-size:4;"><code class="language-bash" data-lang="bash"><span style="display:flex;"><span><span style="color:#626880;font-style:italic"># Migrating the database</span>
|
||||
</span></span><span style="display:flex;"><span>$ miniflux -c /etc/miniflux.conf -migrate
|
||||
</span></span><span style="display:flex;"><span>
|
||||
</span></span><span style="display:flex;"><span><span style="color:#626880;font-style:italic"># Creating miniflux admin user</span>
|
||||
</span></span><span style="display:flex;"><span>$ miniflux -c /etc/miniflux.conf -create-admin
|
||||
</span></span><span style="display:flex;"><span>
|
||||
</span></span><span style="display:flex;"><span><span style="color:#626880;font-style:italic"># Restarting the systemctl service</span>
|
||||
</span></span><span style="display:flex;"><span>$ systemctl restart miniflux
|
||||
</span></span><span style="display:flex;"><span>
|
||||
</span></span><span style="display:flex;"><span><span style="color:#626880;font-style:italic"># Entering postgres database user</span>
|
||||
</span></span><span style="display:flex;"><span>$ su - postgres
|
||||
</span></span><span style="display:flex;"><span>
|
||||
</span></span><span style="display:flex;"><span><span style="color:#626880;font-style:italic"># Entering miniflux database</span>
|
||||
</span></span><span style="display:flex;"><span>$ psql <span style="color:#babbf1">$MINIFLUX_DATABASE</span>
|
||||
</span></span><span style="display:flex;"><span>
|
||||
</span></span><span style="display:flex;"><span><span style="color:#626880;font-style:italic"># Removing unneded superuser privileges from miniflux user</span>
|
||||
</span></span><span style="display:flex;"><span>> alter user miniflux with nosuperuser<span style="color:#c6d0f5">;</span>
|
||||
</span></span><span style="display:flex;"><span>
|
||||
</span></span><span style="display:flex;"><span><span style="color:#626880;font-style:italic"># Exit the postgres database</span>
|
||||
</span></span><span style="display:flex;"><span>> <span style="color:#8caaee">\q</span>
|
||||
</span></span><span style="display:flex;"><span>
|
||||
</span></span><span style="display:flex;"><span><span style="color:#626880;font-style:italic"># Exit postgres user</span>
|
||||
</span></span><span style="display:flex;"><span>$ <span style="color:#c6d0f5;font-style:italic">exit</span>
|
||||
</span></span></code></pre></div><h2 id="nginx-and-certbot-setup">Nginx and certbot setup</h2>
|
||||
<p>Make sure to have a domain to use for your miniflux setup.</p>
|
||||
<p>Create and open a nginx config with path <code>/etc/nginx/sites-available/miniflux.conf</code> and add this</p>
|
||||
<div class="highlight"><pre tabindex="0" style="color:#ef9f76;background-color:#303446;-moz-tab-size:4;-o-tab-size:4;tab-size:4;"><code class="language-nginx" data-lang="nginx"><span style="display:flex;"><span><span style="color:#ca9ee6">server</span> <span style="color:#c6d0f5">{</span>
|
||||
</span></span><span style="display:flex;"><span> <span style="color:#ca9ee6">server_name</span> <span style="color:#a6d189">your.domain.ext</span><span style="color:#c6d0f5">;</span>
|
||||
</span></span><span style="display:flex;"><span> <span style="color:#ca9ee6">listen</span> 80<span style="color:#c6d0f5">;</span>
|
||||
</span></span><span style="display:flex;"><span> <span style="color:#ca9ee6">listen</span> <span style="color:#a6d189">[::]:80</span><span style="color:#c6d0f5">;</span>
|
||||
</span></span><span style="display:flex;"><span>
|
||||
</span></span><span style="display:flex;"><span> <span style="color:#ca9ee6">location</span> <span style="color:#a6d189">/</span> <span style="color:#c6d0f5">{</span>
|
||||
</span></span><span style="display:flex;"><span> <span style="color:#ca9ee6">proxy_pass</span> <span style="color:#a6d189">http://127.0.0.1:8080</span><span style="color:#c6d0f5">;</span>
|
||||
</span></span><span style="display:flex;"><span> <span style="color:#ca9ee6">proxy_redirect</span> <span style="color:#e5c890">off</span><span style="color:#c6d0f5">;</span>
|
||||
</span></span><span style="display:flex;"><span> <span style="color:#ca9ee6">proxy_set_header</span> <span style="color:#a6d189">Host</span> <span style="color:#babbf1">$host</span><span style="color:#c6d0f5">;</span>
|
||||
</span></span><span style="display:flex;"><span> <span style="color:#ca9ee6">proxy_set_header</span> <span style="color:#a6d189">X-Real-IP</span> <span style="color:#babbf1">$remote_addr</span><span style="color:#c6d0f5">;</span>
|
||||
</span></span><span style="display:flex;"><span> <span style="color:#ca9ee6">proxy_set_header</span> <span style="color:#a6d189">X-Forwarded-For</span> <span style="color:#babbf1">$proxy_add_x_forwarded_for</span><span style="color:#c6d0f5">;</span>
|
||||
</span></span><span style="display:flex;"><span> <span style="color:#ca9ee6">proxy_set_header</span> <span style="color:#a6d189">X-Forwarded-Proto</span> <span style="color:#babbf1">$scheme</span><span style="color:#c6d0f5">;</span>
|
||||
</span></span><span style="display:flex;"><span> <span style="color:#c6d0f5">}</span>
|
||||
</span></span><span style="display:flex;"><span><span style="color:#c6d0f5">}</span>
|
||||
</span></span></code></pre></div><p>Now just link the config to enabled sites and restart nginx service.</p>
|
||||
<div class="highlight"><pre tabindex="0" style="color:#ef9f76;background-color:#303446;-moz-tab-size:4;-o-tab-size:4;tab-size:4;"><code class="language-bash" data-lang="bash"><span style="display:flex;"><span>$ ln -s /etc/nginx/sites-available/miniflux.conf /etc/nginx/sites-enabled/miniflux.conf
|
||||
</span></span><span style="display:flex;"><span>$ systemctl restart nginx
|
||||
</span></span></code></pre></div><p>To get https on your domain you just need to run <code>certbot --nginx</code> same as in this <a href="https://landchad.net/basic/certbot/">tutorial</a></p>
|
||||
<h2 id="finishing-words">Finishing words</h2>
|
||||
<p>I hope that this wasn’t hard to follow and shouldn’t take hours like it took me first time I tried to set this all up.</p>
|
||||
|
||||
|
||||
</div>
|
||||
</main>
|
||||
<footer>
|
||||
<div id="links">
|
||||
<span><a href="https://code.cronyakatsuki.xyz">Code</a></span>
|
||||
<span>|</span>
|
||||
<span><a href="https://steamcommunity.com/id/CronyAkatsuki/">Steam</a></span>
|
||||
<span>|</span>
|
||||
<span><a href="https://osu.ppy.sh/users/18953565">Osu!</a></span>
|
||||
<span>|</span>
|
||||
<span><a href="https://anilist.co/user/CronyAkatsuki/">Anilist</a></span>
|
||||
<span>|</span>
|
||||
<span><a href="https://youtube.com/channel/UClFdlNlUipHG5Kit8GbFz5Q">Gaming Channel</a></span>
|
||||
</div>
|
||||
<div id="banners">
|
||||
<a rel="noreferrer" href="/" target="_blank"><img src="/88x31.png"
|
||||
alt="Me" title="Me" /></a>
|
||||
<a rel="noreferrer" href="https://kernel.org" target="_blank"><img src="https://cyber.dabamos.de/88x31/linux_powered.gif"
|
||||
alt="linux kernel" title="Best kernel in the world" /></a>
|
||||
<a rel="noreferrer" href="https://debian.org" target="_blank"><img src="https://cyber.dabamos.de/88x31/debian.gif"
|
||||
alt="debian" title="This website run's on debian" /></a>
|
||||
<a rel="noreferrer" href="https://bitwarden.com" target="_blank"><img src="https://cyber.dabamos.de/88x31/bitwarden.gif"
|
||||
alt="Bitwarden" title="Bitwarden/Vaultwarden for the win" /></a>
|
||||
<a rel="noreferrer" target="_blank"><img src="https://cyber.dabamos.de/88x31/free.gif"
|
||||
alt="foss" title="Foss is the way" /></a>
|
||||
<a rel="noreferrer" href="https://neovim.io" target="_blank"><img src="/assets/badges/neovim.gif"
|
||||
alt="Neovim" title="Written in neovim" /></a>
|
||||
<a rel="noreferrer" href="https://landchad.net" target="_blank"><img src="https://landchad.net/pix/landchad.gif"
|
||||
alt="LandChad" title="Get A Website!" /></a>
|
||||
<a rel="noreferrer" href="https://poggerer.xyz" target="_blank"><img src="https://poggerer.xyz/88x31.png"
|
||||
alt="Tulg" title="Tulg" /></a>
|
||||
<a rel="noreferrer" href="https://arthurmelton.com" target="_blank"><img src="https://arthurmelton.com/88x31.png"
|
||||
alt="AMTitan" title="AMTitan" /></a>
|
||||
<a rel="noreferrer" href="https://aadi.net.in" target="_blank"><img src="https://aadi.net.in/88x31.png"
|
||||
alt="Aadi" title="Aadi" /></a>
|
||||
<a rel="noreferrer" href="https://bear.oops.wtf/" target="_blank"><img src="https://bear.oops.wtf/download/88x31.png"
|
||||
alt="Bear" title="Bear" /></a>
|
||||
</div>
|
||||
</footer>
|
||||
|
||||
</body>
|
||||
|
||||
</html>
|
92
public/blog/piped-video-not-loading/index.html
Normal file
92
public/blog/piped-video-not-loading/index.html
Normal file
@ -0,0 +1,92 @@
|
||||
<!doctype html>
|
||||
<html lang="en">
|
||||
|
||||
<head>
|
||||
<meta charset="UTF-8" />
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1" />
|
||||
<link href="/css/style.css" rel="stylesheet" />
|
||||
|
||||
<title>Piped videos not loading</title>
|
||||
<meta property="og:title" content="Piped videos not loading" />
|
||||
<meta property="og:description" content="Recently I have received and experienced an issue of videos not loading on my personal piped instance and on the official instance. But I have found a fix and a way to watch the videos even without the fix.
|
||||
What creates the issue? From what I have been able to find on the issues over on the piped github it seems to be an lbry issue of the videos not loading mostly on firefox, the issue seems to not happen on the chromium browsers." />
|
||||
<meta property="og:type" content="article" />
|
||||
<meta property="og:url" content="https://cronyakatsuki.xyz/blog/piped-video-not-loading/" /><meta property="article:section" content="blog" />
|
||||
<meta property="article:published_time" content="2023-02-26T00:00:00+00:00" />
|
||||
<meta property="article:modified_time" content="2023-02-26T00:00:00+00:00" /><meta property="og:site_name" content="Crony Akatsuki's Website" />
|
||||
|
||||
</head>
|
||||
|
||||
<body>
|
||||
<header>
|
||||
<h1>Crony Akatsuki</h1>
|
||||
<nav>
|
||||
<span><a href="/">Home</a></span>
|
||||
<span>|</span>
|
||||
<span><a href="/about">About</a></span>
|
||||
<span>|</span>
|
||||
<span><a href="/blog">Blog</a></span>
|
||||
<span>|</span>
|
||||
<span><a href="/services">Services</a></span>
|
||||
</nav>
|
||||
</header>
|
||||
|
||||
|
||||
<main>
|
||||
<div id="content">
|
||||
|
||||
<h1>Piped videos not loading</h1>
|
||||
|
||||
<p>Recently I have received and experienced an issue of videos not loading on my personal <a href="https://piped.cronyakatsuki.xyz">piped</a> instance and on the official instance. But I have found a fix and a way to watch the videos even without the fix.</p>
|
||||
<!-- raw HTML omitted -->
|
||||
<h2 id="what-creates-the-issue">What creates the issue?</h2>
|
||||
<p>From what I have been able to find on the issues over on the <a href="https://github.com/TeamPiped/Piped">piped github</a> it seems to be an lbry issue of the videos not loading mostly on firefox, the issue seems to not happen on the chromium browsers.</p>
|
||||
<h3 id="how-to-fix-the-issue">How to fix the issue</h3>
|
||||
<p>To fix the issue you just have to enable an option in the instance settings called <code>disable lbry for streaming</code>. This will disable loading of lbry for videos and the issue will mostly just be bypassed.</p>
|
||||
<h3 id="fun-way-to-also-watch-the-videos">Fun way to also watch the videos</h3>
|
||||
<p>If you are like me and bored you can also watch the videos without using the fix by opening the firefox debug console, and in the errors you will see the link of the video that the frontend wasn’t able to embed. Just click the link and you will be able to watch the video or it will say that the content isn’t reachable and then you will need to do the fix otherwise it’s a no no to watch that video otherwise.</p>
|
||||
|
||||
|
||||
</div>
|
||||
</main>
|
||||
<footer>
|
||||
<div id="links">
|
||||
<span><a href="https://code.cronyakatsuki.xyz">Code</a></span>
|
||||
<span>|</span>
|
||||
<span><a href="https://steamcommunity.com/id/CronyAkatsuki/">Steam</a></span>
|
||||
<span>|</span>
|
||||
<span><a href="https://osu.ppy.sh/users/18953565">Osu!</a></span>
|
||||
<span>|</span>
|
||||
<span><a href="https://anilist.co/user/CronyAkatsuki/">Anilist</a></span>
|
||||
<span>|</span>
|
||||
<span><a href="https://youtube.com/channel/UClFdlNlUipHG5Kit8GbFz5Q">Gaming Channel</a></span>
|
||||
</div>
|
||||
<div id="banners">
|
||||
<a rel="noreferrer" href="/" target="_blank"><img src="/88x31.png"
|
||||
alt="Me" title="Me" /></a>
|
||||
<a rel="noreferrer" href="https://kernel.org" target="_blank"><img src="https://cyber.dabamos.de/88x31/linux_powered.gif"
|
||||
alt="linux kernel" title="Best kernel in the world" /></a>
|
||||
<a rel="noreferrer" href="https://debian.org" target="_blank"><img src="https://cyber.dabamos.de/88x31/debian.gif"
|
||||
alt="debian" title="This website run's on debian" /></a>
|
||||
<a rel="noreferrer" href="https://bitwarden.com" target="_blank"><img src="https://cyber.dabamos.de/88x31/bitwarden.gif"
|
||||
alt="Bitwarden" title="Bitwarden/Vaultwarden for the win" /></a>
|
||||
<a rel="noreferrer" target="_blank"><img src="https://cyber.dabamos.de/88x31/free.gif"
|
||||
alt="foss" title="Foss is the way" /></a>
|
||||
<a rel="noreferrer" href="https://neovim.io" target="_blank"><img src="/assets/badges/neovim.gif"
|
||||
alt="Neovim" title="Written in neovim" /></a>
|
||||
<a rel="noreferrer" href="https://landchad.net" target="_blank"><img src="https://landchad.net/pix/landchad.gif"
|
||||
alt="LandChad" title="Get A Website!" /></a>
|
||||
<a rel="noreferrer" href="https://poggerer.xyz" target="_blank"><img src="https://poggerer.xyz/88x31.png"
|
||||
alt="Tulg" title="Tulg" /></a>
|
||||
<a rel="noreferrer" href="https://arthurmelton.com" target="_blank"><img src="https://arthurmelton.com/88x31.png"
|
||||
alt="AMTitan" title="AMTitan" /></a>
|
||||
<a rel="noreferrer" href="https://aadi.net.in" target="_blank"><img src="https://aadi.net.in/88x31.png"
|
||||
alt="Aadi" title="Aadi" /></a>
|
||||
<a rel="noreferrer" href="https://bear.oops.wtf/" target="_blank"><img src="https://bear.oops.wtf/download/88x31.png"
|
||||
alt="Bear" title="Bear" /></a>
|
||||
</div>
|
||||
</footer>
|
||||
|
||||
</body>
|
||||
|
||||
</html>
|
231
public/blog/setup-dns-pihole-unbound/index.html
Normal file
231
public/blog/setup-dns-pihole-unbound/index.html
Normal file
@ -0,0 +1,231 @@
|
||||
<!doctype html>
|
||||
<html lang="en">
|
||||
|
||||
<head>
|
||||
<meta charset="UTF-8" />
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1" />
|
||||
<link href="/css/style.css" rel="stylesheet" />
|
||||
|
||||
<title>Setup dns with adblock and dot/doh with pi-hole and unbound</title>
|
||||
<meta property="og:title" content="Setup dns with adblock and dot/doh with pi-hole and unbound" />
|
||||
<meta property="og:description" content="Just another day I seted up my own private dns server that has adblocking ( and other stuff ) using pihole and uses unbound as a resolver. To safelly connect to the dns server I’m using DNS over HTTPS for my browser’s and HTTPS over TLS for stuffy for my whole desktop and private dns in android ( Android has DoH support but only for google and cloudflare right now). Let’s get on to setting everything up" />
|
||||
<meta property="og:type" content="article" />
|
||||
<meta property="og:url" content="https://cronyakatsuki.xyz/blog/setup-dns-pihole-unbound/" /><meta property="article:section" content="blog" />
|
||||
<meta property="article:published_time" content="2023-09-27T00:00:00+00:00" />
|
||||
<meta property="article:modified_time" content="2023-09-27T00:00:00+00:00" /><meta property="og:site_name" content="Crony Akatsuki's Website" />
|
||||
|
||||
</head>
|
||||
|
||||
<body>
|
||||
<header>
|
||||
<h1>Crony Akatsuki</h1>
|
||||
<nav>
|
||||
<span><a href="/">Home</a></span>
|
||||
<span>|</span>
|
||||
<span><a href="/about">About</a></span>
|
||||
<span>|</span>
|
||||
<span><a href="/blog">Blog</a></span>
|
||||
<span>|</span>
|
||||
<span><a href="/services">Services</a></span>
|
||||
</nav>
|
||||
</header>
|
||||
|
||||
|
||||
<main>
|
||||
<div id="content">
|
||||
|
||||
<h1>Setup dns with adblock and dot/doh with pi-hole and unbound</h1>
|
||||
|
||||
<p>Just another day I seted up my own private dns server that has adblocking ( and other stuff ) using pihole and uses unbound as a resolver. To safelly connect to the dns server I’m using DNS over HTTPS for my browser’s and HTTPS over TLS for stuffy for my whole desktop and private dns in android ( Android has DoH support but only for google and cloudflare right now). Let’s get on to setting everything up</p>
|
||||
<!-- raw HTML omitted -->
|
||||
<h2 id="1-pihole">1. Pihole</h2>
|
||||
<p>Let’s start with setting up pihole. I will be installing it with their script on a debian system for easier unbound integration ( unbound doesn’t have an official docker container ).</p>
|
||||
<p>I recommend to read up on the pihole’s docs on exactly how to install it since pihole get’s frequent updates. <a href="https://docs.pi-hole.net/main/basic-install/">DOCS</a></p>
|
||||
<p>I recommend you to install the admin page for easier managmenet and ability to change the upstream dns server ( needed for changing it to unbound later on ). To be able to access the admin page I use an nginx configuration like this one.</p>
|
||||
<div class="highlight"><pre tabindex="0" style="color:#ef9f76;background-color:#303446;-moz-tab-size:4;-o-tab-size:4;tab-size:4;"><code class="language-nginx" data-lang="nginx"><span style="display:flex;"><span><span style="color:#ca9ee6">server</span> <span style="color:#c6d0f5">{</span>
|
||||
</span></span><span style="display:flex;"><span> <span style="color:#ca9ee6">server_name</span> <span style="color:#a6d189">example.com</span> <span style="color:#c6d0f5">;</span>
|
||||
</span></span><span style="display:flex;"><span>
|
||||
</span></span><span style="display:flex;"><span> <span style="color:#ca9ee6">location</span> <span style="color:#a6d189">/</span> <span style="color:#c6d0f5">{</span>
|
||||
</span></span><span style="display:flex;"><span> <span style="color:#ca9ee6">return</span> 403<span style="color:#c6d0f5">;</span>
|
||||
</span></span><span style="display:flex;"><span> <span style="color:#c6d0f5">}</span>
|
||||
</span></span><span style="display:flex;"><span>
|
||||
</span></span><span style="display:flex;"><span> <span style="color:#ca9ee6">location</span> <span style="color:#a6d189">/admin</span> <span style="color:#c6d0f5">{</span>
|
||||
</span></span><span style="display:flex;"><span> <span style="color:#ca9ee6">proxy_pass</span> <span style="color:#a6d189">http://127.0.0.1:8185/admin</span><span style="color:#c6d0f5">;</span>
|
||||
</span></span><span style="display:flex;"><span> <span style="color:#ca9ee6">proxy_set_header</span> <span style="color:#a6d189">Host</span> <span style="color:#babbf1">$host</span><span style="color:#c6d0f5">;</span>
|
||||
</span></span><span style="display:flex;"><span> <span style="color:#c6d0f5">}</span>
|
||||
</span></span><span style="display:flex;"><span>
|
||||
</span></span><span style="display:flex;"><span> <span style="color:#626880;font-style:italic"># If you want to log user activity, comment these
|
||||
</span></span></span><span style="display:flex;"><span><span style="color:#626880;font-style:italic"></span> <span style="color:#ca9ee6">access_log</span> <span style="color:#a6d189">/dev/null</span><span style="color:#c6d0f5">;</span>
|
||||
</span></span><span style="display:flex;"><span> <span style="color:#ca9ee6">error_log</span> <span style="color:#a6d189">/dev/null</span><span style="color:#c6d0f5">;</span>
|
||||
</span></span><span style="display:flex;"><span>
|
||||
</span></span><span style="display:flex;"><span> <span style="color:#ca9ee6">listen</span> <span style="color:#a6d189">[::]:443</span> <span style="color:#a6d189">ssl</span><span style="color:#c6d0f5">;</span> <span style="color:#626880;font-style:italic"># managed by Certbot
|
||||
</span></span></span><span style="display:flex;"><span><span style="color:#626880;font-style:italic"></span> <span style="color:#ca9ee6">listen</span> 443 <span style="color:#a6d189">ssl</span><span style="color:#c6d0f5">;</span> <span style="color:#626880;font-style:italic"># managed by Certbot
|
||||
</span></span></span><span style="display:flex;"><span><span style="color:#626880;font-style:italic"></span> <span style="color:#ca9ee6">ssl_certificate</span> <span style="color:#a6d189">/etc/letsencrypt/live/example.com/fullchain.pem</span><span style="color:#c6d0f5">;</span> <span style="color:#626880;font-style:italic"># managed by Certbot
|
||||
</span></span></span><span style="display:flex;"><span><span style="color:#626880;font-style:italic"></span> <span style="color:#ca9ee6">ssl_certificate_key</span> <span style="color:#a6d189">/etc/letsencrypt/live/example.com/privkey.pem</span><span style="color:#c6d0f5">;</span> <span style="color:#626880;font-style:italic"># managed by Certbot
|
||||
</span></span></span><span style="display:flex;"><span><span style="color:#626880;font-style:italic"></span> <span style="color:#ca9ee6">include</span> <span style="color:#a6d189">/etc/letsencrypt/options-ssl-nginx.conf</span><span style="color:#c6d0f5">;</span> <span style="color:#626880;font-style:italic"># managed by Certbot
|
||||
</span></span></span><span style="display:flex;"><span><span style="color:#626880;font-style:italic"></span> <span style="color:#ca9ee6">ssl_dhparam</span> <span style="color:#a6d189">/etc/letsencrypt/ssl-dhparams.pem</span><span style="color:#c6d0f5">;</span> <span style="color:#626880;font-style:italic"># managed by Certbot
|
||||
</span></span></span><span style="display:flex;"><span><span style="color:#626880;font-style:italic"></span><span style="color:#c6d0f5">}</span>
|
||||
</span></span><span style="display:flex;"><span><span style="color:#ca9ee6">server</span> <span style="color:#c6d0f5">{</span>
|
||||
</span></span><span style="display:flex;"><span> <span style="color:#ca9ee6">if</span> <span style="color:#a6d189">(</span><span style="color:#babbf1">$host</span> <span style="color:#c6d0f5">=</span> <span style="color:#a6d189">example.com)</span> <span style="color:#c6d0f5">{</span>
|
||||
</span></span><span style="display:flex;"><span> <span style="color:#ca9ee6">return</span> 301 <span style="color:#a6d189">https://</span><span style="color:#babbf1">$host$request_uri</span><span style="color:#c6d0f5">;</span>
|
||||
</span></span><span style="display:flex;"><span> <span style="color:#c6d0f5">}</span> <span style="color:#626880;font-style:italic"># managed by Certbot
|
||||
</span></span></span><span style="display:flex;"><span><span style="color:#626880;font-style:italic"></span>
|
||||
</span></span><span style="display:flex;"><span>
|
||||
</span></span><span style="display:flex;"><span> <span style="color:#ca9ee6">server_name</span> <span style="color:#a6d189">example.com</span> <span style="color:#c6d0f5">;</span>
|
||||
</span></span><span style="display:flex;"><span> <span style="color:#ca9ee6">listen</span> 80<span style="color:#c6d0f5">;</span>
|
||||
</span></span><span style="display:flex;"><span> <span style="color:#ca9ee6">listen</span> <span style="color:#a6d189">[::]:80</span><span style="color:#c6d0f5">;</span>
|
||||
</span></span><span style="display:flex;"><span> <span style="color:#ca9ee6">return</span> 404<span style="color:#c6d0f5">;</span> <span style="color:#626880;font-style:italic"># managed by Certbot
|
||||
</span></span></span><span style="display:flex;"><span><span style="color:#626880;font-style:italic"></span><span style="color:#c6d0f5">}</span>
|
||||
</span></span></code></pre></div><p>The main point of this config is the <code>/admin</code> location that you need to pass the lighttpd port to acces the website, you can just do it on your main website also.
|
||||
Also to make lighttpd work with nginx listening on port 80 you need to edit the <code>server.port</code> to port you wan’t to use in lighttpd config file located at <code>/etc/lighttpd/lighttpd.conf</code> and then just restart lighttpd</p>
|
||||
<h2 id="2-unbound">2. Unbound</h2>
|
||||
<p>For this part I will just link the pi-hole’s unbound documentation because it is the most correct one and updated as things change regulary.
|
||||
<a href="https://docs.pi-hole.net/guides/dns/unbound/">Pi-hole unbound docs</a></p>
|
||||
<h2 id="3-dns-over-tls">3. DNS over TLS</h2>
|
||||
<p>For dns over tls you need to first have a ssl certificate. I recommend on using certbot to generate one with this command <code>certbot --nginx -d dot.example.com</code>.</p>
|
||||
<p>Next you will need a reverse proxy, in my case I use nginx. You will need to add this configuration to your main nginx config located at <code>/etc/nginx/nginx.conf</code>. <strong>Make sure to add this outside of the http block and change example.com to your domain</strong></p>
|
||||
<div class="highlight"><pre tabindex="0" style="color:#ef9f76;background-color:#303446;-moz-tab-size:4;-o-tab-size:4;tab-size:4;"><code class="language-nginx" data-lang="nginx"><span style="display:flex;"><span><span style="color:#ca9ee6">stream</span> <span style="color:#c6d0f5">{</span>
|
||||
</span></span><span style="display:flex;"><span> <span style="color:#ca9ee6">log_format</span> <span style="color:#a6d189">basic</span> <span style="color:#a6d189">'</span><span style="color:#babbf1">$remote_addr</span> <span style="color:#a6d189">[</span><span style="color:#babbf1">$time_local]</span> <span style="color:#babbf1">$protocol</span> <span style="color:#babbf1">$status</span> <span style="color:#babbf1">$bytes_sent</span> <span style="color:#babbf1">$bytes_received</span> <span style="color:#babbf1">$session_time</span> <span style="color:#babbf1">$upstream_addr'</span><span style="color:#c6d0f5">;</span>
|
||||
</span></span><span style="display:flex;"><span>
|
||||
</span></span><span style="display:flex;"><span> <span style="color:#ca9ee6">upstream</span> <span style="color:#a6d189">dns</span>
|
||||
</span></span><span style="display:flex;"><span> <span style="color:#c6d0f5">{</span>
|
||||
</span></span><span style="display:flex;"><span> <span style="color:#ca9ee6">zone</span> <span style="color:#a6d189">dns</span> 64k<span style="color:#c6d0f5">;</span>
|
||||
</span></span><span style="display:flex;"><span> <span style="color:#ca9ee6">server</span> <span style="color:#babbf1">127.0.0.1</span><span style="color:#c6d0f5">:</span>53<span style="color:#c6d0f5">;</span>
|
||||
</span></span><span style="display:flex;"><span> <span style="color:#c6d0f5">}</span>
|
||||
</span></span><span style="display:flex;"><span>
|
||||
</span></span><span style="display:flex;"><span> <span style="color:#ca9ee6">server</span> <span style="color:#c6d0f5">{</span>
|
||||
</span></span><span style="display:flex;"><span> <span style="color:#ca9ee6">listen</span> 853 <span style="color:#a6d189">ssl</span><span style="color:#c6d0f5">;</span>
|
||||
</span></span><span style="display:flex;"><span>
|
||||
</span></span><span style="display:flex;"><span> <span style="color:#ca9ee6">access_log</span> <span style="color:#a6d189">/var/log/nginx/dot-access.log</span> <span style="color:#a6d189">basic</span><span style="color:#c6d0f5">;</span>
|
||||
</span></span><span style="display:flex;"><span> <span style="color:#ca9ee6">error_log</span> <span style="color:#a6d189">/var/log/nginx/dot-error.log</span><span style="color:#c6d0f5">;</span>
|
||||
</span></span><span style="display:flex;"><span>
|
||||
</span></span><span style="display:flex;"><span> <span style="color:#ca9ee6">ssl_certificate</span> <span style="color:#a6d189">/etc/letsencrypt/live/dot.example.com/fullchain.pem</span><span style="color:#c6d0f5">;</span>
|
||||
</span></span><span style="display:flex;"><span> <span style="color:#ca9ee6">ssl_certificate_key</span> <span style="color:#a6d189">/etc/letsencrypt/live/dot.example.com/privkey.pem</span><span style="color:#c6d0f5">;</span>
|
||||
</span></span><span style="display:flex;"><span>
|
||||
</span></span><span style="display:flex;"><span> <span style="color:#ca9ee6">ssl_protocols</span> <span style="color:#a6d189">TLSv1.2</span> <span style="color:#a6d189">TLSv1.3</span><span style="color:#c6d0f5">;</span>
|
||||
</span></span><span style="display:flex;"><span> <span style="color:#ca9ee6">ssl_ciphers</span> <span style="color:#a6d189">HIGH:!aNULL:!MD5</span><span style="color:#c6d0f5">;</span>
|
||||
</span></span><span style="display:flex;"><span>
|
||||
</span></span><span style="display:flex;"><span> <span style="color:#ca9ee6">ssl_handshake_timeout</span> <span style="color:#a6d189">10s</span><span style="color:#c6d0f5">;</span>
|
||||
</span></span><span style="display:flex;"><span> <span style="color:#ca9ee6">ssl_session_cache</span> <span style="color:#a6d189">shared:SSL:20m</span><span style="color:#c6d0f5">;</span>
|
||||
</span></span><span style="display:flex;"><span> <span style="color:#ca9ee6">ssl_session_timeout</span> <span style="color:#a6d189">4h</span><span style="color:#c6d0f5">;</span>
|
||||
</span></span><span style="display:flex;"><span> <span style="color:#ca9ee6">proxy_pass</span> <span style="color:#a6d189">dns</span><span style="color:#c6d0f5">;</span>
|
||||
</span></span><span style="display:flex;"><span> <span style="color:#ca9ee6">proxy_responses</span> 1<span style="color:#c6d0f5">;</span>
|
||||
</span></span><span style="display:flex;"><span> <span style="color:#ca9ee6">proxy_timeout</span> <span style="color:#a6d189">1s</span><span style="color:#c6d0f5">;</span>
|
||||
</span></span><span style="display:flex;"><span> <span style="color:#c6d0f5">}</span>
|
||||
</span></span><span style="display:flex;"><span><span style="color:#c6d0f5">}</span>
|
||||
</span></span></code></pre></div><p>Also make sure to enable port 853, example ufw command is <code>ufw allow 853/tcp</code>. Then restart nginx, to test if this configuration is working you can use your android phone by setting the private dns address to <code>dot.example.com</code> and then visit the website<a href="https://dnsleaktest.com">dnsleaktest</a></p>
|
||||
<h2 id="4-dns-over-https">4. DNS over HTTPS</h2>
|
||||
<p>For using dns over https we will be installing additional package called dnsdinst. On debian systems just run <code>apt install dnsdinst</code>. Next you will need to setup dnsdinst config and restart it. Make sure to change example.com.</p>
|
||||
<div class="highlight"><pre tabindex="0" style="color:#ef9f76;background-color:#303446;-moz-tab-size:4;-o-tab-size:4;tab-size:4;"><code class="language-conf" data-lang="conf"><span style="display:flex;"><span><span style="color:#babbf1">--</span> <span style="color:#babbf1">dnsdist</span> <span style="color:#babbf1">configuration</span> <span style="color:#babbf1">file</span><span style="color:#c6d0f5">,</span> <span style="color:#babbf1">an</span> <span style="color:#babbf1">example</span> <span style="color:#babbf1">can</span> <span style="color:#babbf1">be</span> <span style="color:#babbf1">found</span> <span style="color:#babbf1">in</span> <span style="color:#e78284">/</span><span style="color:#babbf1">usr</span><span style="color:#e78284">/</span><span style="color:#babbf1">share</span><span style="color:#e78284">/</span><span style="color:#babbf1">doc</span><span style="color:#e78284">/</span><span style="color:#babbf1">dnsdist</span><span style="color:#e78284">/</span><span style="color:#babbf1">examples</span><span style="color:#e78284">/</span>
|
||||
</span></span><span style="display:flex;"><span>
|
||||
</span></span><span style="display:flex;"><span><span style="color:#babbf1">--</span> <span style="color:#babbf1">disable</span> <span style="color:#babbf1">security</span> <span style="color:#babbf1">status</span> <span style="color:#babbf1">polling</span> <span style="color:#babbf1">via</span> <span style="color:#babbf1">DNS</span>
|
||||
</span></span><span style="display:flex;"><span><span style="color:#99d1db">setSecurityPollSuffix</span><span style="color:#c6d0f5">(</span><span style="color:#a6d189">""</span><span style="color:#c6d0f5">)</span>
|
||||
</span></span><span style="display:flex;"><span>
|
||||
</span></span><span style="display:flex;"><span><span style="color:#babbf1">--</span> <span style="color:#babbf1">fix</span> <span style="color:#babbf1">up</span> <span style="color:#babbf1">possibly</span> <span style="color:#babbf1">badly</span> <span style="color:#babbf1">truncated</span> <span style="color:#babbf1">answers</span> <span style="color:#babbf1">from</span> <span style="color:#babbf1">pdns</span> <span style="color:#babbf1">2.9.22</span>
|
||||
</span></span><span style="display:flex;"><span><span style="color:#babbf1">--</span> <span style="color:#99d1db">truncateTC</span><span style="color:#c6d0f5">(</span><span style="color:#ca9ee6;font-style:italic">true</span><span style="color:#c6d0f5">)</span>
|
||||
</span></span><span style="display:flex;"><span>
|
||||
</span></span><span style="display:flex;"><span><span style="color:#babbf1">--</span> <span style="color:#babbf1">Answer</span> <span style="color:#babbf1">to</span> <span style="color:#babbf1">only</span> <span style="color:#babbf1">clients</span> <span style="color:#babbf1">from</span> <span style="color:#babbf1">this</span> <span style="color:#e5c890">subnet</span>
|
||||
</span></span><span style="display:flex;"><span><span style="color:#99d1db">setACL</span><span style="color:#c6d0f5">(</span><span style="color:#a6d189">"127.0.0.1/8"</span><span style="color:#c6d0f5">)</span>
|
||||
</span></span><span style="display:flex;"><span>
|
||||
</span></span><span style="display:flex;"><span><span style="color:#babbf1">--</span> <span style="color:#babbf1">Define</span> <span style="color:#babbf1">upstream</span> <span style="color:#babbf1">DNS</span> <span style="color:#99d1db">server</span> <span style="color:#c6d0f5">(</span><span style="color:#babbf1">Pi-hole</span><span style="color:#c6d0f5">)</span>
|
||||
</span></span><span style="display:flex;"><span><span style="color:#99d1db">newServer</span><span style="color:#c6d0f5">({</span><span style="color:#babbf1">address</span><span style="color:#99d1db">=</span><span style="color:#a6d189">"127.0.0.1"</span><span style="color:#c6d0f5">,</span> <span style="color:#babbf1">name</span><span style="color:#99d1db">=</span><span style="color:#a6d189">"Pi-hole"</span><span style="color:#c6d0f5">,</span> <span style="color:#babbf1">checkName</span><span style="color:#99d1db">=</span><span style="color:#a6d189">"example.com"</span><span style="color:#c6d0f5">,</span> <span style="color:#babbf1">checkInterval</span><span style="color:#99d1db">=</span><span style="color:#babbf1">60</span><span style="color:#c6d0f5">,</span> <span style="color:#babbf1">mustResolve</span><span style="color:#99d1db">=</span><span style="color:#ca9ee6;font-style:italic">true</span><span style="color:#c6d0f5">})</span>
|
||||
</span></span><span style="display:flex;"><span>
|
||||
</span></span><span style="display:flex;"><span><span style="color:#babbf1">--</span> <span style="color:#babbf1">Create</span> <span style="color:#babbf1">local</span> <span style="color:#babbf1">DOH</span> <span style="color:#babbf1">server</span> <span style="color:#babbf1">listener</span> <span style="color:#babbf1">in</span> <span style="color:#babbf1">DNS</span> <span style="color:#babbf1">over</span> <span style="color:#babbf1">HTTP</span> <span style="color:#babbf1">mode</span><span style="color:#c6d0f5">,</span> <span style="color:#babbf1">otherwise</span> <span style="color:#babbf1">the</span> <span style="color:#babbf1">information</span> <span style="color:#babbf1">coming</span> <span style="color:#babbf1">from</span> <span style="color:#babbf1">nginx</span> <span style="color:#babbf1">won</span><span style="color:#e78284">'</span><span style="color:#babbf1">t</span> <span style="color:#babbf1">be</span> <span style="color:#babbf1">processed</span> <span style="color:#babbf1">well</span>
|
||||
</span></span><span style="display:flex;"><span><span style="color:#99d1db">addDOHLocal</span><span style="color:#c6d0f5">(</span><span style="color:#a6d189">"127.0.0.1:5300"</span><span style="color:#c6d0f5">,</span> <span style="color:#babbf1">nil</span><span style="color:#c6d0f5">,</span> <span style="color:#babbf1">nil</span><span style="color:#c6d0f5">,</span> <span style="color:#a6d189">"/dns-query"</span><span style="color:#c6d0f5">,</span> <span style="color:#c6d0f5">{</span> <span style="color:#babbf1">reusePort</span><span style="color:#99d1db">=</span><span style="color:#ca9ee6;font-style:italic">true</span> <span style="color:#c6d0f5">})</span>
|
||||
</span></span></code></pre></div><p>Next we will need another ssl certificate for the doh domain, for that we will once again using certbot with this command <code>certbot --nginx -d doh.example.com</code>after that add this configuratin to nginx either in sites-available and linking it to sites enabled or in http block in main nginx configuration.</p>
|
||||
<div class="highlight"><pre tabindex="0" style="color:#ef9f76;background-color:#303446;-moz-tab-size:4;-o-tab-size:4;tab-size:4;"><code class="language-nginx" data-lang="nginx"><span style="display:flex;"><span><span style="color:#626880;font-style:italic"># Proxy Cache storage - so we can cache the DoH response from the upstream
|
||||
</span></span></span><span style="display:flex;"><span><span style="color:#626880;font-style:italic"></span><span style="color:#ca9ee6">proxy_cache_path</span> <span style="color:#a6d189">/var/run/doh_cache</span> <span style="color:#a6d189">levels=1:2</span> <span style="color:#a6d189">keys_zone=doh_cache:10m</span><span style="color:#c6d0f5">;</span>
|
||||
</span></span><span style="display:flex;"><span>
|
||||
</span></span><span style="display:flex;"><span><span style="color:#ca9ee6">server</span> <span style="color:#c6d0f5">{</span>
|
||||
</span></span><span style="display:flex;"><span> <span style="color:#ca9ee6">listen</span> 80<span style="color:#c6d0f5">;</span>
|
||||
</span></span><span style="display:flex;"><span> <span style="color:#ca9ee6">server_name</span> <span style="color:#a6d189">doh.example.com</span><span style="color:#c6d0f5">;</span>
|
||||
</span></span><span style="display:flex;"><span> <span style="color:#ca9ee6">return</span> 301 <span style="color:#a6d189">https://doh.example.com/</span><span style="color:#babbf1">$request_uri</span><span style="color:#c6d0f5">;</span>
|
||||
</span></span><span style="display:flex;"><span><span style="color:#c6d0f5">}</span>
|
||||
</span></span><span style="display:flex;"><span>
|
||||
</span></span><span style="display:flex;"><span><span style="color:#626880;font-style:italic"># This virtual server accepts HTTP/2 over HTTPS
|
||||
</span></span></span><span style="display:flex;"><span><span style="color:#626880;font-style:italic"></span><span style="color:#ca9ee6">server</span> <span style="color:#c6d0f5">{</span>
|
||||
</span></span><span style="display:flex;"><span> <span style="color:#ca9ee6">listen</span> 443 <span style="color:#a6d189">ssl</span> <span style="color:#a6d189">http2</span><span style="color:#c6d0f5">;</span>
|
||||
</span></span><span style="display:flex;"><span> <span style="color:#ca9ee6">server_name</span> <span style="color:#a6d189">doh.example.com</span><span style="color:#c6d0f5">;</span>
|
||||
</span></span><span style="display:flex;"><span>
|
||||
</span></span><span style="display:flex;"><span> <span style="color:#ca9ee6">access_log</span> <span style="color:#a6d189">/var/log/nginx/doh.access</span><span style="color:#c6d0f5">;</span>
|
||||
</span></span><span style="display:flex;"><span> <span style="color:#ca9ee6">error_log</span> <span style="color:#a6d189">/var/log/nginx/doh.error</span> <span style="color:#a6d189">error</span><span style="color:#c6d0f5">;</span>
|
||||
</span></span><span style="display:flex;"><span>
|
||||
</span></span><span style="display:flex;"><span> <span style="color:#ca9ee6">ssl_certificate</span> <span style="color:#a6d189">/etc/letsencrypt/live/doh.example.com/fullchain.pem</span><span style="color:#c6d0f5">;</span>
|
||||
</span></span><span style="display:flex;"><span> <span style="color:#ca9ee6">ssl_certificate_key</span> <span style="color:#a6d189">/etc/letsencrypt/live/doh.example.com/privkey.pem</span><span style="color:#c6d0f5">;</span>
|
||||
</span></span><span style="display:flex;"><span>
|
||||
</span></span><span style="display:flex;"><span>
|
||||
</span></span><span style="display:flex;"><span> <span style="color:#626880;font-style:italic"># DoH may use GET or POST requests, Cache both
|
||||
</span></span></span><span style="display:flex;"><span><span style="color:#626880;font-style:italic"></span> <span style="color:#ca9ee6">proxy_cache_methods</span> <span style="color:#a6d189">GET</span> <span style="color:#a6d189">POST</span><span style="color:#c6d0f5">;</span>
|
||||
</span></span><span style="display:flex;"><span>
|
||||
</span></span><span style="display:flex;"><span> <span style="color:#626880;font-style:italic"># Return 404 to all responses, except for those using our published DoH URI
|
||||
</span></span></span><span style="display:flex;"><span><span style="color:#626880;font-style:italic"></span> <span style="color:#ca9ee6">location</span> <span style="color:#a6d189">/</span> <span style="color:#c6d0f5">{</span>
|
||||
</span></span><span style="display:flex;"><span> <span style="color:#ca9ee6">try_files</span> <span style="color:#babbf1">$uri</span> <span style="color:#babbf1">$uri/</span> <span style="color:#c6d0f5">=</span>404<span style="color:#c6d0f5">;</span>
|
||||
</span></span><span style="display:flex;"><span> <span style="color:#c6d0f5">}</span>
|
||||
</span></span><span style="display:flex;"><span>
|
||||
</span></span><span style="display:flex;"><span> <span style="color:#ca9ee6">ssl_protocols</span> <span style="color:#a6d189">TLSv1.2</span> <span style="color:#a6d189">TLSv1.3</span><span style="color:#c6d0f5">;</span>
|
||||
</span></span><span style="display:flex;"><span> <span style="color:#ca9ee6">proxy_ssl_ciphers</span> <span style="color:#a6d189">HIGH:!aNULL:!MD5</span><span style="color:#c6d0f5">;</span>
|
||||
</span></span><span style="display:flex;"><span>
|
||||
</span></span><span style="display:flex;"><span> <span style="color:#626880;font-style:italic"># This is our published DoH URI
|
||||
</span></span></span><span style="display:flex;"><span><span style="color:#626880;font-style:italic"></span> <span style="color:#ca9ee6">location</span> <span style="color:#a6d189">/dns-query</span> <span style="color:#c6d0f5">{</span>
|
||||
</span></span><span style="display:flex;"><span> <span style="color:#626880;font-style:italic"># Proxy HTTP/1.1, clear the connection header to enable Keep-Alive
|
||||
</span></span></span><span style="display:flex;"><span><span style="color:#626880;font-style:italic"></span> <span style="color:#ca9ee6">proxy_http_version</span> 1<span style="color:#a6d189">.1</span><span style="color:#c6d0f5">;</span>
|
||||
</span></span><span style="display:flex;"><span> <span style="color:#ca9ee6">proxy_set_header</span> <span style="color:#a6d189">Connection</span> <span style="color:#a6d189">""</span><span style="color:#c6d0f5">;</span>
|
||||
</span></span><span style="display:flex;"><span>
|
||||
</span></span><span style="display:flex;"><span> <span style="color:#626880;font-style:italic"># Enable Cache, and set the cache_key to include the request_body
|
||||
</span></span></span><span style="display:flex;"><span><span style="color:#626880;font-style:italic"></span> <span style="color:#ca9ee6">proxy_cache</span> <span style="color:#a6d189">doh_cache</span><span style="color:#c6d0f5">;</span>
|
||||
</span></span><span style="display:flex;"><span> <span style="color:#ca9ee6">proxy_cache_key</span> <span style="color:#babbf1">$scheme$proxy_host$uri$is_args$args$request_body</span><span style="color:#c6d0f5">;</span>
|
||||
</span></span><span style="display:flex;"><span>
|
||||
</span></span><span style="display:flex;"><span> <span style="color:#626880;font-style:italic"># proxy pass to dnsdist
|
||||
</span></span></span><span style="display:flex;"><span><span style="color:#626880;font-style:italic"></span> <span style="color:#ca9ee6">proxy_pass</span> <span style="color:#a6d189">http://127.0.0.1:5300</span><span style="color:#c6d0f5">;</span>
|
||||
</span></span><span style="display:flex;"><span>
|
||||
</span></span><span style="display:flex;"><span> <span style="color:#626880;font-style:italic"># proxy pass address
|
||||
</span></span></span><span style="display:flex;"><span><span style="color:#626880;font-style:italic"></span> <span style="color:#ca9ee6">proxy_set_header</span> <span style="color:#a6d189">X-Forwarded-For</span> <span style="color:#babbf1">$proxy_add_x_forwarded_for</span><span style="color:#c6d0f5">;</span>
|
||||
</span></span><span style="display:flex;"><span> <span style="color:#c6d0f5">}</span>
|
||||
</span></span><span style="display:flex;"><span><span style="color:#c6d0f5">}</span>
|
||||
</span></span></code></pre></div><p>After restarting nginx with this configuration you can it to your web browser as a DNS over HTTPS resolver and once again checkout <a href="https://dnsleaktest.com">dnsleaktest</a> website and check if it is all working.</p>
|
||||
<p>Hope this has been helpfull and if anybody has any way on how to make this guied better you can open a pull request or make an issue on the website’s <a href="https://code.cronyakatsuki.xyz/crony/website">repo</a>.</p>
|
||||
|
||||
|
||||
</div>
|
||||
</main>
|
||||
<footer>
|
||||
<div id="links">
|
||||
<span><a href="https://code.cronyakatsuki.xyz">Code</a></span>
|
||||
<span>|</span>
|
||||
<span><a href="https://steamcommunity.com/id/CronyAkatsuki/">Steam</a></span>
|
||||
<span>|</span>
|
||||
<span><a href="https://osu.ppy.sh/users/18953565">Osu!</a></span>
|
||||
<span>|</span>
|
||||
<span><a href="https://anilist.co/user/CronyAkatsuki/">Anilist</a></span>
|
||||
<span>|</span>
|
||||
<span><a href="https://youtube.com/channel/UClFdlNlUipHG5Kit8GbFz5Q">Gaming Channel</a></span>
|
||||
</div>
|
||||
<div id="banners">
|
||||
<a rel="noreferrer" href="/" target="_blank"><img src="/88x31.png"
|
||||
alt="Me" title="Me" /></a>
|
||||
<a rel="noreferrer" href="https://kernel.org" target="_blank"><img src="https://cyber.dabamos.de/88x31/linux_powered.gif"
|
||||
alt="linux kernel" title="Best kernel in the world" /></a>
|
||||
<a rel="noreferrer" href="https://debian.org" target="_blank"><img src="https://cyber.dabamos.de/88x31/debian.gif"
|
||||
alt="debian" title="This website run's on debian" /></a>
|
||||
<a rel="noreferrer" href="https://bitwarden.com" target="_blank"><img src="https://cyber.dabamos.de/88x31/bitwarden.gif"
|
||||
alt="Bitwarden" title="Bitwarden/Vaultwarden for the win" /></a>
|
||||
<a rel="noreferrer" target="_blank"><img src="https://cyber.dabamos.de/88x31/free.gif"
|
||||
alt="foss" title="Foss is the way" /></a>
|
||||
<a rel="noreferrer" href="https://neovim.io" target="_blank"><img src="/assets/badges/neovim.gif"
|
||||
alt="Neovim" title="Written in neovim" /></a>
|
||||
<a rel="noreferrer" href="https://landchad.net" target="_blank"><img src="https://landchad.net/pix/landchad.gif"
|
||||
alt="LandChad" title="Get A Website!" /></a>
|
||||
<a rel="noreferrer" href="https://poggerer.xyz" target="_blank"><img src="https://poggerer.xyz/88x31.png"
|
||||
alt="Tulg" title="Tulg" /></a>
|
||||
<a rel="noreferrer" href="https://arthurmelton.com" target="_blank"><img src="https://arthurmelton.com/88x31.png"
|
||||
alt="AMTitan" title="AMTitan" /></a>
|
||||
<a rel="noreferrer" href="https://aadi.net.in" target="_blank"><img src="https://aadi.net.in/88x31.png"
|
||||
alt="Aadi" title="Aadi" /></a>
|
||||
<a rel="noreferrer" href="https://bear.oops.wtf/" target="_blank"><img src="https://bear.oops.wtf/download/88x31.png"
|
||||
alt="Bear" title="Bear" /></a>
|
||||
</div>
|
||||
</footer>
|
||||
|
||||
</body>
|
||||
|
||||
</html>
|
84
public/categories/index.html
Normal file
84
public/categories/index.html
Normal file
@ -0,0 +1,84 @@
|
||||
<!doctype html>
|
||||
<html lang="en">
|
||||
|
||||
<head>
|
||||
<meta charset="UTF-8" />
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1" />
|
||||
<link href="/css/style.css" rel="stylesheet" />
|
||||
|
||||
<title>Categories</title>
|
||||
<meta property="og:title" content="Categories" />
|
||||
<meta property="og:description" content="My shitty website" />
|
||||
<meta property="og:type" content="website" />
|
||||
<meta property="og:url" content="https://cronyakatsuki.xyz/categories/" /><meta property="og:site_name" content="Crony Akatsuki's Website" />
|
||||
|
||||
</head>
|
||||
|
||||
<body>
|
||||
<header>
|
||||
<h1>Crony Akatsuki</h1>
|
||||
<nav>
|
||||
<span><a href="/">Home</a></span>
|
||||
<span>|</span>
|
||||
<span><a href="/about">About</a></span>
|
||||
<span>|</span>
|
||||
<span><a href="/blog">Blog</a></span>
|
||||
<span>|</span>
|
||||
<span><a href="/services">Services</a></span>
|
||||
</nav>
|
||||
</header>
|
||||
|
||||
|
||||
<main>
|
||||
<div id="content">
|
||||
|
||||
<h1>Categories</h1>
|
||||
|
||||
|
||||
|
||||
<section class="list">
|
||||
|
||||
</section>
|
||||
</div>
|
||||
</main>
|
||||
<footer>
|
||||
<div id="links">
|
||||
<span><a href="https://code.cronyakatsuki.xyz">Code</a></span>
|
||||
<span>|</span>
|
||||
<span><a href="https://steamcommunity.com/id/CronyAkatsuki/">Steam</a></span>
|
||||
<span>|</span>
|
||||
<span><a href="https://osu.ppy.sh/users/18953565">Osu!</a></span>
|
||||
<span>|</span>
|
||||
<span><a href="https://anilist.co/user/CronyAkatsuki/">Anilist</a></span>
|
||||
<span>|</span>
|
||||
<span><a href="https://youtube.com/channel/UClFdlNlUipHG5Kit8GbFz5Q">Gaming Channel</a></span>
|
||||
</div>
|
||||
<div id="banners">
|
||||
<a rel="noreferrer" href="/" target="_blank"><img src="/88x31.png"
|
||||
alt="Me" title="Me" /></a>
|
||||
<a rel="noreferrer" href="https://kernel.org" target="_blank"><img src="https://cyber.dabamos.de/88x31/linux_powered.gif"
|
||||
alt="linux kernel" title="Best kernel in the world" /></a>
|
||||
<a rel="noreferrer" href="https://debian.org" target="_blank"><img src="https://cyber.dabamos.de/88x31/debian.gif"
|
||||
alt="debian" title="This website run's on debian" /></a>
|
||||
<a rel="noreferrer" href="https://bitwarden.com" target="_blank"><img src="https://cyber.dabamos.de/88x31/bitwarden.gif"
|
||||
alt="Bitwarden" title="Bitwarden/Vaultwarden for the win" /></a>
|
||||
<a rel="noreferrer" target="_blank"><img src="https://cyber.dabamos.de/88x31/free.gif"
|
||||
alt="foss" title="Foss is the way" /></a>
|
||||
<a rel="noreferrer" href="https://neovim.io" target="_blank"><img src="/assets/badges/neovim.gif"
|
||||
alt="Neovim" title="Written in neovim" /></a>
|
||||
<a rel="noreferrer" href="https://landchad.net" target="_blank"><img src="https://landchad.net/pix/landchad.gif"
|
||||
alt="LandChad" title="Get A Website!" /></a>
|
||||
<a rel="noreferrer" href="https://poggerer.xyz" target="_blank"><img src="https://poggerer.xyz/88x31.png"
|
||||
alt="Tulg" title="Tulg" /></a>
|
||||
<a rel="noreferrer" href="https://arthurmelton.com" target="_blank"><img src="https://arthurmelton.com/88x31.png"
|
||||
alt="AMTitan" title="AMTitan" /></a>
|
||||
<a rel="noreferrer" href="https://aadi.net.in" target="_blank"><img src="https://aadi.net.in/88x31.png"
|
||||
alt="Aadi" title="Aadi" /></a>
|
||||
<a rel="noreferrer" href="https://bear.oops.wtf/" target="_blank"><img src="https://bear.oops.wtf/download/88x31.png"
|
||||
alt="Bear" title="Bear" /></a>
|
||||
</div>
|
||||
</footer>
|
||||
|
||||
</body>
|
||||
|
||||
</html>
|
93
public/css/style.css
Normal file
93
public/css/style.css
Normal file
@ -0,0 +1,93 @@
|
||||
html {
|
||||
background: #303446;
|
||||
color: #c6d0f5;
|
||||
}
|
||||
|
||||
h1,
|
||||
h2,
|
||||
h3,
|
||||
h4,
|
||||
h5,
|
||||
h6 {
|
||||
color: #a5adce;
|
||||
}
|
||||
|
||||
header {
|
||||
border-bottom: 1px solid #51576d;
|
||||
padding-bottom: 5px;
|
||||
margin-left: auto;
|
||||
margin-right: auto;
|
||||
}
|
||||
|
||||
#content {
|
||||
max-width: 900px;
|
||||
margin-left: auto;
|
||||
margin-right: auto;
|
||||
padding-top: 2em;
|
||||
padding-bottom: 2em;
|
||||
}
|
||||
|
||||
a {
|
||||
text-decoration: none;
|
||||
padding: 5px;
|
||||
font-weight: bold;
|
||||
color: #f2d5cf;
|
||||
}
|
||||
|
||||
a:hover {
|
||||
text-decoration: underline;
|
||||
}
|
||||
|
||||
pre {
|
||||
font-size: 1am;
|
||||
padding: 10px;
|
||||
overflow-y: auto;
|
||||
border: #51576d 3px solid;
|
||||
border-radius: 1rem;
|
||||
}
|
||||
|
||||
p code {
|
||||
background: #51576d;
|
||||
border-radius: 5px;
|
||||
font-size: 120%;
|
||||
padding-left: 3px;
|
||||
padding-right: 3px;
|
||||
}
|
||||
|
||||
table, th, td {
|
||||
border-collapse: collapse;
|
||||
border: 1px solid #51576d;
|
||||
padding: 10px;
|
||||
}
|
||||
|
||||
tbody tr:nth-child(even) {
|
||||
background: #292c3c;
|
||||
}
|
||||
|
||||
footer {
|
||||
border-top: 1px solid #51576d;
|
||||
padding-bottom: 20px;
|
||||
}
|
||||
|
||||
#links {
|
||||
padding-top: 10px;
|
||||
}
|
||||
|
||||
#banners {
|
||||
padding-top: 10px;
|
||||
}
|
||||
|
||||
header, footer {
|
||||
text-align: center;
|
||||
}
|
||||
|
||||
blockquote {
|
||||
border-left: 5px solid #51576d;
|
||||
padding-left: 20px;
|
||||
}
|
||||
|
||||
#home {
|
||||
display: flex;
|
||||
flex-wrap: wrap;
|
||||
justify-content: center;
|
||||
}
|
BIN
public/favicon.ico
Normal file
BIN
public/favicon.ico
Normal file
Binary file not shown.
After Width: | Height: | Size: 1.1 KiB |
112
public/index.html
Normal file
112
public/index.html
Normal file
@ -0,0 +1,112 @@
|
||||
<!doctype html>
|
||||
<html lang="en">
|
||||
|
||||
<head>
|
||||
<meta name="generator" content="Hugo 0.118.2">
|
||||
<meta charset="UTF-8" />
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1" />
|
||||
<link href="/css/style.css" rel="stylesheet" />
|
||||
|
||||
<title>Crony Akatsuki's Website</title>
|
||||
<meta property="og:title" content="Crony Akatsuki's Website" />
|
||||
<meta property="og:description" content="My shitty website" />
|
||||
<meta property="og:type" content="website" />
|
||||
<meta property="og:url" content="https://cronyakatsuki.xyz/" /><meta property="og:site_name" content="Crony Akatsuki's Website" />
|
||||
|
||||
</head>
|
||||
|
||||
<body>
|
||||
<header>
|
||||
<h1>Crony Akatsuki</h1>
|
||||
<nav>
|
||||
<span><a href="/">Home</a></span>
|
||||
<span>|</span>
|
||||
<span><a href="/about">About</a></span>
|
||||
<span>|</span>
|
||||
<span><a href="/blog">Blog</a></span>
|
||||
<span>|</span>
|
||||
<span><a href="/services">Services</a></span>
|
||||
</nav>
|
||||
</header>
|
||||
|
||||
|
||||
<main>
|
||||
<div id="content">
|
||||
|
||||
<p>Hi I'm Crony Akatsuki. 20 y/o linux and foss enthusiaist.</p>
|
||||
<p>
|
||||
Love thinkering with my system. The fact I run gentoo on my main machine might
|
||||
also make you think I love suffering (Maybe I do?).
|
||||
</p>
|
||||
<p>
|
||||
I love making stupid little programs (mostly in python rn), create "gui's"
|
||||
with dmenu, and create a lot of bash scripts with sometimes no real use other
|
||||
than learning.
|
||||
</p>
|
||||
<p>
|
||||
I also love selfhosting a lot. This website and domain is also a home of a lot
|
||||
of other different frontends and opensource software and games I self host
|
||||
which you can check on my <a href="/services">services</a> page also
|
||||
accessible on the header ;)
|
||||
</p>
|
||||
<p>
|
||||
I use a vps for selfhosting using debian as the os. Almost all programs are
|
||||
hosted with docker (Glory to docker) while some rare programs that don't have
|
||||
an official docker image are hosted directly on the system. Like some of my
|
||||
personal projects like
|
||||
<a href="https://upfast.cronyakatsuki.xyz">Upfast</a>
|
||||
</p>
|
||||
<p>Currently learning about websockets, pentesting, ... for fun ( I never trully learn anything and just kill time )</p>
|
||||
<p>
|
||||
I'm an cli only person except when browsing the web or browsing the web, in
|
||||
which case I use librewolf ( I love privacy )
|
||||
</p>
|
||||
<p>
|
||||
NEOVIM THE ONLY EDITOR YOU NEED!!!!!!! ( Have to justify my personal couple
|
||||
thousand loc nvim
|
||||
<a href="https://code.cronyakatsuki.xyz/crony/nvim-conf">config</a>)
|
||||
</p>
|
||||
|
||||
</div>
|
||||
</main>
|
||||
<footer>
|
||||
<div id="links">
|
||||
<span><a href="https://code.cronyakatsuki.xyz">Code</a></span>
|
||||
<span>|</span>
|
||||
<span><a href="https://steamcommunity.com/id/CronyAkatsuki/">Steam</a></span>
|
||||
<span>|</span>
|
||||
<span><a href="https://osu.ppy.sh/users/18953565">Osu!</a></span>
|
||||
<span>|</span>
|
||||
<span><a href="https://anilist.co/user/CronyAkatsuki/">Anilist</a></span>
|
||||
<span>|</span>
|
||||
<span><a href="https://youtube.com/channel/UClFdlNlUipHG5Kit8GbFz5Q">Gaming Channel</a></span>
|
||||
</div>
|
||||
<div id="banners">
|
||||
<a rel="noreferrer" href="/" target="_blank"><img src="/88x31.png"
|
||||
alt="Me" title="Me" /></a>
|
||||
<a rel="noreferrer" href="https://kernel.org" target="_blank"><img src="https://cyber.dabamos.de/88x31/linux_powered.gif"
|
||||
alt="linux kernel" title="Best kernel in the world" /></a>
|
||||
<a rel="noreferrer" href="https://debian.org" target="_blank"><img src="https://cyber.dabamos.de/88x31/debian.gif"
|
||||
alt="debian" title="This website run's on debian" /></a>
|
||||
<a rel="noreferrer" href="https://bitwarden.com" target="_blank"><img src="https://cyber.dabamos.de/88x31/bitwarden.gif"
|
||||
alt="Bitwarden" title="Bitwarden/Vaultwarden for the win" /></a>
|
||||
<a rel="noreferrer" target="_blank"><img src="https://cyber.dabamos.de/88x31/free.gif"
|
||||
alt="foss" title="Foss is the way" /></a>
|
||||
<a rel="noreferrer" href="https://neovim.io" target="_blank"><img src="/assets/badges/neovim.gif"
|
||||
alt="Neovim" title="Written in neovim" /></a>
|
||||
<a rel="noreferrer" href="https://landchad.net" target="_blank"><img src="https://landchad.net/pix/landchad.gif"
|
||||
alt="LandChad" title="Get A Website!" /></a>
|
||||
<a rel="noreferrer" href="https://poggerer.xyz" target="_blank"><img src="https://poggerer.xyz/88x31.png"
|
||||
alt="Tulg" title="Tulg" /></a>
|
||||
<a rel="noreferrer" href="https://arthurmelton.com" target="_blank"><img src="https://arthurmelton.com/88x31.png"
|
||||
alt="AMTitan" title="AMTitan" /></a>
|
||||
<a rel="noreferrer" href="https://aadi.net.in" target="_blank"><img src="https://aadi.net.in/88x31.png"
|
||||
alt="Aadi" title="Aadi" /></a>
|
||||
<a rel="noreferrer" href="https://bear.oops.wtf/" target="_blank"><img src="https://bear.oops.wtf/download/88x31.png"
|
||||
alt="Bear" title="Bear" /></a>
|
||||
</div>
|
||||
</footer>
|
||||
|
||||
</body>
|
||||
|
||||
</html>
|
4
public/robots.txt
Normal file
4
public/robots.txt
Normal file
@ -0,0 +1,4 @@
|
||||
User-agent: *
|
||||
Disallow:
|
||||
Allow: /
|
||||
Sitemap: https://cronyakatsuki.xyz/sitemap.xml
|
210
public/services/index.html
Normal file
210
public/services/index.html
Normal file
@ -0,0 +1,210 @@
|
||||
<!doctype html>
|
||||
<html lang="en">
|
||||
|
||||
<head>
|
||||
<meta charset="UTF-8" />
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1" />
|
||||
<link href="/css/style.css" rel="stylesheet" />
|
||||
|
||||
<title>Services I host</title>
|
||||
<meta property="og:title" content="Services I host" />
|
||||
<meta property="og:description" content="All the different services I host" />
|
||||
<meta property="og:type" content="article" />
|
||||
<meta property="og:url" content="https://cronyakatsuki.xyz/services/" /><meta property="article:section" content="" />
|
||||
|
||||
<meta property="og:site_name" content="Crony Akatsuki's Website" />
|
||||
|
||||
</head>
|
||||
|
||||
<body>
|
||||
<header>
|
||||
<h1>Crony Akatsuki</h1>
|
||||
<nav>
|
||||
<span><a href="/">Home</a></span>
|
||||
<span>|</span>
|
||||
<span><a href="/about">About</a></span>
|
||||
<span>|</span>
|
||||
<span><a href="/blog">Blog</a></span>
|
||||
<span>|</span>
|
||||
<span><a href="/services">Services</a></span>
|
||||
</nav>
|
||||
</header>
|
||||
|
||||
|
||||
<main>
|
||||
<div id="content">
|
||||
|
||||
<h1>Services I host</h1>
|
||||
|
||||
<h3 id="game-servers-i-host">Game servers I host</h3>
|
||||
<table>
|
||||
<thead>
|
||||
<tr>
|
||||
<th style="text-align:left">Game</th>
|
||||
<th style="text-align:left">Description</th>
|
||||
<th style="text-align:left">Server Name</th>
|
||||
</tr>
|
||||
</thead>
|
||||
<tbody>
|
||||
<tr>
|
||||
<td style="text-align:left"><a href="https://xonotic.org/">Xonotic</a></td>
|
||||
<td style="text-align:left">Open source arena shooter</td>
|
||||
<td style="text-align:left">Dank Linux Users</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td style="text-align:left"><a href="https://supertuxkart.net/Main_Page">SuperTuxKart</a></td>
|
||||
<td style="text-align:left">Open source arcade racing game</td>
|
||||
<td style="text-align:left">Dank Linux Users</td>
|
||||
</tr>
|
||||
</tbody>
|
||||
</table>
|
||||
<h3 id="services-i-run-open-for-everybody">Services I run open for everybody</h3>
|
||||
<p>This here is a list of a services I host which are all mostly open source and are publicly available for everyone to use if they wan’t to.</p>
|
||||
<table>
|
||||
<thead>
|
||||
<tr>
|
||||
<th style="text-align:left">Service</th>
|
||||
<th style="text-align:left">Description</th>
|
||||
<th style="text-align:left">Source Code</th>
|
||||
</tr>
|
||||
</thead>
|
||||
<tbody>
|
||||
<tr>
|
||||
<td style="text-align:left"><a href="https://startpage.cronyakatsuki.xyz">Startpage</a></td>
|
||||
<td style="text-align:left">Very simple startpage that I created with html and css.</td>
|
||||
<td style="text-align:left"><a href="https://code.cronyakatsuki.xyz/crony/startpage">Gitea</a></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td style="text-align:left"><a href="https://upfast.cronyakatsuki.xyz">UpFast</a></td>
|
||||
<td style="text-align:left">Open source file sharing.</td>
|
||||
<td style="text-align:left"><a href="https://code.cronyakatsuki.xyz/crony/upfast">Gitea</a></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td style="text-align:left"><a href="https://searx.cronyakatsuki.xyz">SearXNG</a></td>
|
||||
<td style="text-align:left">Open source search engine.</td>
|
||||
<td style="text-align:left"><a href="https://github.com/searxng/searxng">Github</a></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td style="text-align:left"><a href="https://piped.cronyakatsuki.xyz">Piped</a></td>
|
||||
<td style="text-align:left">Open source YouTube frontend.</td>
|
||||
<td style="text-align:left"><a href="https://github.com/TeamPiped/Piped">Github</a></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td style="text-align:left"><a href="https://libreddit.cronyakatsuki.xyz">LibReddit</a></td>
|
||||
<td style="text-align:left">Open Source reddit frontend.</td>
|
||||
<td style="text-align:left"><a href="https://github.com/libreddit/libreddit">Github</a></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td style="text-align:left"><a href="https://proxytok.cronyakatsuki.xyz">ProxiTok</a></td>
|
||||
<td style="text-align:left">Open Source TikTok frontend.</td>
|
||||
<td style="text-align:left"><a href="https://github.com/pablouser1/ProxiTok">Github</a></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td style="text-align:left"><a href="https://nitter.cronyakatsuki.xyz">Nitter</a></td>
|
||||
<td style="text-align:left">Open source twitter frontend.</td>
|
||||
<td style="text-align:left"><a href="https://github.com/zedeus/nitter">Github</a></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td style="text-align:left"><a href="https://rimgo.cronyakatsuki.xyz">Rimgo</a></td>
|
||||
<td style="text-align:left">Open source imgur frontend.</td>
|
||||
<td style="text-align:left"><a href="https://codeberg.org/rimgo/rimgo">Codeberg</a></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td style="text-align:left"><a href="https://safetwitch.cronyakatsuki.xyz">SafeTwitch</a></td>
|
||||
<td style="text-align:left">Open source twitch frontend.</td>
|
||||
<td style="text-align:left"><a href="https://codeberg.org/dragongoose/safetwitch">Codeberg</a></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td style="text-align:left"><a href="https://hyperpipe.cronyakatsuki.xyz">HyperPipe</a></td>
|
||||
<td style="text-align:left">Open source youtube music frontend.</td>
|
||||
<td style="text-align:left"><a href="https://codeberg.org/Hyperpipe/Hyperpipe">Codeberg</a></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td style="text-align:left"><a href="https://scribe.cronyakatsuki.xyz">scribe</a></td>
|
||||
<td style="text-align:left">Open source medium frontend.</td>
|
||||
<td style="text-align:left"><a href="https://sr.ht/~edwardloveall/Scribe">Source Hut</a></td>
|
||||
</tr>
|
||||
</tbody>
|
||||
</table>
|
||||
<h3 id="services-i-might-allow-people-i-know-or-am-close-with-in">Services I might allow people I know or am close with in</h3>
|
||||
<table>
|
||||
<thead>
|
||||
<tr>
|
||||
<th style="text-align:left">Service</th>
|
||||
<th style="text-align:left">Description</th>
|
||||
<th style="text-align:left">Source Code</th>
|
||||
</tr>
|
||||
</thead>
|
||||
<tbody>
|
||||
<tr>
|
||||
<td style="text-align:left"><a href="https://feed.cronyakatsuki.xyz">MiniFlux</a></td>
|
||||
<td style="text-align:left">Open source feed reader.</td>
|
||||
<td style="text-align:left"><a href="https://github.com/miniflux/v2">Github</a></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td style="text-align:left"><a href="https://vault.cronyakatsuki.xyz">VaultWarden</a></td>
|
||||
<td style="text-align:left">Open source self hosted pasword manager.</td>
|
||||
<td style="text-align:left"><a href="https://github.com/dani-garcia/vaultwarden">Github</a></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td style="text-align:left"><a href="cronyakatsuki.xyz">xmpp</a></td>
|
||||
<td style="text-align:left">Open source messaging platform.</td>
|
||||
<td style="text-align:left"><a href="https://xmpp.org/">XMPP WebSite</a></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td style="text-align:left"><a href="https://nc.cronyakatsuki.xyz">nextcould</a></td>
|
||||
<td style="text-align:left">Open source google drive alternative.</td>
|
||||
<td style="text-align:left"><a href="https://github.com/nextcloud">Github</a></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td style="text-align:left"><a href="https://ntfy.cronyakatsuki.xyz">ntfy</a></td>
|
||||
<td style="text-align:left">Open source push notifications server.</td>
|
||||
<td style="text-align:left"><a href="https://github.com/binwiederhier/ntfy">Github</a></td>
|
||||
</tr>
|
||||
</tbody>
|
||||
</table>
|
||||
|
||||
|
||||
</div>
|
||||
</main>
|
||||
<footer>
|
||||
<div id="links">
|
||||
<span><a href="https://code.cronyakatsuki.xyz">Code</a></span>
|
||||
<span>|</span>
|
||||
<span><a href="https://steamcommunity.com/id/CronyAkatsuki/">Steam</a></span>
|
||||
<span>|</span>
|
||||
<span><a href="https://osu.ppy.sh/users/18953565">Osu!</a></span>
|
||||
<span>|</span>
|
||||
<span><a href="https://anilist.co/user/CronyAkatsuki/">Anilist</a></span>
|
||||
<span>|</span>
|
||||
<span><a href="https://youtube.com/channel/UClFdlNlUipHG5Kit8GbFz5Q">Gaming Channel</a></span>
|
||||
</div>
|
||||
<div id="banners">
|
||||
<a rel="noreferrer" href="/" target="_blank"><img src="/88x31.png"
|
||||
alt="Me" title="Me" /></a>
|
||||
<a rel="noreferrer" href="https://kernel.org" target="_blank"><img src="https://cyber.dabamos.de/88x31/linux_powered.gif"
|
||||
alt="linux kernel" title="Best kernel in the world" /></a>
|
||||
<a rel="noreferrer" href="https://debian.org" target="_blank"><img src="https://cyber.dabamos.de/88x31/debian.gif"
|
||||
alt="debian" title="This website run's on debian" /></a>
|
||||
<a rel="noreferrer" href="https://bitwarden.com" target="_blank"><img src="https://cyber.dabamos.de/88x31/bitwarden.gif"
|
||||
alt="Bitwarden" title="Bitwarden/Vaultwarden for the win" /></a>
|
||||
<a rel="noreferrer" target="_blank"><img src="https://cyber.dabamos.de/88x31/free.gif"
|
||||
alt="foss" title="Foss is the way" /></a>
|
||||
<a rel="noreferrer" href="https://neovim.io" target="_blank"><img src="/assets/badges/neovim.gif"
|
||||
alt="Neovim" title="Written in neovim" /></a>
|
||||
<a rel="noreferrer" href="https://landchad.net" target="_blank"><img src="https://landchad.net/pix/landchad.gif"
|
||||
alt="LandChad" title="Get A Website!" /></a>
|
||||
<a rel="noreferrer" href="https://poggerer.xyz" target="_blank"><img src="https://poggerer.xyz/88x31.png"
|
||||
alt="Tulg" title="Tulg" /></a>
|
||||
<a rel="noreferrer" href="https://arthurmelton.com" target="_blank"><img src="https://arthurmelton.com/88x31.png"
|
||||
alt="AMTitan" title="AMTitan" /></a>
|
||||
<a rel="noreferrer" href="https://aadi.net.in" target="_blank"><img src="https://aadi.net.in/88x31.png"
|
||||
alt="Aadi" title="Aadi" /></a>
|
||||
<a rel="noreferrer" href="https://bear.oops.wtf/" target="_blank"><img src="https://bear.oops.wtf/download/88x31.png"
|
||||
alt="Bear" title="Bear" /></a>
|
||||
</div>
|
||||
</footer>
|
||||
|
||||
</body>
|
||||
|
||||
</html>
|
28
public/sitemap.xml
Normal file
28
public/sitemap.xml
Normal file
@ -0,0 +1,28 @@
|
||||
<?xml version="1.0" encoding="utf-8" standalone="yes"?>
|
||||
<urlset xmlns="http://www.sitemaps.org/schemas/sitemap/0.9"
|
||||
xmlns:xhtml="http://www.w3.org/1999/xhtml">
|
||||
<url>
|
||||
<loc>https://cronyakatsuki.xyz/blog/</loc>
|
||||
<lastmod>2023-09-27T00:00:00+00:00</lastmod>
|
||||
</url><url>
|
||||
<loc>https://cronyakatsuki.xyz/</loc>
|
||||
<lastmod>2023-09-27T00:00:00+00:00</lastmod>
|
||||
</url><url>
|
||||
<loc>https://cronyakatsuki.xyz/blog/setup-dns-pihole-unbound/</loc>
|
||||
<lastmod>2023-09-27T00:00:00+00:00</lastmod>
|
||||
</url><url>
|
||||
<loc>https://cronyakatsuki.xyz/blog/piped-video-not-loading/</loc>
|
||||
<lastmod>2023-02-26T00:00:00+00:00</lastmod>
|
||||
</url><url>
|
||||
<loc>https://cronyakatsuki.xyz/blog/miniflux-setup/</loc>
|
||||
<lastmod>2022-11-30T00:00:00+00:00</lastmod>
|
||||
</url><url>
|
||||
<loc>https://cronyakatsuki.xyz/categories/</loc>
|
||||
</url><url>
|
||||
<loc>https://cronyakatsuki.xyz/services/</loc>
|
||||
</url><url>
|
||||
<loc>https://cronyakatsuki.xyz/tags/</loc>
|
||||
</url><url>
|
||||
<loc>https://cronyakatsuki.xyz/about/</loc>
|
||||
</url>
|
||||
</urlset>
|
84
public/tags/index.html
Normal file
84
public/tags/index.html
Normal file
@ -0,0 +1,84 @@
|
||||
<!doctype html>
|
||||
<html lang="en">
|
||||
|
||||
<head>
|
||||
<meta charset="UTF-8" />
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1" />
|
||||
<link href="/css/style.css" rel="stylesheet" />
|
||||
|
||||
<title>Tags</title>
|
||||
<meta property="og:title" content="Tags" />
|
||||
<meta property="og:description" content="My shitty website" />
|
||||
<meta property="og:type" content="website" />
|
||||
<meta property="og:url" content="https://cronyakatsuki.xyz/tags/" /><meta property="og:site_name" content="Crony Akatsuki's Website" />
|
||||
|
||||
</head>
|
||||
|
||||
<body>
|
||||
<header>
|
||||
<h1>Crony Akatsuki</h1>
|
||||
<nav>
|
||||
<span><a href="/">Home</a></span>
|
||||
<span>|</span>
|
||||
<span><a href="/about">About</a></span>
|
||||
<span>|</span>
|
||||
<span><a href="/blog">Blog</a></span>
|
||||
<span>|</span>
|
||||
<span><a href="/services">Services</a></span>
|
||||
</nav>
|
||||
</header>
|
||||
|
||||
|
||||
<main>
|
||||
<div id="content">
|
||||
|
||||
<h1>Tags</h1>
|
||||
|
||||
|
||||
|
||||
<section class="list">
|
||||
|
||||
</section>
|
||||
</div>
|
||||
</main>
|
||||
<footer>
|
||||
<div id="links">
|
||||
<span><a href="https://code.cronyakatsuki.xyz">Code</a></span>
|
||||
<span>|</span>
|
||||
<span><a href="https://steamcommunity.com/id/CronyAkatsuki/">Steam</a></span>
|
||||
<span>|</span>
|
||||
<span><a href="https://osu.ppy.sh/users/18953565">Osu!</a></span>
|
||||
<span>|</span>
|
||||
<span><a href="https://anilist.co/user/CronyAkatsuki/">Anilist</a></span>
|
||||
<span>|</span>
|
||||
<span><a href="https://youtube.com/channel/UClFdlNlUipHG5Kit8GbFz5Q">Gaming Channel</a></span>
|
||||
</div>
|
||||
<div id="banners">
|
||||
<a rel="noreferrer" href="/" target="_blank"><img src="/88x31.png"
|
||||
alt="Me" title="Me" /></a>
|
||||
<a rel="noreferrer" href="https://kernel.org" target="_blank"><img src="https://cyber.dabamos.de/88x31/linux_powered.gif"
|
||||
alt="linux kernel" title="Best kernel in the world" /></a>
|
||||
<a rel="noreferrer" href="https://debian.org" target="_blank"><img src="https://cyber.dabamos.de/88x31/debian.gif"
|
||||
alt="debian" title="This website run's on debian" /></a>
|
||||
<a rel="noreferrer" href="https://bitwarden.com" target="_blank"><img src="https://cyber.dabamos.de/88x31/bitwarden.gif"
|
||||
alt="Bitwarden" title="Bitwarden/Vaultwarden for the win" /></a>
|
||||
<a rel="noreferrer" target="_blank"><img src="https://cyber.dabamos.de/88x31/free.gif"
|
||||
alt="foss" title="Foss is the way" /></a>
|
||||
<a rel="noreferrer" href="https://neovim.io" target="_blank"><img src="/assets/badges/neovim.gif"
|
||||
alt="Neovim" title="Written in neovim" /></a>
|
||||
<a rel="noreferrer" href="https://landchad.net" target="_blank"><img src="https://landchad.net/pix/landchad.gif"
|
||||
alt="LandChad" title="Get A Website!" /></a>
|
||||
<a rel="noreferrer" href="https://poggerer.xyz" target="_blank"><img src="https://poggerer.xyz/88x31.png"
|
||||
alt="Tulg" title="Tulg" /></a>
|
||||
<a rel="noreferrer" href="https://arthurmelton.com" target="_blank"><img src="https://arthurmelton.com/88x31.png"
|
||||
alt="AMTitan" title="AMTitan" /></a>
|
||||
<a rel="noreferrer" href="https://aadi.net.in" target="_blank"><img src="https://aadi.net.in/88x31.png"
|
||||
alt="Aadi" title="Aadi" /></a>
|
||||
<a rel="noreferrer" href="https://bear.oops.wtf/" target="_blank"><img src="https://bear.oops.wtf/download/88x31.png"
|
||||
alt="Bear" title="Bear" /></a>
|
||||
</div>
|
||||
</footer>
|
||||
|
||||
</body>
|
||||
|
||||
</html>
|
BIN
static/88x31.png
Normal file
BIN
static/88x31.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 3.7 KiB |
BIN
static/assets/badges/neovim.gif
Normal file
BIN
static/assets/badges/neovim.gif
Normal file
Binary file not shown.
After Width: | Height: | Size: 695 B |
93
static/css/style.css
Normal file
93
static/css/style.css
Normal file
@ -0,0 +1,93 @@
|
||||
html {
|
||||
background: #303446;
|
||||
color: #c6d0f5;
|
||||
}
|
||||
|
||||
h1,
|
||||
h2,
|
||||
h3,
|
||||
h4,
|
||||
h5,
|
||||
h6 {
|
||||
color: #a5adce;
|
||||
}
|
||||
|
||||
header {
|
||||
border-bottom: 1px solid #51576d;
|
||||
padding-bottom: 5px;
|
||||
margin-left: auto;
|
||||
margin-right: auto;
|
||||
}
|
||||
|
||||
#content {
|
||||
max-width: 900px;
|
||||
margin-left: auto;
|
||||
margin-right: auto;
|
||||
padding-top: 2em;
|
||||
padding-bottom: 2em;
|
||||
}
|
||||
|
||||
a {
|
||||
text-decoration: none;
|
||||
padding: 5px;
|
||||
font-weight: bold;
|
||||
color: #f2d5cf;
|
||||
}
|
||||
|
||||
a:hover {
|
||||
text-decoration: underline;
|
||||
}
|
||||
|
||||
pre {
|
||||
font-size: 1am;
|
||||
padding: 10px;
|
||||
overflow-y: auto;
|
||||
border: #51576d 3px solid;
|
||||
border-radius: 1rem;
|
||||
}
|
||||
|
||||
p code {
|
||||
background: #51576d;
|
||||
border-radius: 5px;
|
||||
font-size: 120%;
|
||||
padding-left: 3px;
|
||||
padding-right: 3px;
|
||||
}
|
||||
|
||||
table, th, td {
|
||||
border-collapse: collapse;
|
||||
border: 1px solid #51576d;
|
||||
padding: 10px;
|
||||
}
|
||||
|
||||
tbody tr:nth-child(even) {
|
||||
background: #292c3c;
|
||||
}
|
||||
|
||||
footer {
|
||||
border-top: 1px solid #51576d;
|
||||
padding-bottom: 20px;
|
||||
}
|
||||
|
||||
#links {
|
||||
padding-top: 10px;
|
||||
}
|
||||
|
||||
#banners {
|
||||
padding-top: 10px;
|
||||
}
|
||||
|
||||
header, footer {
|
||||
text-align: center;
|
||||
}
|
||||
|
||||
blockquote {
|
||||
border-left: 5px solid #51576d;
|
||||
padding-left: 20px;
|
||||
}
|
||||
|
||||
#home {
|
||||
display: flex;
|
||||
flex-wrap: wrap;
|
||||
justify-content: center;
|
||||
}
|
BIN
static/favicon.ico
Normal file
BIN
static/favicon.ico
Normal file
Binary file not shown.
After Width: | Height: | Size: 1.1 KiB |
4
static/robots.txt
Normal file
4
static/robots.txt
Normal file
@ -0,0 +1,4 @@
|
||||
User-agent: *
|
||||
Disallow:
|
||||
Allow: /
|
||||
Sitemap: https://cronyakatsuki.xyz/sitemap.xml
|
Loading…
Reference in New Issue
Block a user