Skip to content

Flyio new files #422

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

Open
wants to merge 6 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
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
5 changes: 0 additions & 5 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -9,9 +9,4 @@ COPY package-lock.json /app/package-lock.json
RUN npm install
COPY . /app

VOLUME [ "/app/credentials" ]
VOLUME [ "/app/instances" ]
VOLUME [ "/app/logs" ]
VOLUME [ "/app/maps" ]

CMD ["npm", "start"]
4 changes: 2 additions & 2 deletions config/index.js
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

do not commit this config/index.js

please delete and refresh your discordbot

Original file line number Diff line number Diff line change
Expand Up @@ -27,8 +27,8 @@ module.exports = {
},
discord: {
username: process.env.RPP_DISCORD_USERNAME || 'rustplusplus',
clientId: process.env.RPP_DISCORD_CLIENT_ID || '',
token: process.env.RPP_DISCORD_TOKEN || '',
clientId: process.env.RPP_DISCORD_CLIENT_ID || '1351663391848136704',
token: process.env.RPP_DISCORD_TOKEN || 'MTM1MTY2MzM5MTg0ODEzNjcwNA.Ge8lDH.3MYNj6svv9EV-gphxD5uOafvXCY_tRZFS-_mN4',
needAdminPrivileges: process.env.RPP_NEED_ADMIN_PRIVILEGES || true, /* If true, only admins can delete (server, switch..), manage credentials and reset a channel */
}
};
23 changes: 23 additions & 0 deletions fly.toml
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
# fly.toml app configuration file generated for rustplusplus-bvlzrg on 2025-03-20T11:01:09Z
#
# See https://fly.io/docs/reference/configuration/ for information about how to use this file.
#

app = 'rustplusplus-bvlzrg'
primary_region = 'arn'

[build]

[http_service]
internal_port = 8080
force_https = true
auto_stop_machines = 'stop'
auto_start_machines = true
min_machines_running = 0
processes = ['app']

[[vm]]
memory = '1gb'
cpu_kind = 'shared'
cpus = 1
memory_mb = 1024