Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Gitlab Changes #72

Open
wants to merge 173 commits into
base: development
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
173 commits
Select commit Hold shift + click to select a range
576cd52
Eth Denver Entry
Zaskoda Mar 28, 2022
4d4195c
Mint Task/Gas/Test Networks from GitHub PR #71
excalq Mar 29, 2022
b1519a9
Merge branch 'excalq/mint-names' into 'development'
excalq Mar 29, 2022
0b15473
VS Code: Project setting to set node_modules path
excalq Mar 29, 2022
385f4bc
Merge branch 'excalq/workspace-node-modules-setting' into 'development'
excalq Mar 29, 2022
b739381
Sets formatter to 120 char width, preserve type notation
excalq Mar 29, 2022
74309ac
Merge branch 'excalq/prettierrc' into 'development'
excalq Mar 29, 2022
f9873b1
name change
Zaskoda Mar 29, 2022
273b66e
Merge branch '17-rename-blockchain-to-evm' into 'development'
Zaskoda Mar 30, 2022
411216d
upgrading packages
Zaskoda Mar 30, 2022
701a340
Can mint new dice with random names generated by solidity
Zaskoda Mar 31, 2022
ad52673
Published contract address now stored in json file for client use
Zaskoda Apr 1, 2022
f23e6ce
D6 works with temp art
Zaskoda Apr 1, 2022
102eb67
D6 now has art, but no rare font
Zaskoda Apr 5, 2022
8a792d7
Better random dice generation
Zaskoda Apr 5, 2022
42cae52
Resolve "Dice Names From Library"
Zaskoda Apr 12, 2022
4e31dce
Merge branch '15-dice-names-from-library' into 'development'
Zaskoda Apr 12, 2022
c79d01a
Added rare font type for D6
Zaskoda Apr 12, 2022
c1f3c8e
Shadow Play
Zaskoda Apr 12, 2022
8105401
deleting junk
Zaskoda Apr 12, 2022
d65b3a5
more shadow play
Zaskoda Apr 12, 2022
904c860
moved dice
Zaskoda Apr 12, 2022
49796a7
better colors
Zaskoda Apr 12, 2022
c244179
Merge remote-tracking branch 'origin/development' into 9-add-bare-min…
Zaskoda Apr 13, 2022
98ba22f
Merge branch '9-add-bare-minimum-dice-types' into 'development'
Zaskoda Apr 13, 2022
885ae46
Dice names now shown.
Zaskoda Apr 15, 2022
19a3728
Big fix on rolling
Zaskoda Apr 15, 2022
5da1faf
Contracts now have version numbers.
Zaskoda Apr 19, 2022
b382834
Merge branch '18-add-dice-names-to-client' into 'development'
Zaskoda Apr 19, 2022
607f6dc
Merge branch '29-add-contract-versioning' into 'development'
Zaskoda Apr 19, 2022
0b59b20
Adds PHP generated D6 + Invalid Placeholder SVG
excalq Apr 20, 2022
ed9d004
Comment: Document path schema
excalq Apr 20, 2022
5ebd333
Minor cleanup
excalq Apr 20, 2022
a18c864
version #
Zaskoda Apr 20, 2022
5e1fde0
Dockerization
excalq Apr 20, 2022
c431095
Vite build configuration for Dockerization, Debug
excalq Apr 20, 2022
227eca9
fix bug with store
Zaskoda Apr 20, 2022
f3d4aa0
Reenable minification
excalq Apr 20, 2022
0ddeef4
Removes temporary d6-pasted.svg.php file
excalq Apr 20, 2022
0bb2ea4
Merge branch '22-added-d6-rendering-for-nfts' into 'development'
excalq Apr 20, 2022
07a85f2
Merge branch 'koda/fix-store-bug' into 'development'
Zaskoda Apr 20, 2022
af6d48a
Merge branch 'development' into 20-owner-admin-controls
Zaskoda Apr 20, 2022
c4d8e93
Merge remote-tracking branch 'origin/development' into 20-owner-admin…
Zaskoda Apr 20, 2022
86a00e8
Merge remote-tracking branch 'origin/development' into 31-kubernetes-…
excalq Apr 20, 2022
dd7f70f
Kubernetes configs
excalq Apr 20, 2022
918fe06
Adds k8s to README
excalq Apr 20, 2022
b08d274
K8s service
excalq Apr 20, 2022
889bfae
Missing word in README commands
excalq Apr 20, 2022
6322d63
Moves nginx.conf
excalq Apr 21, 2022
e72776b
Use better nginx.conf
excalq Apr 21, 2022
ba13b71
Merge branch '31-kubernetes-docker-polydice-client-website' into 'dev…
excalq Apr 21, 2022
6c57674
Readme merge conflict fix
excalq Apr 21, 2022
e7cc5fb
Using a subset of Waffle as test helpers
excalq Apr 21, 2022
31ae7f4
Bumps Memory limit on K8s
excalq Apr 21, 2022
8aefb4e
Refactor to remove unused NPM deps, especially Waffle
excalq Apr 21, 2022
8a4f339
uncommented test
excalq Apr 21, 2022
508f922
Dont log addresses for HH test runs
excalq Apr 21, 2022
86fcc7b
Merge branch '33-npm-dependencies-are-awful-death-to-waffle' into 'de…
excalq Apr 21, 2022
350715a
Merge branch 'excalq/dont-log-hhtestchain' into 'development'
excalq Apr 21, 2022
d40785f
Tests work with new mint methods.
Zaskoda Apr 21, 2022
c7fa897
Test coverage uses new minting methods
Zaskoda Apr 21, 2022
cd96f01
All new owner methods are in place
Zaskoda Apr 21, 2022
fb4631d
Client now works with contract updates.
Zaskoda Apr 21, 2022
dcc9617
Test coverage for price
Zaskoda Apr 21, 2022
6076581
Fix Nginx config, deployment will repull image
excalq Apr 21, 2022
3394094
Remove waffle
excalq Apr 21, 2022
feb39d7
fix merge conflict
excalq Apr 21, 2022
7ad2910
Replace published-addresses.json with 0.2 Mumbai
excalq Apr 21, 2022
ee0dc3d
Merge branch '20-owner-admin-controls' into 'development'
excalq Apr 21, 2022
f77b827
Fix Nginx config, deployment will repull image
excalq Apr 21, 2022
90e11a5
Remove waffle from hardhat.config.ts
excalq Apr 21, 2022
3432db5
Added verify-published task, put constructor args in lib/logDeploymen…
excalq Apr 21, 2022
cc8d392
Document deploy, verify in readme
excalq Apr 21, 2022
40cfb12
Published new 0.2 on Mumbai
excalq Apr 21, 2022
db9edbe
Merge branch 'excalq/fix-prod-redeploy-mumbai' into 'development'
excalq Apr 21, 2022
f280430
Merge branch 'excalq/verify-and-readme' into 'development'
excalq Apr 21, 2022
72ba546
Fixes Pixel font 8, 18
excalq Apr 22, 2022
3f4e4b9
Merge branch 'excalq/fix-eight-eighteen-pixel' into 'development'
excalq Apr 22, 2022
fb25fe2
Safer minting and keyboard controls.
Zaskoda Apr 22, 2022
04608d1
bug fixes
Zaskoda Apr 23, 2022
e1c614f
Doubling gas price
Zaskoda Apr 23, 2022
85aa417
Raising gas limit more
Zaskoda Apr 23, 2022
d89d197
Raising gas limit more
Zaskoda Apr 23, 2022
36fc37d
Merge branch 'koda/flight-changes' into 'development'
Zaskoda Apr 27, 2022
820ca9a
store updated to new data structure
Zaskoda Apr 27, 2022
98c6baa
Changes to dice storage work across project
Zaskoda Apr 27, 2022
2ea802e
missed a line
Zaskoda Apr 27, 2022
68cf94e
Merge branch '28-dice-data-struct-change' into 'development'
Zaskoda Apr 30, 2022
a909d57
Added about screen.
Zaskoda May 7, 2022
fd41d4f
added opensea shop button
Zaskoda May 7, 2022
4e6791b
added 'on account change' event to reload app
Zaskoda May 7, 2022
fe38bfd
Merge branch '21-add-credits-about-screen' into 'development'
Zaskoda May 7, 2022
b25d43e
can only buy if you can afford
Zaskoda May 7, 2022
a88adeb
Merge branch 'koda/button-bug-fix' into 'development'
Zaskoda May 7, 2022
d336ad2
price increase per buy
Zaskoda May 9, 2022
3e5ad97
incremental price
Zaskoda May 9, 2022
ffe8ae1
removed incremental price
Zaskoda May 10, 2022
082d35e
Better connection handling
Zaskoda May 10, 2022
4269f17
Much better everything.
Zaskoda May 10, 2022
4e103f6
bugfix
Zaskoda May 10, 2022
cf7141a
The bugs weren't real!
Zaskoda May 11, 2022
42e8f22
so much cleaner
Zaskoda May 11, 2022
ed4c334
now with custom alert boxes
Zaskoda May 11, 2022
03641be
Better placement
Zaskoda May 11, 2022
cfca25d
changed domain to polydice.app
Zaskoda May 11, 2022
eaef49c
Added new words, increased label size
Zaskoda May 14, 2022
70dbd85
Merge branch 'koda/incremental-prices' into 'development'
Zaskoda May 16, 2022
2ee451c
Additons to Wordlist for Dice Names
excalq May 17, 2022
8f65023
Fix spelling
excalq May 17, 2022
a92cf31
Merge branch 'excalq/wordlist-additions' into 'development'
excalq May 17, 2022
267c94d
Added new domain name to IngresRoute
excalq May 18, 2022
b669cee
Merge branch 'excalq/polydice.app' into 'development'
Zaskoda May 18, 2022
549ac40
Deployed to Polygon Mainnet
Zaskoda May 18, 2022
a053308
Updated URL for OpenSea
Zaskoda May 19, 2022
83c8bab
Updated urls to polydice.app
Zaskoda May 19, 2022
d845965
Fixed a bug in the custom mint script, tested and works
Zaskoda May 19, 2022
952a13e
Better connection code - I hope
Zaskoda May 19, 2022
bc9b1e9
Removed uncessary metamask connect lib
Zaskoda May 20, 2022
7061e4e
About screen now accessible before connecting wallet
Zaskoda May 21, 2022
4758ddd
Merge branch '7-release-to-polygon-main-net' into 'development'
Zaskoda May 23, 2022
0b63625
wip
Zaskoda May 24, 2022
ebff23b
wip
Zaskoda May 24, 2022
c9b5270
Added mint-event-batch - it almost works, but gets network errors
excalq Jun 11, 2022
cd3daad
closer
Zaskoda Jun 11, 2022
307c397
Hardhat scripts now get contract address from address file
Zaskoda Jun 12, 2022
c3ec546
Merge branch '38-hardhat-scripts-should-use-json-address-file' into k…
Zaskoda Jun 12, 2022
3be3249
Merge branch '38-hardhat-scripts-should-use-json-address-file' into '…
Zaskoda Jun 12, 2022
c251a60
D4 dice work in client
Zaskoda Jun 12, 2022
3b32d19
Merge remote-tracking branch 'origin/development' into koda/add-d4-dice
Zaskoda Jun 12, 2022
e2441d3
Added D4 die to metadata image
Zaskoda Jun 12, 2022
ab1bd5f
resetting address file
Zaskoda Jun 12, 2022
ee74d72
Merge branch 'koda/add-d4-dice' into 'development'
Zaskoda Jun 12, 2022
ff0bc89
Version Number
Zaskoda Jun 12, 2022
f1f848c
Merge branch 'koda/add-d4-dice' into 'development'
Zaskoda Jun 12, 2022
9fc7843
Added mint-event-batch - it almost works, but gets network errors
excalq Jun 11, 2022
dd1ee5d
Local deployments saved to gitignored file
excalq Jun 13, 2022
31aeaf9
Fixed mint-event-batch task
excalq Jun 13, 2022
4b1e3de
Merge branch 'excalq/mint-dygycon-dice' of gitlab.com:partavate/nft-d…
excalq Jun 13, 2022
1327bb1
Code review improvements: Parameterize TSV in/out file, local chains …
excalq Jun 14, 2022
3643d4f
Ensures that NFT metadata is viewable in CORS
excalq Jun 24, 2022
695192f
Merge branch '39-fixed-nft-metadata-blocked-by-cors-policy' into 'dev…
excalq Jun 24, 2022
6935163
Set replica count to 2
excalq Jun 24, 2022
f895540
Merge branch 'development' of gitlab.com:partavate/nft-dice-roller in…
excalq Jun 24, 2022
dfb3d2a
Adds GitLab CI/CD
excalq Jun 25, 2022
b42e2eb
.gitlab-ci.yml extension fix
excalq Jun 25, 2022
c57674e
More GitLab CI/CD
excalq Jun 25, 2022
0dccc0f
K8s Artifacts have staging, production forms
excalq Jun 25, 2022
55fe5f6
Fixes to .gitlab-ci.yml for path
excalq Jun 25, 2022
7214700
Fixes to .gitlab-ci.yml: No tests
excalq Jun 25, 2022
c2dec3f
Fixes to .gitlab-ci.yml: No broken boilerplate
excalq Jun 25, 2022
fb125b2
Fixes to .gitlab-ci.yml: Path to Dockerfile
excalq Jun 25, 2022
18b3ecb
Fixes to .gitlab-ci.yml: Docker image tags
excalq Jun 25, 2022
2027759
Fixes to .gitlab-ci.yml: deploy needs bitnami/kubectl image
excalq Jun 25, 2022
62b5736
Fixes to .gitlab-ci.yml: deploy step
excalq Jun 25, 2022
8ac73ed
Fixes to .gitlab-ci.yml: Preserve tagged image name for other steps
excalq Jun 25, 2022
dabb891
Merge branch 'exaclq/gitlab-cicd-config' into 'development'
excalq Jul 12, 2022
fd284b0
Update .gitlab-ci.yml file
excalq Aug 22, 2022
d6c6b88
Changes namespace to "websites", like everything else
excalq Aug 22, 2022
3a8e80b
Merge branch 'exaclq/gitlab-cicd-config' into 'development'
excalq Aug 22, 2022
608998e
Make Twitter Card Work
Zaskoda Dec 10, 2022
8b3c8c8
Merge branch 'koda/twitter-card-fix' into 'development'
Zaskoda Dec 11, 2022
76935f7
Fix service namespace to use 'websites'
excalq Dec 11, 2022
c1ef822
Merge branch 'excalq/change-namespace' into 'development'
excalq Dec 11, 2022
4bd67c5
Fix ingressroute name
excalq Dec 11, 2022
92e8637
Update GitLab CI config
excalq Dec 11, 2022
bd22b53
Update GitLab CI config
excalq Dec 11, 2022
e17d00c
Update .gitlab-ci.yml file
excalq Dec 11, 2022
e84e5dc
Update .gitlab-ci.yml file
excalq Dec 11, 2022
4c6fc58
Update .gitlab-ci.yml file
excalq Dec 11, 2022
3b38694
Excalq/deployment cleanup
excalq Dec 11, 2022
2bdace7
Merge branch 'excalq/deployment-cleanup' into 'development'
excalq Dec 11, 2022
a3b43bb
Merge remote-tracking branch 'gitlab/development' into koda/pull-in-g…
Zaskoda Aug 20, 2023
992ab15
Updated license
Zaskoda Aug 20, 2023
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Empty file added .gitignore
Empty file.
80 changes: 80 additions & 0 deletions .gitlab-ci.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,80 @@
# PolyDice Build and Deploy Pipeline
# Build (new Docker image) on any of:
# - Merge Request Opened/Updated/Merged
# - Merge or push on the default branch
# Deployment (Available after build):
# - Staging (Using the commit-hash tagged image) (manually triggerable)
# - Production (Using the newly created :latest tag)

