diff --git a/.editorconfig b/.editorconfig index efba341..eb7a474 100644 --- a/.editorconfig +++ b/.editorconfig @@ -10,6 +10,9 @@ insert_final_newline = true trim_trailing_whitespace = true indent_style = tab +[*.md] +trim_trailing_whitespace = false + [{*.js,*.yml,*.md,Gopkg.toml,package.json,*.html,Dockerfile.*,Dockerrun.*}] indent_style = space indent_size = 2 diff --git a/README.md b/README.md index e7657e2..7f1511c 100644 --- a/README.md +++ b/README.md @@ -1,10 +1,9 @@ # website [![CircleCI](https://circleci.com/gh/offen/website/tree/master.svg?style=svg)](https://circleci.com/gh/offen/website/tree/master) -[![Patreon](https://img.shields.io/static/v1.svg?label=patreon&message=donate&color=e85b46)](https://www.patreon.com/offen) > The www.offen.dev website -This repository contains the source code for the website, as well as the code needed for running and extending an instance of `offen/offen`. +This repository contains the source code for the website, as well as the code needed for running and extending an instance of `offen/offen` on the same domain. --- @@ -30,7 +29,7 @@ You can test your setup by starting the application: $ docker-compose up ``` -which should enable you to access the homepage at and use the `auditorium` at +which should enable you to access the homepage at and use the wrapped `auditorium` at ### License diff --git a/build/nginx.conf b/build/nginx.conf index 10b7d0e..63cf5fb 100644 --- a/build/nginx.conf +++ b/build/nginx.conf @@ -28,10 +28,15 @@ http { autoindex on; root /www/data; expires $expires; + proxy_hide_header Content-Security-Policy; add_header Content-Security-Policy $csp; + proxy_hide_header Strict-Transport-Security; add_header Strict-Transport-Security 'max-age=604800; includeSubDomains'; + proxy_hide_header Referrer-Policy; add_header Referrer-Policy 'origin-when-cross-origin'; + proxy_hide_header X-Content-Type-Options; add_header X-Content-Type-Options 'nosniff'; + proxy_hide_header X-XSS-Protection; add_header X-XSS-Protection '1; mode=block'; location /api/ { diff --git a/build/robots.txt.production b/build/robots.txt.production index 516627c..638f959 100644 --- a/build/robots.txt.production +++ b/build/robots.txt.production @@ -1,3 +1,4 @@ User-agent: * Disallow: /vault/ Disallow: /auditorium/ +Disallow: /legal-notice/ diff --git a/docker-compose.yml b/docker-compose.yml index f04a91a..5437a5c 100644 --- a/docker-compose.yml +++ b/docker-compose.yml @@ -18,11 +18,11 @@ services: - ./bootstrap.yml:/bootstrap.yml environment: POSTGRES_CONNECTION_STRING: postgres://postgres:develop@server_database:5432/postgres?sslmode=disable - PORT: 8080 DEVELOPMENT: '1' - COOKIE_EXCHANGE_SECRET: 3P+w6QetKO3Kn8h1YyRlCw== + PORT: 8080 + COOKIE_EXCHANGE_SECRET: 8jeKYbbnywoYIZznu4HffQ== EVENT_RETENTION_PERIOD: 4464h - ACCOUNT_USER_EMAIL_SALT: JuhbRA4lCdo8rt5qVdLpk3== + ACCOUNT_USER_EMAIL_SALT: eypctS7SVKM1Ureb61db5Q== SECURE_COOKIE: 'off' depends_on: - server_database diff --git a/homepage/content/pages/about.md b/homepage/content/pages/about.md index bf4d1f8..7d00d76 100644 --- a/homepage/content/pages/about.md +++ b/homepage/content/pages/about.md @@ -24,6 +24,4 @@ We are happy to work with [NLnet Foundation][nlnet-foundation]{: target="_blank" *Feel free to contact us with any kind of feedback.* From criticism and praise to contributions or support, everything is welcome. Get in touch. -[mail@offen.dev][mail@offen.dev] - -[mail@offen.dev]: mailto:mail@offen.dev +[hioffen@posteo.de](mailto:hioffen@posteo.de) [[GPG Key]](/theme/74B041E23DB29D552644CEB1B18C633D6967FE3F.asc){: target="_blank"} diff --git a/homepage/content/pages/legal-notice.md b/homepage/content/pages/legal-notice.md index 673c3a1..2630936 100644 --- a/homepage/content/pages/legal-notice.md +++ b/homepage/content/pages/legal-notice.md @@ -11,8 +11,8 @@ Torfstr. 22 13353 Berlin ### Contact Information -E-Mail: [mail@offen.dev](mailto:mail@offen.dev) -Internet address: [www.offen.dev](https://www.offen.dev/) +E-Mail: [hioffen@posteo.de](mailto:hioffen@posteo.de) +Internet address: [www.offen.dev](https://www.offen.dev/) ### Graphics and Image Sources NLNet Logo [https://nlnet.nl/logo/](https://nlnet.nl/logo/){: target="_blank"} diff --git a/homepage/pelicanconf.py b/homepage/pelicanconf.py index ffa8816..9cc5867 100644 --- a/homepage/pelicanconf.py +++ b/homepage/pelicanconf.py @@ -26,9 +26,6 @@ THEME = './theme' # Delete the output directory before generating new files. DELETE_OUTPUT_DIRECTORY = True -PLUGIN_PATHS = ['./plugins'] -PLUGINS = ['assets'] - # dont create following standard pages AUTHORS_SAVE_AS = None ARCHIVES_SAVE_AS = None @@ -38,8 +35,15 @@ TAGS_SAVE_AS = None # keep this for access to page variable DIRECT_TEMPLATES = [] +PLUGIN_PATHS = ['./plugins'] +PLUGINS = ['assets'] + + GITHUB_ORG = 'https://github.com/offen' -CONTACT_EMAIL = 'mail@offen.dev' -PATREON_URL = 'https://www.patreon.com/bePatron?u=21484999' +CONTACT_EMAIL = 'hioffen@posteo.de' +GPG_KEY_FILE = '74B041E23DB29D552644CEB1B18C633D6967FE3F.asc' +PATREON_URL = 'https://www.patreon.com/offen' +LINKEDIN_URL = 'https://www.linkedin.com/company/hioffen' +TWITTER_URL = 'https://twitter.com/hioffen' OFFEN_ACCOUNT_ID = '9b63c4d8-65c0-438c-9d30-cc4b01173393' diff --git a/homepage/theme/static/74B041E23DB29D552644CEB1B18C633D6967FE3F.asc b/homepage/theme/static/74B041E23DB29D552644CEB1B18C633D6967FE3F.asc new file mode 100644 index 0000000..9590c31 --- /dev/null +++ b/homepage/theme/static/74B041E23DB29D552644CEB1B18C633D6967FE3F.asc @@ -0,0 +1,41 @@ +-----BEGIN PGP PUBLIC KEY BLOCK----- + +mQGNBF2oXZUBDACuaVNyd/D9qsKS91p7K3vtud+6C97i8OYsGer+QojLAUwTDbWB ++iM+D11nte15rydBdayBt3PnCMp+tXqAudBgzmoezt7Kv8izBxg44BSg1Y5Bk6/i +Gw5rAJwp8FCx2om1KXxeRYjq51B9b/K485+m6Wp/DP7RtV0s0IXMGnU7bABKSOG2 +MZm7af/YuTORlI1Oa1VG72uk+ZI8EoqeGrKkJGUoWs0X7jQMsKSHls4AnSab6Ac6 +qf0mHBzn7kWhQPFIO7UIfFszv66QAyPWBMfCjp9nSih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+hDTM5/HpCkEOm02++3XGzZF9COh60jtRblm4drt48MxMscMonQeDrGbQZ +aZi0a2M2R5Q5uZYhrPBJi4QXglXNRWM6FpH9Q4OnzKO+vgQrFY3oDE4Gvqhbi1YL +PqeEJr66zwpukdKFPCTj0QjZoY4aaBOXEZNq+e0WfA6LEQkvGeoLA2Yjdqjn+oPa +YyxP3Z+2cQXFUYf8hZv97QuB7Mdg+plhFY0DsHggEj6zfFwpZO1+z2hqtQ0+E6iv +44ga4fJTQ6dru8f7m8YknuYLMUOr0Dkoq6e8VGda2IShmIGIXxSz1wjEqUAPVOY2 +CLGXTfqqEcatiXt4+xqwWKukxcakL7ol/TmfuMpiFVp/htA7SwARAQABiQG8BBgB +CgAmFiEEdLBB4j2ynVUmRM6xsYxjPWln/j8FAl2oXZUCGwwFCQPCZwAACgkQsYxj +PWln/j8hJgv/bgQ6VwAmJ5euP35liBx3jNRlB+qBQvtx7xGHtmhUB85gVR/1RUzn +JyQDj0QPk2xid991epBLQLm8moIhvb9NP9Noc0r8efnrVFrdQh8XAmmGsAmM1zg7 +xsIcNraC1otOCW02F5n5BKjYmksO1xNcFuy7wzmValyqr5G2EBIN/rUh1LBDjBwF +n0LYWynYhXNxmbcTIIXzYwVYEZ6XmKP4vRxQxZPx7E7g+WOxJDUFUx/FXE9w2ArM +DtDOYiloQkOYsMXXuC9QUXxJzEQyR3yPN1bvd+AsV5jNdHg9l0jCITkmPD2x/dFd +9YDBDZJLdg1NpNhz6wxJCy92cDuMTgoKGwBrx1KKASlFuth+PoxaZmq1CCEqafZ0 +awtrc/zwy3suPOJur9m3DyoF5VbnvLLSpvREq3gMuHWxyoJsJOgXWnr9+2piAkH/ +0PbupBsJSG6cO3dl46dHGpX/57zqHLKlaISQ8FV4HwvchgG1fBUcVUab8CNzkvoh +gt3fc6F0X6bR +=hB6m +-----END PGP PUBLIC KEY BLOCK----- diff --git a/homepage/theme/static/css/style.css b/homepage/theme/static/css/style.css index df1ba9e..0e95044 100644 --- a/homepage/theme/static/css/style.css +++ b/homepage/theme/static/css/style.css @@ -145,7 +145,7 @@ CARDS margin: 0 0 2px 0; } .footer-card:nth-child(1), -.footer-card:nth-child(2) { +.footer-card:nth-child(3) { margin: 0 0 20px 0; } /* Mobile Styles */ @@ -184,12 +184,13 @@ CARDS justify-content: space-between; } .footer-card:nth-child(1), - .footer-card:nth-child(2) { + .footer-card:nth-child(2), + .footer-card:nth-child(3) { flex-grow: 1; } - .footer-card:nth-child(3) { + .footer-card:nth-child(4) { text-align: right; - flex-grow: 10; + flex-grow: 8; } } diff --git a/homepage/theme/templates/base.html b/homepage/theme/templates/base.html index 7b64464..e83e59e 100644 --- a/homepage/theme/templates/base.html +++ b/homepage/theme/templates/base.html @@ -121,7 +121,8 @@ +