Skip to content

Commit

Permalink
remove site not located in subdirectory
Browse files Browse the repository at this point in the history
  • Loading branch information
Jörn Guy Süß committed Aug 21, 2024
1 parent 77130c2 commit e86adae
Show file tree
Hide file tree
Showing 3,076 changed files with 173 additions and 4,616 deletions.
The diff you're trying to view is too large. We only load the first 3000 changed files.
12 changes: 12 additions & 0 deletions .asciidoctorconfig.adoc
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
// +++++++++++++++++++++++++++++++++++++++++++++++++++++++
// + Initial AsciiDoc editor configuration file - V1.0 +
// ++++++++++++++++++++++++++++++++++++++++++++++++++++++
//
// Did not find any configuration files, so creating this at project root level.
// If you do not like those files to be generated - you can turn it off inside Asciidoctor Editor preferences.
//
// You can define editor specific parts here.
// For example: with next line you could set imagesdir attribute to subfolder "images" relative to the folder where this config file is located.
// :imagesdir: {asciidoctorconfigdir}/images
//
// For more information please take a look at https://github.com/de-jcup/eclipse-asciidoctor-editor/wiki/Asciidoctor-configfiles
24 changes: 24 additions & 0 deletions .github/workflows/docker.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
# This workflow will build a .NET project
# For more information see: https://docs.github.com/en/actions/automating-builds-and-tests/building-and-testing-net

name: Build
run-name: ${{ github.actor }} is testing out GitHub Actions 🚀
on: [push]
jobs:
Explore-GitHub-Actions:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Build Docker Images
uses: philips-software/[email protected]
with:
dockerfile: .
image-name: ontoserver-website
tags: latest 0.1
push-branches: main develop
env:
REGISTRY_USERNAME: ${{ github.actor }}
REGISTRY_TOKEN: ${{ secrets.GITHUB_TOKEN }}
REGISTRY_URL: ghcr.io/aehrc
GITHUB_ORGANIZATION: aehrc
11 changes: 11 additions & 0 deletions .project
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
<?xml version="1.0" encoding="UTF-8"?>
<projectDescription>
<name>aehrc-ontoserver-website</name>
<comment></comment>
<projects>
</projects>
<buildSpec>
</buildSpec>
<natures>
</natures>
</projectDescription>
2 changes: 2 additions & 0 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
FROM nginx:alpine
COPY ./site /usr/share/nginx/html
78 changes: 78 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
@@ -1 +1,79 @@
# ontoserver-website


https://docs.simplystatic.com/article/72-how-to-use-the-debugging-mode

https://www.docker.com/blog/how-to-use-the-official-nginx-docker-image/

https://learn.microsoft.com/en-us/azure/container-instances/container-instances-github-action


Some updates:

New SimplyStatic version installed: Ontoserver › Plugin Installation — WordPress (csiro.au) https://ontoserver-wp.csiro.au/wp-admin/plugin-install.php?fs_allow_updater_and_dialog=true&tab=plugin-information&plugin=simply-static-pro&section=changelog&TB_iframe=true&width=600&height=800#section-changelog
SimplyStatic says missing PDF files due to user error: ⁠Including pdf files | WordPress.org https://wordpress.org/support/topic/including-pdf-files/#post-17964816


https://make.wordpress.org/cli/handbook/guides/running-commands-remotely/

https://docs.simplystatic.com/article/51-working-with-wp-cli

https://www.html-tidy.org/

https://github.com/htacg/tidy-html5

https://github.com/validator/validator


```
Enter your Webhook URL here and Simply Static will send a POST request after all files are commited to GitHub.
```

http://www.btellez.com/posts/triggering-github-actions-with-webhooks.html


```
curl -X POST https://api.github.com/repos/:owner/:repo/dispatches \
-H 'Accept: application/vnd.github.everest-preview+json' \
-H 'Authorization: token $TOKEN' \
--data '{"event_type": "$CUSTOM_ACTION_NAME"}'
```

Use latin for encoding

-latin1
use ISO-8859-1 for both input and output

```
[2024-08-12 02:51:36] [class-ss-url-fetcher.php:119] http_status_code: 301 | content_type: text/html; charset=iso-8859-1
```


Deployment:
https://learn.microsoft.com/en-us/azure/frontdoor/scenario-storage-blobs
https://learn.microsoft.com/en-us/azure/frontdoor/private-link
https://github.com/Azure/terraform/tree/master/quickstart/101-front-door-premium-storage-blobs-private-link

https://learn.microsoft.com/en-gb/azure/frontdoor/front-door-cdn-comparison

https://mikestephenson.me/2023/05/19/using-a-sas-token-from-frontdoor-to-storage/

https://medium.com/data-querying/azure-storage-sharing-access-leveraging-sas-tokens-so-that-your-users-dont-need-credentials-b4988abb0203

https://learn.microsoft.com/en-us/azure/frontdoor/rule-set-server-variables

Create a *stored access policy for a service SAS*. Stored access policies give you the option to *revoke permissions for a service SAS without having to regenerate the storage account keys*. Set the expiration on these very far in the future (or infinite) and make sure it's regularly updated to move it farther into the future. There is a limit of five stored access policies per container.

```
PS C:\Users\sue005> curl "https://ontoserverwebsite.blob.core.windows.net/ontoserverwebsite/index.html?sv=2023-01-03&st=2024-08-15T23%3A28%3A14Z&se=2024-08-16T23%3A28%3A14Z&sr=c&sp=rl&sig=Vwl4j7UG2YCxM0r9GKff2k2%2BWrt18lmpyZHMw5Eg2CM%3D"
```



```
$env:AZCOPY_CRED_TYPE = "Anonymous";
$env:AZCOPY_CONCURRENCY_VALUE = "AUTO";
./azcopy.exe copy "C:\Users\sue005\git\ontoserver-website-devops\site\*" "https://ontoserverwebsite.blob.core.windows.net/$web/?sv=2023-01-03&se=2024-09-19T02%3A20%3A46Z&sr=c&sp=rwl&sig=70cEu54VlmJ8WYVE3SPNxNjDzND54%2FoUAckUE%2BXUo1o%3D" --overwrite=prompt --from-to=LocalBlob --blob-type Detect --follow-symlinks --check-length=true --put-md5 --follow-symlinks --disable-auto-decoding=false --list-of-files "C:\Users\sue005\AppData\Local\Temp\stg-exp-azcopy-a73c11f6-3b43-46e2-8647-a7d31b497ad3.txt" --recursive --log-level=INFO;
$env:AZCOPY_CRED_TYPE = "";
$env:AZCOPY_CONCURRENCY_VALUE = "";
```
2 changes: 0 additions & 2 deletions about/index.html

This file was deleted.

7 changes: 7 additions & 0 deletions access.plantuml
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
@startdot
digraph x {
SS -> REV_PROXY [label="real"]
SS -> SITE [label="assume"]
REV_PROXY -> IMMUTABLE_CONTENT
}
@enddot
Loading

0 comments on commit e86adae

Please sign in to comment.