Browse Source

Merge branch 'master' into dev

pull/18/head
jahway603 1 year ago
parent
commit
534a2f4fc1
  1. 5
      advanced/creating-silent-dragon-msi-installer-for-windows-with-wixl.md
  2. 5
      advanced/cross-compile-silent-dragon-for-windows-with-mxe.md
  3. 20
      hush-lite-server.md

5
advanced/creating-silent-dragon-msi-installer-for-windows-with-wixl.md

@ -98,6 +98,11 @@ Below is a copy of the contents of the `SilentDragon-1.3.0.wxs` file Note that G
</Product>
</Wix>
```
## Upgrade notes for new versions/releases
(https://www.firegiant.com/wix/tutorial/upgrades-and-modularization/)
In order for new versions of the .msi to upgrade existing/older versions that may have been installed, the `Version` attribute needs to be incremented or changed to the new version and a new GUID for `Product` id needs to be generated (c8fae41c-889b-4621-b343-76491cd91b1c in above example).
## Build MSI file from WiX source file
```
wixl -v SilentDragon-1.3.0.wxs

5
advanced/cross-compile-silent-dragon-for-windows-with-mxe.md

@ -33,6 +33,7 @@ sudo apt-get install \
libc6-dev-i386 \
libgdk-pixbuf2.0-dev \
libltdl-dev \
libgl-dev \
libssl-dev \
libtool-bin \
libxml-parser-perl \
@ -42,7 +43,9 @@ sudo apt-get install \
p7zip-full \
patch \
perl \
python \
python3 \
python3-mako \
python3-pkg-resources \
ruby \
sed \
unzip \

20
hush-lite-server.md

@ -86,6 +86,26 @@ Install your preferred distro. In this example I am using a VPS running Ubuntu 2
# Replace your_host.net:9067 with the address and port of your gRPC server if using a custom port
grpc_pass grpc://your_host.net:9067;
}
# Originally posted by Duke in /hush/hush3/issues/102#issuecomment-1651
# Get the fuck off my lawn motherfuckerz
if ($request_method !~ ^(GET|HEAD|POST)$ ) { return 444; }
# fuck these bots
if ($http_user_agent ~* "Googlebot|YandexBot|bingbot|applebot|Mojeekbot|ICC-Crawler|SemrushBot|xforce-security.com|TestBot|MauiBot|CCBot|SummalyBot|PetalBot|BLEXBot|expanseinc.com|clark-crawler|AhrefsBot|mj12bot|YisouSpider|opensiteexplorer|seznambot|dataforseo|Adsbot|Neevabot") {
return 444;
}
location ~* .(display_errors|set_time_limit|allow_url_include.*disable_functions.*open_basedir|set_magic_quotes_runtime|webconfig.txt.php|file_put_contentssever_root|wlwmanifest) {
return 444;
}
location ~* ^/wp-content/.*$ {
return 444;
}
}
```

Loading…
Cancel
Save