stages:
- build
- deploy

docker-build:
# Use the official docker image.
image: docker:latest
stage: build
services:
- docker:dind # Docker-in-docker, runs on Gitlab infra
before_script:
- docker login -u "$CI_REGISTRY_USER" -p "$CI_REGISTRY_PASSWORD" $CI_REGISTRY
# Default branch leaves tag empty (= latest tag)
# All other branches are tagged with the escaped branch name (commit ref slug)
script:
- |
if [[ "$CI_COMMIT_BRANCH" == "$CI_DEFAULT_BRANCH" ]]; then
tag=""
echo "Running on default branch '$CI_DEFAULT_BRANCH': tag = ':latest'"
else
tag=":$CI_COMMIT_REF_SLUG"
echo "Running on branch '$CI_COMMIT_BRANCH': tag = $tag"
fi
- docker build --pull -t "${CI_REGISTRY_IMAGE}/client${tag}" .
- docker push "${CI_REGISTRY_IMAGE}/client${tag}"
- echo TAGGED_IMAGE="${CI_REGISTRY_IMAGE}/client${tag}" >> image.env
artifacts:
reports:
dotenv: image.env # Save generated image name/tag for later stages
# Run this job in a branch where a Dockerfile exists
rules:
- if: $CI_PIPELINE_SOURCE == 'merge_request_event'
exists:
- Dockerfile
- if: $CI_COMMIT_BRANCH == $CI_DEFAULT_BRANCH
exists:
- Dockerfile

