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

Add simpler development environment #511

Open
fcaps opened this issue Dec 2, 2023 · 2 comments
Open

Add simpler development environment #511

fcaps opened this issue Dec 2, 2023 · 2 comments

Comments

@fcaps
Copy link
Collaborator

fcaps commented Dec 2, 2023

Currently using the website in docker with a fully started faf-stack is not the simplest thing.
since the website can also run with the services of xyz, this should be the preferred way for new developers.

Tasks:

  • can we share "secrets" of the xyz in the repo? @Brutus5000
  • updating the readme (maybe even removing the local/fafstack install chapter)
  • testing the "ease" of startup from scratch with some devs we can find
@fcaps
Copy link
Collaborator Author

fcaps commented Dec 3, 2023

just got the answer, and we can share the xyz .env in the repo.

Tasks:
[] add .env-xyz
[] update README.md to only include the setup with the xyz
[] confirm the steps are working by cloning a fresh copy of the repository

@fcaps
Copy link
Collaborator Author

fcaps commented Dec 3, 2023

.env-xyz

# node env is set statically to "development" in the dockerfile, you could override it here.
#NODE_ENV=production

HOST=http://localhost:8020
API_URL=https://api.faforever.xyz
OAUTH_URL=https://hydra.faforever.xyz

# on a local environment with docker, the internal docker-service-domain (faf-ory-hydra:4444) is not reachable for a browser
# you can omit this env and it will fallback to OAUTH_URL if you know what you are doing.
#OAUTH_PUBLIC_URL=http://localhost:4444

# unsing the "production" wordpress because the faf-local-stack is just an empty instance without any news etc.
WP_URL=https://direct.faforever.com
OAUTH_M2M_CLIENT_ID=faf-website-public
OAUTH_M2M_CLIENT_SECRET=banana
OAUTH_CLIENT_ID=faf-website
OAUTH_CLIENT_SECRET=banana
SESSION_SECRET_KEY=bananaa
RECAPTCHA_SITE_KEY=6LeIxAcTAAAAAJcZVRqyHh71UMIEGNQ_MXjiZKhI
# JAVA-API token lifetime in seconds
TOKEN_LIFESPAN=43200
CLAN_INVITES_LIFESPAN_DAYS=30
# Interval for the extractor.js in minutes
EXTRACTOR_INTERVAL=5
# Interval for the getRecentUsers.js in seconds
PLAYER_COUNT_INTERVAL=15

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant