Skip to content

Commit 0ee1b55

Browse files
committed
Aggiornato .gitignore e aggiunto file di configurazione per Supabase
1 parent dfa5555 commit 0ee1b55

File tree

2 files changed

+293
-2
lines changed

2 files changed

+293
-2
lines changed

.gitignore

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,6 @@
33

44
# Ignore supabase
55
.temp
6-
config.toml
76
seed.sql
87

98
# Ignore docs
@@ -14,4 +13,9 @@ docs/css
1413
# Ignore updater
1514
updater/node_modules
1615
updater/package-lock.json
17-
updater/.env
16+
updater/.env
17+
18+
# Supabase
19+
supabase/.branches
20+
supabase/.temp
21+
supabase/.env

supabase/config.toml

Lines changed: 287 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,287 @@
1+
# For detailed configuration reference documentation, visit:
2+
# https://supabase.com/docs/guides/local-development/cli/config
3+
# A string used to distinguish different Supabase projects on the same host. Defaults to the
4+
# working directory name when running `supabase init`.
5+
project_id = "comuni-ita"
6+
7+
[api]
8+
enabled = true
9+
# Port to use for the API URL.
10+
port = 54321
11+
# Schemas to expose in your API. Tables, views and stored procedures in this schema will get API
12+
# endpoints. `public` is always included.
13+
schemas = ["public", "graphql_public"]
14+
# Extra schemas to add to the search_path of every request. `public` is always included.
15+
extra_search_path = ["public", "extensions"]
16+
# The maximum number of rows returns from a view, table, or stored procedure. Limits payload size
17+
# for accidental or malicious requests.
18+
max_rows = 1000
19+
20+
[api.tls]
21+
enabled = false
22+
23+
[db]
24+
# Port to use for the local database URL.
25+
port = 54322
26+
# Port used by db diff command to initialize the shadow database.
27+
shadow_port = 54320
28+
# The database major version to use. This has to be the same as your remote database's. Run `SHOW
29+
# server_version;` on the remote database to check.
30+
major_version = 15
31+
32+
[db.pooler]
33+
enabled = false
34+
# Port to use for the local connection pooler.
35+
port = 54329
36+
# Specifies when a server connection can be reused by other clients.
37+
# Configure one of the supported pooler modes: `transaction`, `session`.
38+
pool_mode = "transaction"
39+
# How many server connections to allow per user/database pair.
40+
default_pool_size = 20
41+
# Maximum number of client connections allowed.
42+
max_client_conn = 100
43+
44+
[db.seed]
45+
# If enabled, seeds the database after migrations during a db reset.
46+
enabled = true
47+
# Specifies an ordered list of seed files to load during db reset.
48+
# Supports glob patterns relative to supabase directory. For example:
49+
# sql_paths = ['./seeds/*.sql', '../project-src/seeds/*-load-testing.sql']
50+
sql_paths = ['./seed.sql']
51+
52+
[realtime]
53+
enabled = true
54+
# Bind realtime via either IPv4 or IPv6. (default: IPv4)
55+
# ip_version = "IPv6"
56+
# The maximum length in bytes of HTTP request headers. (default: 4096)
57+
# max_header_length = 4096
58+
59+
[studio]
60+
enabled = true
61+
# Port to use for Supabase Studio.
62+
port = 54323
63+
# External URL of the API server that frontend connects to.
64+
api_url = "http://127.0.0.1"
65+
# OpenAI API Key to use for Supabase AI in the Supabase Studio.
66+
openai_api_key = "env(OPENAI_API_KEY)"
67+
68+
# Email testing server. Emails sent with the local dev setup are not actually sent - rather, they
69+
# are monitored, and you can view the emails that would have been sent from the web interface.
70+
[inbucket]
71+
enabled = true
72+
# Port to use for the email testing server web interface.
73+
port = 54324
74+
# Uncomment to expose additional ports for testing user applications that send emails.
75+
# smtp_port = 54325
76+
# pop3_port = 54326
77+
# admin_email = "admin@email.com"
78+
# sender_name = "Admin"
79+
80+
[storage]
81+
enabled = true
82+
# The maximum file size allowed (e.g. "5MB", "500KB").
83+
file_size_limit = "50MiB"
84+
85+
[storage.image_transformation]
86+
enabled = true
87+
88+
# Uncomment to configure local storage buckets
89+
# [storage.buckets.images]
90+
# public = false
91+
# file_size_limit = "50MiB"
92+
# allowed_mime_types = ["image/png", "image/jpeg"]
93+
# objects_path = "./images"
94+
95+
[auth]
96+
enabled = true
97+
# The base URL of your website. Used as an allow-list for redirects and for constructing URLs used
98+
# in emails.
99+
site_url = "http://127.0.0.1:3000"
100+
# A list of *exact* URLs that auth providers are permitted to redirect to post authentication.
101+
additional_redirect_urls = ["https://127.0.0.1:3000"]
102+
# How long tokens are valid for, in seconds. Defaults to 3600 (1 hour), maximum 604,800 (1 week).
103+
jwt_expiry = 3600
104+
# If disabled, the refresh token will never expire.
105+
enable_refresh_token_rotation = true
106+
# Allows refresh tokens to be reused after expiry, up to the specified interval in seconds.
107+
# Requires enable_refresh_token_rotation = true.
108+
refresh_token_reuse_interval = 10
109+
# Allow/disallow new user signups to your project.
110+
enable_signup = true
111+
# Allow/disallow anonymous sign-ins to your project.
112+
enable_anonymous_sign_ins = false
113+
# Allow/disallow testing manual linking of accounts
114+
enable_manual_linking = false
115+
# Passwords shorter than this value will be rejected as weak. Minimum 6, recommended 8 or more.
116+
minimum_password_length = 6
117+
# Passwords that do not meet the following requirements will be rejected as weak. Supported values
118+
# are: `letters_digits`, `lower_upper_letters_digits`, `lower_upper_letters_digits_symbols`
119+
password_requirements = ""
120+
121+
[auth.email]
122+
# Allow/disallow new user signups via email to your project.
123+
enable_signup = true
124+
# If enabled, a user will be required to confirm any email change on both the old, and new email
125+
# addresses. If disabled, only the new email is required to confirm.
126+
double_confirm_changes = true
127+
# If enabled, users need to confirm their email address before signing in.
128+
enable_confirmations = false
129+
# If enabled, users will need to reauthenticate or have logged in recently to change their password.
130+
secure_password_change = false
131+
# Controls the minimum amount of time that must pass before sending another signup confirmation or password reset email.
132+
max_frequency = "1s"
133+
# Number of characters used in the email OTP.
134+
otp_length = 6
135+
# Number of seconds before the email OTP expires (defaults to 1 hour).
136+
otp_expiry = 3600
137+
138+
# Use a production-ready SMTP server
139+
# [auth.email.smtp]
140+
# host = "smtp.sendgrid.net"
141+
# port = 587
142+
# user = "apikey"
143+
# pass = "env(SENDGRID_API_KEY)"
144+
# admin_email = "admin@email.com"
145+
# sender_name = "Admin"
146+
147+
# Uncomment to customize email template
148+
# [auth.email.template.invite]
149+
# subject = "You have been invited"
150+
# content_path = "./supabase/templates/invite.html"
151+
152+
[auth.sms]
153+
# Allow/disallow new user signups via SMS to your project.
154+
enable_signup = false
155+
# If enabled, users need to confirm their phone number before signing in.
156+
enable_confirmations = false
157+
# Template for sending OTP to users
158+
template = "Your code is {{ .Code }}"
159+
# Controls the minimum amount of time that must pass before sending another sms otp.
160+
max_frequency = "5s"
161+
162+
# Use pre-defined map of phone number to OTP for testing.
163+
# [auth.sms.test_otp]
164+
# 4152127777 = "123456"
165+
166+
# Configure logged in session timeouts.
167+
# [auth.sessions]
168+
# Force log out after the specified duration.
169+
# timebox = "24h"
170+
# Force log out if the user has been inactive longer than the specified duration.
171+
# inactivity_timeout = "8h"
172+
173+
# This hook runs before a token is issued and allows you to add additional claims based on the authentication method used.
174+
# [auth.hook.custom_access_token]
175+
# enabled = true
176+
# uri = "pg-functions://<database>/<schema>/<hook_name>"
177+
178+
# Configure one of the supported SMS providers: `twilio`, `twilio_verify`, `messagebird`, `textlocal`, `vonage`.
179+
[auth.sms.twilio]
180+
enabled = false
181+
account_sid = ""
182+
message_service_sid = ""
183+
# DO NOT commit your Twilio auth token to git. Use environment variable substitution instead:
184+
auth_token = "env(SUPABASE_AUTH_SMS_TWILIO_AUTH_TOKEN)"
185+
186+
[auth.mfa]
187+
# Control how many MFA factors can be enrolled at once per user.
188+
max_enrolled_factors = 10
189+
190+
# Control use of MFA via App Authenticator (TOTP)
191+
[auth.mfa.totp]
192+
enroll_enabled = true
193+
verify_enabled = true
194+
195+
# Configure Multi-factor-authentication via Phone Messaging
196+
[auth.mfa.phone]
197+
enroll_enabled = false
198+
verify_enabled = false
199+
otp_length = 6
200+
template = "Your code is {{ .Code }}"
201+
max_frequency = "5s"
202+
203+
# Configure Multi-factor-authentication via WebAuthn
204+
# [auth.mfa.web_authn]
205+
# enroll_enabled = true
206+
# verify_enabled = true
207+
208+
# Use an external OAuth provider. The full list of providers are: `apple`, `azure`, `bitbucket`,
209+
# `discord`, `facebook`, `github`, `gitlab`, `google`, `keycloak`, `linkedin_oidc`, `notion`, `twitch`,
210+
# `twitter`, `slack`, `spotify`, `workos`, `zoom`.
211+
[auth.external.apple]
212+
enabled = false
213+
client_id = ""
214+
# DO NOT commit your OAuth provider secret to git. Use environment variable substitution instead:
215+
secret = "env(SUPABASE_AUTH_EXTERNAL_APPLE_SECRET)"
216+
# Overrides the default auth redirectUrl.
217+
redirect_uri = ""
218+
# Overrides the default auth provider URL. Used to support self-hosted gitlab, single-tenant Azure,
219+
# or any other third-party OIDC providers.
220+
url = ""
221+
# If enabled, the nonce check will be skipped. Required for local sign in with Google auth.
222+
skip_nonce_check = false
223+
224+
# Use Firebase Auth as a third-party provider alongside Supabase Auth.
225+
[auth.third_party.firebase]
226+
enabled = false
227+
# project_id = "my-firebase-project"
228+
229+
# Use Auth0 as a third-party provider alongside Supabase Auth.
230+
[auth.third_party.auth0]
231+
enabled = false
232+
# tenant = "my-auth0-tenant"
233+
# tenant_region = "us"
234+
235+
# Use AWS Cognito (Amplify) as a third-party provider alongside Supabase Auth.
236+
[auth.third_party.aws_cognito]
237+
enabled = false
238+
# user_pool_id = "my-user-pool-id"
239+
# user_pool_region = "us-east-1"
240+
241+
[edge_runtime]
242+
enabled = true
243+
# Configure one of the supported request policies: `oneshot`, `per_worker`.
244+
# Use `oneshot` for hot reload, or `per_worker` for load testing.
245+
policy = "oneshot"
246+
# Port to attach the Chrome inspector for debugging edge functions.
247+
inspector_port = 8083
248+
249+
# Use these configurations to customize your Edge Function.
250+
# [functions.MY_FUNCTION_NAME]
251+
# enabled = true
252+
# verify_jwt = true
253+
# import_map = "./functions/MY_FUNCTION_NAME/deno.json"
254+
# Uncomment to specify a custom file path to the entrypoint.
255+
# Supported file extensions are: .ts, .js, .mjs, .jsx, .tsx
256+
# entrypoint = "./functions/MY_FUNCTION_NAME/index.ts"
257+
258+
[functions.comuni]
259+
enabled = true
260+
verify_jwt = false
261+
262+
[functions.province]
263+
enabled = true
264+
verify_jwt = false
265+
266+
[functions.regioni]
267+
enabled = true
268+
verify_jwt = false
269+
270+
[analytics]
271+
enabled = true
272+
port = 54327
273+
# Configure one of the supported backends: `postgres`, `bigquery`.
274+
backend = "postgres"
275+
276+
# Experimental features may be deprecated any time
277+
[experimental]
278+
# Configures Postgres storage engine to use OrioleDB (S3)
279+
orioledb_version = ""
280+
# Configures S3 bucket URL, eg. <bucket_name>.s3-<region>.amazonaws.com
281+
s3_host = "env(S3_HOST)"
282+
# Configures S3 bucket region, eg. us-east-1
283+
s3_region = "env(S3_REGION)"
284+
# Configures AWS_ACCESS_KEY_ID for S3 bucket
285+
s3_access_key = "env(S3_ACCESS_KEY)"
286+
# Configures AWS_SECRET_ACCESS_KEY for S3 bucket
287+
s3_secret_key = "env(S3_SECRET_KEY)"

0 commit comments

Comments
 (0)