deploy-staging:
image:
name: bitnami/kubectl:latest
entrypoint: ['']
stage: deploy
needs:
- job: docker-build
artifacts: true
when: manual
script:
- kubectl config get-contexts
- kubectl config use-context partavate/infrastructure:partavate-production-k8s
- kubectl set image --namespace websites deployment/polydice-client-staging polydice-client=${TAGGED_IMAGE}
- kubectl patch deployment polydice-client-staging --namespace websites -p "{\"spec\":{\"template\":{\"metadata\":{\"labels\":{\"build\":\"$CI_COMMIT_SHORT_SHA\"}}}}}"
rules:
- if: $CI_PIPELINE_SOURCE == 'merge_request_event'
- if: $CI_COMMIT_BRANCH == $CI_DEFAULT_BRANCH

deploy-production:
image:
name: bitnami/kubectl:latest
entrypoint: ['']
stage: deploy
needs:
- job: docker-build
artifacts: true
when: manual
script:
- kubectl config get-contexts
- kubectl config use-context partavate/infrastructure:partavate-production-k8s
- kubectl set image --namespace websites deployment/polydice-client polydice-client=${TAGGED_IMAGE}
- kubectl patch deployment polydice-client --namespace websites -p "{\"spec\":{\"template\":{\"metadata\":{\"labels\":{\"build\":\"$CI_COMMIT_SHORT_SHA\"}}}}}"
rules:
- if: $CI_COMMIT_BRANCH == $CI_DEFAULT_BRANCH
40 changes: 40 additions & 0 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,40 @@
# PolyDice image builder. JS client in /var/www/client, PHP metadata service in /var/www/metadata
# Only /var/www/client has `composer/npm istall` run against it.

