Yeah, the optional rules from Tasha are allowed - you can assign the +1/+2 as you wish.
In general, all optional rules are allowed, including the Tasha ranger rules. The only restriction is that backgrounds cannot grant feats nor extended spell lists (meaning with a Strixhaven background you won’t get the background spell list nor the Strixhaven initiate feat).
Thanks! I read those, but i thought that since there is a general VALUE ruling for generating HP there might be a ruling on playing either with or without optional rules.