# Build Stage 1: Install Composer Dependencies
# Latest Composer LTS version as of 2022.03.22: 2.2
FROM composer:2.2 AS composer
COPY ./client /var/www/client
COPY ./web2-metadata /var/www/metadata

WORKDIR /var/www/client
RUN if [ -f "composer.json" ]; then \
composer install --quiet --ignore-platform-reqs --no-interaction --no-dev --prefer-dist --optimize-autoloader; \
fi

# Build Stage 2: NPM Install to generate assets
# Latest Node.js LTS version as of 2022.03.22: 16.14.2
FROM node:17.9-alpine AS node_npm
WORKDIR /var/www/client
COPY --from=composer /var/www/ /var/www/
# The JS Client requires ABI and address JSON artifacts for the EVM Contracts
COPY ./evm/artifacts/contracts/Dice.sol/TabletopDiceNFT.json /var/www/evm/artifacts/contracts/Dice.sol/TabletopDiceNFT.json
COPY ./evm/artifacts/contracts/DiceLibrary.sol/DiceLibrary.json /var/www/evm/artifacts/contracts/DiceLibrary.sol/DiceLibrary.json
COPY ./evm/addresses/published-addresses.json /var/www/evm/addresses/published-addresses.json

# Vue/Vite uses `npm run build`, Laravel uses `npm run prod`
RUN npm config set depth 0 && \
npm install --silent --no-progress && \
(npm run prod --silent --no-progress || npm run build --silent --no-progress) && \
rm -rf node_modules

# Build Stage 3: Final image, without unneeded components
# Base image from https://github.com/Partavate-Studios/nginx-php-fpm
FROM registry.gitlab.com/partavate/infrastructure/nginx-php-fpm:php81

COPY ./deployment/nginx.conf /etc/nginx/conf.d/polydice.conf
RUN rm -rf /etc/nginx/conf.d/default.conf

# Copy compiled PHP and Assets to the final image
COPY --from=composer /var/www/metadata /var/www/metadata
COPY --from=node_npm /var/www/client/public /var/www/client/public
151 changes: 69 additions & 82 deletions LICENSE
Original file line number Diff line number Diff line change
@@ -1,23 +1,21 @@
GNU GENERAL PUBLIC LICENSE
Version 3, 29 June 2007
GNU AFFERO GENERAL PUBLIC LICENSE
Version 3, 19 November 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 GNU Affero General Public License is a free, copyleft license for
software and other kinds of works, specifically designed to ensure
cooperation with the community in the case of network server software.

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
our General Public Licenses are 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.
software for all its users.

When we speak of free software, we are referring to freedom, not
price. Our General Public Licenses are designed to make sure that you
Expand All @@ -26,44 +24,34 @@ 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.
Developers that use our General Public Licenses protect your rights
with two steps: (1) assert copyright on the software, and (2) offer
you this License which gives you legal permission to copy, distribute
and/or modify the software.

A secondary benefit of defending all users' freedom is that
improvements made in alternate versions of the program, if they
receive widespread use, become available for other developers to
incorporate. Many developers of free software are heartened and
encouraged by the resulting cooperation. However, in the case of
software used on network servers, this result may fail to come about.
The GNU General Public License permits making a modified version and
letting the public access it on a server without ever releasing its
source code to the public.

The GNU Affero General Public License is designed specifically to
ensure that, in such cases, the modified source code becomes available
to the community. It requires the operator of a network server to
provide the source code of the modified version running there to the
users of that server. Therefore, public use of a modified version, on
a publicly accessible server, gives the public access to the source
code of the modified version.

An older license, called the Affero General Public License and
published by Affero, was designed to accomplish similar goals. This is
a different license, not a version of the Affero GPL, but Affero has
released a new version of the Affero GPL which permits relicensing under
this license.

The precise terms and conditions for copying, distribution and
modification follow.
Expand All @@ -72,7 +60,7 @@ modification follow.

0. Definitions.

"This License" refers to version 3 of the GNU General Public License.
"This License" refers to version 3 of the GNU Affero General Public License.

"Copyright" also means copyright-like laws that apply to other kinds of
works, such as semiconductor masks.
Expand Down Expand Up @@ -549,35 +537,45 @@ 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.
13. Remote Network Interaction; Use with the GNU General Public License.

Notwithstanding any other provision of this License, if you modify the
Program, your modified version must prominently offer all users
interacting with it remotely through a computer network (if your version
supports such interaction) an opportunity to receive the Corresponding
Source of your version by providing access to the Corresponding Source
from a network server at no charge, through some standard or customary
means of facilitating copying of software. This Corresponding Source
shall include the Corresponding Source for any work covered by version 3
of the GNU General Public License that is incorporated pursuant to the
following paragraph.

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
under version 3 of the GNU 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.
but the work with which it is combined will remain governed by version
3 of the GNU General Public License.

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
the GNU Affero 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
Program specifies that a certain numbered version of the GNU Affero 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
GNU Affero 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
versions of the GNU Affero 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.

Expand Down Expand Up @@ -635,40 +633,29 @@ the "copyright" line and a pointer to where the full notice is found.
Copyright (C) <year> <name of author>

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
it under the terms of the GNU Affero 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.
GNU Affero General Public License for more details.

You should have received a copy of the GNU General Public License
You should have received a copy of the GNU Affero 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) <year> <name of author>
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".
If your software can interact with users remotely through a computer
network, you should also make sure that it provides a way for users to
get its source. For example, if your program is a web application, its
interface could display a "Source" link that leads users to an archive
of the code. There are many ways you could offer source, and different
solutions will be better for different programs; see section 13 for the
specific requirements.

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>.
For more information on this, and how to apply and follow the GNU AGPL, see
<https://www.gnu.org/licenses/>.
Loading